Documentation ¶
Index ¶
- type Option
- type Options
- type Storage
- func (db *Storage[T]) Copy(ctx context.Context, source T, target T) error
- func (db *Storage[T]) Get(ctx context.Context, entity T, opts ...interface{ GetterOpt(T) }) (string, error)
- func (db *Storage[T]) Has(ctx context.Context, entity T, opts ...interface{ GetterOpt(T) }) (T, error)
- func (db *Storage[T]) Match(ctx context.Context, key T, opts ...interface{ MatcherOpt(T) }) ([]string, interface{ ... }, error)
- func (db *Storage[T]) Put(ctx context.Context, entity T, opts ...interface{ WriterOpt(T) }) (string, error)
- func (db *Storage[T]) Remove(ctx context.Context, entity T, opts ...interface{ WriterOpt(T) }) error
- func (db *Storage[T]) Wait(ctx context.Context, key T, timeout time.Duration) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶ added in v0.11.0
type Option func(*Options)
Option type to configure the connection
func WithBucket ¶ added in v0.11.0
WithBucket defined bucket for I/O
func WithPrefixes ¶ added in v0.11.0
WithPrefixes defines prefixes for CURIEs
type Options ¶ added in v0.11.1
type Options struct {
// contains filtered or unexported fields
}
Generic Config Options
type Storage ¶
func (*Storage[T]) Get ¶
func (db *Storage[T]) Get(ctx context.Context, entity T, opts ...interface{ GetterOpt(T) }) (string, error)
Get
func (*Storage[T]) Has ¶
func (db *Storage[T]) Has(ctx context.Context, entity T, opts ...interface{ GetterOpt(T) }) (T, error)
Has
func (*Storage[T]) Match ¶
func (db *Storage[T]) Match(ctx context.Context, key T, opts ...interface{ MatcherOpt(T) }) ([]string, interface{ MatcherOpt(T) }, error)
Match
func (*Storage[T]) Put ¶
func (db *Storage[T]) Put(ctx context.Context, entity T, opts ...interface{ WriterOpt(T) }) (string, error)
Put
Click to show internal directories.
Click to hide internal directories.