Help us shape the future of Go! Take the 2026 Go Developer Survey

client

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 24, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	*aero.Client

	*circut.Breaker
	// contains filtered or unexported fields
}

Service represents aerospike client Service

func New

func New(config *datastore.Connection) (*Service, error)

New creates a new Aerospike service

func (*Service) Get

func (s *Service) Get(ctx context.Context, key *aero.Key, binNames ...string) (record *aero.Record, err error)

Get returns record for supplied key and optional bin names.

func (*Service) Probe added in v0.10.0

func (s *Service) Probe()

func (*Service) Put

func (s *Service) Put(writePolicy *aero.WritePolicy, key *aero.Key, value aero.BinMap) error

Put puts a record to Aerospike. TODO: Properly support context.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL