etcdb/set.go
2022-12-05 11:11:22 +01:00

14 lines
186 B
Go

package etcdb
import (
"context"
)
type SetSpec[T any] struct {
Spec Spec
}
func (p SetSpec[T]) In(ctx context.Context) TypedDB[T] {
return TypedDB[T]{p.Spec.In(ctx), JSONCodec}
}