Documentation
¶
Index ¶
- Variables
- type BinOptions
- type BinResult
- type ExistsResult
- type Operation
- type Operations
- type RecordStore
- type Store
- func (s *Store) Delete(ctx context.Context) (aero.Result, error)
- func (s *Store) Exists(ctx context.Context) (ExistsResult, error)
- func (s *Store) Get(ctx context.Context, bins ...string) (aero.RecordResult, error)
- func (s *Store) GetBin(ctx context.Context, options BinOptions) (BinResult, error)
- func (s *Store) Put(ctx context.Context, bins map[string]any) (aero.Result, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrAttributeNotFound = errors.New("attribute not found")
View Source
var ErrStoreNotSet = errors.New("entity store is not set")
ErrStoreNotSet reports a nil entity store dependency.
Functions ¶
This section is empty.
Types ¶
type BinOptions ¶ added in v1.1.0
type BinOptions struct {
Name string
}
BinOptions is the core-owned input for reading one entity bin.
type ExistsResult ¶ added in v1.1.0
type ExistsResult struct {
Exists bool
}
ExistsResult is the core-owned result for an entity existence check.
type Operation ¶
type Operation struct {
// contains filtered or unexported fields
}
func NewOperation ¶
func (*Operation) GetNamespace ¶
type Operations ¶
type RecordStore ¶ added in v1.1.0
type RecordStore interface {
Put(ctx context.Context, bins map[string]any) (aero.Result, error)
Get(ctx context.Context, bins ...string) (aero.RecordResult, error)
GetBin(ctx context.Context, options BinOptions) (BinResult, error)
Exists(ctx context.Context) (ExistsResult, error)
Delete(ctx context.Context) (aero.Result, error)
}
RecordStore is the core-owned contract for common Aerospike entity helpers.
type Store ¶ added in v1.1.0
type Store struct {
// contains filtered or unexported fields
}
Store wraps record-level entity helpers behind core-owned Aerospike contracts.
func NewStore ¶ added in v1.1.0
func NewStore(namespace aero.NamespaceStore, key aero.Key) *Store
NewStore creates entity helpers from a core-owned namespace store and key.
func (*Store) Delete ¶ added in v1.1.0
Delete deletes an entity through a core-owned namespace store.
func (*Store) Exists ¶ added in v1.1.0
func (s *Store) Exists(ctx context.Context) (ExistsResult, error)
Exists checks whether an entity exists through a core-owned namespace store.
func (*Store) Get ¶ added in v1.1.0
Get reads an entity record through a core-owned namespace store.
Click to show internal directories.
Click to hide internal directories.