Documentation ¶
Index ¶
- type Datastore
- func (d *Datastore) Batch(_ context.Context) (datastore.Batch, error)
- func (d *Datastore) Close() error
- func (d *Datastore) Delete(ctx context.Context, key datastore.Key) error
- func (d *Datastore) Get(ctx context.Context, key datastore.Key) (value []byte, err error)
- func (d *Datastore) GetExpiration(ctx context.Context, key datastore.Key) (time.Time, error)
- func (d *Datastore) GetSize(ctx context.Context, key datastore.Key) (size int, err error)
- func (d *Datastore) Has(ctx context.Context, key datastore.Key) (exists bool, err error)
- func (d *Datastore) Put(ctx context.Context, key datastore.Key, value []byte) error
- func (d *Datastore) PutWithTTL(ctx context.Context, key datastore.Key, value []byte, ttl time.Duration) error
- func (d *Datastore) Query(ctx context.Context, q query.Query) (query.Results, error)
- func (d *Datastore) SetTTL(ctx context.Context, key datastore.Key, ttl time.Duration) error
- func (d *Datastore) Sync(_ context.Context, _ datastore.Key) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Datastore ¶
type Datastore struct {
// contains filtered or unexported fields
}
func (*Datastore) GetExpiration ¶
func (*Datastore) PutWithTTL ¶
Click to show internal directories.
Click to hide internal directories.