Documentation
¶
Index ¶
- type Bucket
- func (b *Bucket) ApplyTxn(ctx context.Context, ops []*Operation) error
- func (b *Bucket) Delete(ctx context.Context, key []byte) error
- func (b *Bucket) DoScript(ctx context.Context, w http.ResponseWriter, r *http.Request, name []byte) error
- func (b *Bucket) Get(ctx context.Context, key []byte) ([]byte, error)
- func (b *Bucket) Incr(ctx context.Context, key []byte, increment int64, ttl time.Duration) (int64, error)
- func (b *Bucket) Name() string
- func (b *Bucket) Set(ctx context.Context, key, val []byte, ttl time.Duration) error
- func (b *Bucket) StoreScript(ctx context.Context, name, content []byte) error
- type BucketOptions
- type OpDelete
- type OpSet
- type OpType
- type Operation
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bucket ¶
type Bucket struct {
// contains filtered or unexported fields
}
func LoadBucket ¶
TODO: LUR
type BucketOptions ¶
type BucketOptions struct { // Manage bucket policy and other keys. SecretKey string // Prevent public reads from the bucket. ReadKey string // Prevent public writes to the bucket. WriteKey string // Enable access token generation. SigningKey string // Keys not updated expire after this duration. DefaultTTL time.Duration }
Click to show internal directories.
Click to hide internal directories.