Documentation ¶
Index ¶
Constants ¶
View Source
const ( RETRY_TIMES = 3 RETRY_SLEEP_SECONDS = 5 DEFAULT_DOWNLOAD_DIR = "./disconf/download/" COMMA_SPLIT = "," SUFFIX_PREFIX_URL = "?app=%v&env=%v&version=%v" SUFFIX_KEY = "&key=%v" )
View Source
const ( EMPTY_STRING = "" PREFIX_HTTP = "http://" PREFIX_HTTPS = "https://" DISCONF_STORE_ACTION = "/api/config/list" DISCONF_ITEM_ACTION = "/api/config/item" DISCONF_FILE_ACTION = "/api/config/file" DISCONF_ZOO_HOSTS_ACTION = "/api/zoo/hosts" STRING_TRUE = "true" ZOO_SUCCESS_STATUS = 1 )
View Source
const ( FILE_PROPERTIES = ".properties" DISCONF_TYPE_FILE = 0 DISCONF_TYPE_ITEM = 1 COMMA_STRING = "," CONF_TAG = "conf" AUTO_TAG = "auto" AUTO_TRUE = "true" INIT_CONF = "initConf" AUTO_CONF = "autoConf" STRING_STR = "string" INT64_STR = "int64" INT_STR = "int" FLOAT32_STR = "float32" BOOL_STR = "bool" FLOAT64_STR = "float64" ERR_TYPE_VALUE = "unknown type" )
View Source
const ( RE_CONNECT_TIMES = 3 ZK_TIMEOUT = 5 GO_TIMEOUT = 3 PORT = "8080" )
Variables ¶
This section is empty.
Functions ¶
func ContainString ¶
Types ¶
type ClientOption ¶
type ClientOption func(*Client)
func WithDownloadDir ¶
func WithDownloadDir(downloadDir string) ClientOption
func WithIgnore ¶
func WithIgnore(ignore string) ClientOption
func WithRetrySleepSeconds ¶
func WithRetrySleepSeconds(retrySleepSeconds int) ClientOption
func WithRetryTimes ¶
func WithRetryTimes(retryTimes int) ClientOption
Click to show internal directories.
Click to hide internal directories.