Documentation
¶
Overview ¶
Package nutstore implements the blob.Store interface using NutsDB.
Index ¶
- func Opener(_ context.Context, addr string) (blob.Store, error)
- type Options
- type Store
- func (s Store) Close(_ context.Context) error
- func (s Store) Delete(ctx context.Context, key string) error
- func (s Store) Get(_ context.Context, key string) ([]byte, error)
- func (s Store) Len(ctx context.Context) (int64, error)
- func (s Store) List(ctx context.Context, start string, f func(string) error) error
- func (s Store) Put(_ context.Context, opts blob.PutOptions) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Options ¶
type Options struct {
Bucket string // use this bucket name
}
Options provides options for opening a NutsDB instance.
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store implements the blob.Store interface using a NutsDB instance.
func (Store) Close ¶
Close implements part of the blob.Store interface. It closes the underlying database instance and reports its result.
Click to show internal directories.
Click to hide internal directories.