config

package
v0.0.0-...-59e4915 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Shards []Shard
}

Config describes the sharding config.

type Context

type Context struct {
	ShardIdx   int
	ShardCount int
	Conf       Config
}

func CreateContext

func CreateContext(configFile string, shard string) *Context

type Shard

type Shard struct {
	Name    string
	Index   int
	Address string
}

Shard describes a shard that holds the appropriate set of keys. Each shard has unique set of keys.

Jump to

Keyboard shortcuts

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