client

package
v0.0.0-...-766ab8f Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	VersionTLSDefaultMin = tls.VersionTLS12
	VersionTLSDefaultMax = tls.VersionTLS13
)
View Source
const DefaultIPv4 = "127.0.0.1"
View Source
const DefaultPort = 3000

Variables

This section is empty.

Functions

This section is empty.

Types

type AerospikeConfig

type AerospikeConfig struct {
	Seeds                  HostTLSPortSlice
	User                   string
	Password               string
	AuthMode               as.AuthMode
	RootCA                 [][]byte
	Cert                   []byte
	Key                    []byte
	KeyPass                []byte
	TLSProtocolsMinVersion TLSProtocol
	TLSProtocolsMaxVersion TLSProtocol
}

AerospikeConfig represents the intermediate configuration for an Aerospike client. This can be constructed directly using flags.AerospikeFlags or

func NewDefaultAerospikeConfig

func NewDefaultAerospikeConfig() *AerospikeConfig

NewDefaultAerospikeConfig creates a new default AerospikeConfig instance.

func (*AerospikeConfig) NewClientPolicy

func (ac *AerospikeConfig) NewClientPolicy() (*as.ClientPolicy, error)

func (*AerospikeConfig) NewHosts

func (ac *AerospikeConfig) NewHosts() []*as.Host

type HostTLSPort

type HostTLSPort struct {
	Host    string // Can be ipv4, ipv6, or hostname.
	TLSName string
	Port    int
}

func NewDefaultHostTLSPort

func NewDefaultHostTLSPort() *HostTLSPort

func NewHostTLSPort

func NewHostTLSPort() *HostTLSPort

func (*HostTLSPort) String

func (addr *HostTLSPort) String() string

type HostTLSPortSlice

type HostTLSPortSlice []*HostTLSPort

func (*HostTLSPortSlice) String

func (slice *HostTLSPortSlice) String() string

type TLSProtocol

type TLSProtocol uint16

func (TLSProtocol) String

func (p TLSProtocol) String() string

Jump to

Keyboard shortcuts

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