Versions in this module Expand all Collapse all v1 v1.1.4 Nov 2, 2023 Changes in this version + const CATALOG_PATH + const CATALOG_SERVICE_PATH + const CLIENT_VERSION + const CONFIG_AGG_PATH + const CONFIG_BASE_PATH + const CONFIG_INFO_SPLITER + const CONFIG_LISTEN_PATH + const CONFIG_PATH + const DEFAULT_CONTEXT_PATH + const DEFAULT_GROUP + const DEFAULT_NAMESPACE_ID + const DEFAULT_SERVER_SCHEME + const DefaultClientErrorCode + const HEART_BEAT_INTERVAL + const HEART_BEAT_TIMEOUT + const IP_DELETE_TIMEOUT + const KEY_ACCESS_KEY + const KEY_ACCESS_TOKEN + const KEY_APP_NAME + const KEY_BEAT + const KEY_CLIENT_CONFIG + const KEY_CLUSTER + const KEY_CLUSTER_NAME + const KEY_CONTENT + const KEY_CONTEXT_PATH + const KEY_DATA_ID + const KEY_DESC + const KEY_DOM + const KEY_ENABLE + const KEY_ENCODE + const KEY_ENDPOINT + const KEY_GLOBAL_ADMIN + const KEY_GROUP + const KEY_HEALTHY + const KEY_IP + const KEY_LISTEN_CONFIGS + const KEY_LISTEN_INTERVAL + const KEY_METADATA + const KEY_NAME_SPACE + const KEY_PASSWORD + const KEY_PORT + const KEY_SECRET_KEY + const KEY_SERVER_ADDR + const KEY_SERVER_CONFIGS + const KEY_SERVICE_NAME + const KEY_TENANT + const KEY_TIMEOUT_MS + const KEY_TOKEN + const KEY_TOKEN_REFRESH_WINDOW + const KEY_TOKEN_TTL + const KEY_USERNAME + const KEY_WEIGHT + const LOG_FILE_NAME + const NAMESPACE_PATH + const NAMING_INSTANCE_ID_SPLITTER + const OS_WINDOWS + const REQUEST_DOMAIN_RETRY_TIME + const SERVICE_BASE_PATH + const SERVICE_INFO_PATH + const SERVICE_INFO_SPLITER + const SERVICE_PATH + const SERVICE_SUBSCRIBE_PATH + const SPLIT_CONFIG + const SPLIT_CONFIG_INNER + const WEB_CONTEXT + const WINDOWS_LEGAL_NAME_SPLITER + type ClientConfig struct + AccessKey string + AppName string + AppendToStdout bool + BeatInterval int64 + CacheDir string + ContextPath string + CustomLogger logger.Logger + Endpoint string + ListenInterval uint64 + LogDir string + LogLevel string + LogRollingConfig *lumberjack.Logger + LogSampling *logger.SamplingConfig + NamespaceId string + NotLoadCacheAtStart bool + OpenKMS bool + Password string + RegionId string + SecretKey string + TimeoutMs uint64 + UpdateCacheWhenEmpty bool + UpdateThreadNum int + Username string + func NewClientConfig(opts ...ClientOption) *ClientConfig + type ClientOption func(*ClientConfig) + func WithAccessKey(accessKey string) ClientOption + func WithBeatInterval(beatInterval int64) ClientOption + func WithCacheDir(cacheDir string) ClientOption + func WithCustomLogger(logger logger.Logger) ClientOption + func WithEndpoint(endpoint string) ClientOption + func WithLogDir(logDir string) ClientOption + func WithLogLevel(logLevel string) ClientOption + func WithLogRollingConfig(rollingConfig *lumberjack.Logger) ClientOption + func WithLogSampling(tick time.Duration, initial int, thereafter int) ClientOption + func WithLogStdout(logStdout bool) ClientOption + func WithNamespaceId(namespaceId string) ClientOption + func WithNotLoadCacheAtStart(notLoadCacheAtStart bool) ClientOption + func WithOpenKMS(openKMS bool) ClientOption + func WithPassword(password string) ClientOption + func WithRegionId(regionId string) ClientOption + func WithSecretKey(secretKey string) ClientOption + func WithTimeoutMs(timeoutMs uint64) ClientOption + func WithUpdateCacheWhenEmpty(updateCacheWhenEmpty bool) ClientOption + func WithUpdateThreadNum(updateThreadNum int) ClientOption + func WithUsername(username string) ClientOption + type ServerConfig struct + ContextPath string + IpAddr string + Port uint64 + Scheme string + func NewServerConfig(ipAddr string, port uint64, opts ...ServerOption) *ServerConfig + type ServerOption func(*ServerConfig) + func WithContextPath(contextPath string) ServerOption + func WithIpAddr(ipAddr string) ServerOption + func WithPort(port uint64) ServerOption + func WithScheme(scheme string) ServerOption