go_config_centor

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2019 License: MIT Imports: 9 Imported by: 0

README

go_config_centor

基于zookeeper的配置中心

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Center

type Center struct {
	RemotePath string
	// contains filtered or unexported fields
}

func NewCenter

func NewCenter(zkHosts []string, Path, Name string) (center *Center, err error)

func (*Center) GetBool

func (c *Center) GetBool(key string) bool

func (*Center) GetDuration

func (c *Center) GetDuration(key string) time.Duration

func (*Center) GetFloat64

func (c *Center) GetFloat64(key string) float64

func (*Center) GetInt

func (c *Center) GetInt(key string) int

func (*Center) GetInt32

func (c *Center) GetInt32(key string) int32

func (*Center) GetInt64

func (c *Center) GetInt64(key string) int64

func (*Center) GetIntSlice

func (c *Center) GetIntSlice(key string) []int

func (*Center) GetSizeInBytes

func (c *Center) GetSizeInBytes(key string) uint

func (*Center) GetString

func (c *Center) GetString(key string) string

func (*Center) GetStringMap

func (c *Center) GetStringMap(key string) map[string]interface{}

func (*Center) GetStringMapString

func (c *Center) GetStringMapString(key string) map[string]string

func (*Center) GetStringMapStringSlice

func (c *Center) GetStringMapStringSlice(key string) map[string][]string

func (*Center) GetStringSlice

func (c *Center) GetStringSlice(key string) []string

func (*Center) GetTime

func (c *Center) GetTime(key string) time.Time

func (*Center) GetUint

func (c *Center) GetUint(key string) uint

func (*Center) GetUint32

func (c *Center) GetUint32(key string) uint32

func (*Center) GetUint64

func (c *Center) GetUint64(key string) uint64

func (*Center) SetDefault

func (c *Center) SetDefault(key string, value interface{})

func (*Center) Sync

func (c *Center) Sync() (err error)

Jump to

Keyboard shortcuts

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