config

package
v0.0.0-...-b371d68 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2024 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const VERSION = 1

Variables

This section is empty.

Functions

func ToBytes

func ToBytes(cf *Ring) ([]byte, error)

Types

type Part

type Part struct {
	Server     string
	Datacenter string
	Rack       string
	Shard      []uint32
}

type Ring

type Ring struct {
	Version   int
	Replicas  int
	RingBits  int
	AutoShard bool
	Parts     []Part
}

func FromBytes

func FromBytes(b []byte) (*Ring, error)

Jump to

Keyboard shortcuts

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