etcdb/set.go

14 lines
186 B
Go
Raw Normal View History

2022-12-05 09:26:49 +00:00
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}
}