util

package
v0.0.0-...-4b82dee Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2015 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetDefaultRangeMaxBytes

func SetDefaultRangeMaxBytes(db DB, maxBytes int64) error

SetDefaultRangeMaxBytes sets the range-max-bytes value for the default zone.

func SetDefaultRangeReplicaNum

func SetDefaultRangeReplicaNum(db DB, numReplicas int) error

SetDefaultRangeReplicaNum sets the replication factor for the default zone.

Types

type DB

type DB interface {
	GetProto(interface{}, gogoproto.Message) error
	Put(interface{}, interface{}) error
}

DB provides the functionality needed to read and write zone configs.

Jump to

Keyboard shortcuts

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