Documentation
¶
Index ¶
- Constants
- func ErrNotFound(err error, key string) error
- func RecoverNoSuchKey(err error) bool
- func RecoverNotFound(err error) bool
- type Store
- func (db *Store[T]) Copy(ctx context.Context, source T, target T) error
- func (db *Store[T]) Has(ctx context.Context, key T, opts ...interface{ GetterOpt(T) }) (T, error)
- func (db *Store[T]) Match(ctx context.Context, key T, opts ...interface{ MatcherOpt(T) }) ([]T, interface{ ... }, error)
- func (db *Store[T]) Remove(ctx context.Context, entity T, opts ...interface{ WriterOpt(T) }) error
- func (db *Store[T]) Visit(ctx context.Context, key T, f func(T) error) error
- func (db *Store[T]) Wait(ctx context.Context, key T, timeout time.Duration) error
Constants ¶
Variables ¶
This section is empty.
Functions ¶
func ErrNotFound ¶
NotFound is an error to handle unknown elements
func RecoverNoSuchKey ¶
func RecoverNotFound ¶
Types ¶
type Store ¶
func New ¶
func New[T stream.Stream]( api *s3.Client, bucket string, prefixes curie.Prefixes, ) (*Store[T], error)
New client instance
func (*Store[T]) Match ¶
func (db *Store[T]) Match(ctx context.Context, key T, opts ...interface{ MatcherOpt(T) }) ([]T, interface{ MatcherOpt(T) }, error)
Match
Click to show internal directories.
Click to hide internal directories.