aerospike

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package aerospike client

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	C *as.Client
}

Client aerospike client

func New

func New(hosts []string, options ...Option) (*Client, error)

New

func (*Client) Close

func (c *Client) Close() (err error)

Close the client

type Option

type Option interface {
	// contains filtered or unexported methods
}

func AuthMode

func AuthMode(authMode int) Option

func ConnectionQueueSize

func ConnectionQueueSize(connectionQueueSize int) Option

func IdleTimeout

func IdleTimeout(idleTimeout time.Duration) Option

func LimitConnectionsToQueueSize

func LimitConnectionsToQueueSize(limitConnectionsToQueueSize bool) Option

func LoginTimeout

func LoginTimeout(loginTimeout time.Duration) Option

func MinConnectionsPerNode

func MinConnectionsPerNode(minConnectionsPerNode int) Option

func OpeningConnectionThreshold

func OpeningConnectionThreshold(openingConnectionThreshold int) Option

func Password

func Password(password string) Option

func TendInterval

func TendInterval(tendInterval time.Duration) Option

func Timeout

func Timeout(timeout time.Duration) Option

func User

func User(user string) Option

Jump to

Keyboard shortcuts

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