shared

package
v7.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Client *as.Client

Client is shared for all examples

View Source
var Host = flag.String("h", "127.0.0.1", "Aerospike server seed hostnames or IP addresses")

Host is shared for all examples

View Source
var Namespace = flag.String("n", "test", "Aerospike namespace.")

Namespace is shared for all examples

View Source
var Password = flag.String("P", "", "Aerospike password.")

Password is shared for all examples

View Source
var Policy = as.NewPolicy()

Policy is shared for all examples

View Source
var Port = flag.Int("p", 3000, "Aerospike server seed hostname or IP address port number.")

Port is shared for all examples

View Source
var Set = flag.String("s", "testset", "Aerospike set name.")

Set is shared for all examples

View Source
var User = flag.String("U", "", "Aerospike username.")

User is shared for all examples

View Source
var WritePolicy = as.NewWritePolicy(0, 0)

WritePolicy is shared for all examples

Functions

func PanicOnError

func PanicOnError(err error)

PanicOnError will exit if the error is not nil

func Round

func Round(val float64, roundOn float64, places int) (newVal float64)

Round takes a float64 nu,ber and rounds it to the parameters

func ValidateBin

func ValidateBin(key *as.Key, bin *as.Bin, record *as.Record)

ValidateBin takes the original bin and the record retrieved from the database and compares their values

Types

This section is empty.

Jump to

Keyboard shortcuts

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