Documentation ¶
Index ¶
Constants ¶
View Source
const (
// MaxWorkID is the maximum number of workers
MaxWorkID = 65536
)
Variables ¶
View Source
var ( KeyGeneratorNodeNum = "/evhub/generator/node/num" KeyGeneratorNode = "/evhub/generator/node/num/%v" )
Functions ¶
func KeyGeneratorNodeKey ¶
KeyGeneratorNodeKey returns the key generator node for the given node number
Types ¶
type Config ¶
type Config struct { // EtcdEndpoints is the list of endpoints to connect to the etcd EtcdEndpoints []string // EtcdDialTimeout is the name of the etcd dial timeout EtcdDialTimeout time.Duration // GeneratorNum is the number of generators GeneratorNum int }
Config is the configuration for the biz number generator
Click to show internal directories.
Click to hide internal directories.