datastore

package
v0.0.0-...-1db0c7d Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2022 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DialCassandra

func DialCassandra() *gocql.Session

func DialRedisClient

func DialRedisClient() *cache.Cache

Types

type Coordinator

type Coordinator interface {
	GetNextRange() (start int, end int)
	Commit(head int)
}

type EtcdStore

type EtcdStore struct {
	KV  clientv3.KV
	CTX context.Context
	V3  *clientv3.Client
	COD Coordinator

	RangeCountKey string
}

func NewEtcd

func NewEtcd() *EtcdStore

func (*EtcdStore) GetNextRange

func (e *EtcdStore) GetNextRange() (start int, end int)

Jump to

Keyboard shortcuts

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