dataservice

package
v0.0.0-...-28547d7 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SetUserInsight = "user_insight"
)

Variables

This section is empty.

Functions

func EnsureIndexes

func EnsureIndexes(client *aerospike.Client, descriptions []IndexDescription) error

This helper launches indexes creation tasks and processes their results

func ProcessIndexTask

func ProcessIndexTask(provider func() (*aerospike.IndexTask, error), errorIfAlreadyExists bool) error

This helper waits until the index creation task is completed and processes the returned error if there is one

Types

type DataServiceAerospike

type DataServiceAerospike interface {
	IsConnected() bool
}

func NewDataServiceAerospike

func NewDataServiceAerospike(client *aerospike.Client, namespace string) (DataServiceAerospike, error)

type IndexDescription

type IndexDescription struct {
	Namespace string
	Set       string
	Index     string
	Bin       string
	Type      aerospike.IndexType
}

type Kafka

type Kafka struct {
	// contains filtered or unexported fields
}

func NewKafka

func NewKafka(config KafkaConfig) *Kafka

Jump to

Keyboard shortcuts

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