Versions in this module Expand all Collapse all v2 v2.1.4 Mar 15, 2023 Changes in this version + const ALL_SYNC_INTERNAL + const APPNAME_HEADER + const CHARSET_KEY + const CLIENT_APPNAME_HEADER + const CLIENT_REQUEST_TOKEN_HEADER + const CLIENT_REQUEST_TS_HEADER + 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 DEFAULT_TIMEOUT_MILLS + const DefaultClientErrorCode + const EX_CONFIG_INFO + const FAILOVER_FILE_SUFFIX + const GRPC + const HEART_BEAT_INTERVAL + const HEART_BEAT_TIMEOUT + const HTTPS_SERVER_PORT + const HTTPS_SERVER_SCHEME + const IP_DELETE_TIMEOUT + const KEEP_ALIVE_TIME + 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 LABEL_MODULE + const LABEL_MODULE_CONFIG + const LABEL_MODULE_NAMING + const LABEL_SOURCE + const LABEL_SOURCE_SDK + const LOG_FILE_NAME + const NAMESPACE_PATH + const NAMING_INSTANCE_ID_SPLITTER + const REQUEST_DOMAIN_RETRY_TIME + const RESPONSE_CODE_SUCCESS + 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 UN_REGISTER + const WEB_CONTEXT + var SkipVerifyConfig = TLSConfig + type ClientConfig struct + AccessKey string + AppKey string + AppName string + AppendToStdout bool + BeatInterval int64 + CacheDir string + ContextPath string + DisableUseSnapShot bool + Endpoint string + ListenInterval uint64 + LogDir string + LogLevel string + LogRollingConfig *ClientLogRollingConfig + LogSampling *ClientLogSamplingConfig + NamespaceId string + NotLoadCacheAtStart bool + OpenKMS bool + Password string + RegionId string + SecretKey string + TLSCfg TLSConfig + TimeoutMs uint64 + UpdateCacheWhenEmpty bool + UpdateThreadNum int + Username string + func NewClientConfig(opts ...ClientOption) *ClientConfig + type ClientLogRollingConfig struct + Compress bool + LocalTime bool + MaxAge int + MaxBackups int + MaxSize int + type ClientLogSamplingConfig struct + Initial int + Thereafter int + Tick time.Duration + type ClientOption func(*ClientConfig) + func WithAccessKey(accessKey string) ClientOption + func WithAppName(appName string) ClientOption + func WithBeatInterval(beatInterval int64) ClientOption + func WithCacheDir(cacheDir string) ClientOption + func WithDisableUseSnapShot(disableUseSnapShot bool) ClientOption + func WithEndpoint(endpoint string) ClientOption + func WithLogDir(logDir string) ClientOption + func WithLogLevel(logLevel string) ClientOption + func WithLogRollingConfig(rollingConfig *ClientLogRollingConfig) ClientOption + func WithLogSampling(tick time.Duration, initial int, thereafter int) 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 WithTLS(tlsCfg TLSConfig) 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 + GrpcPort uint64 + 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 WithGrpcPort(port uint64) ServerOption + func WithIpAddr(ipAddr string) ServerOption + func WithPort(port uint64) ServerOption + func WithScheme(scheme string) ServerOption + type TLSConfig struct + CaFile string + CertFile string + Enable bool + KeyFile string + ServerNameOverride string + func NewTLSConfig(opts ...TLSOption) *TLSConfig + type TLSOption func(*TLSConfig) + func WithCA(caFile, serverNameOverride string) TLSOption + func WithCertificate(certFile, keyFile string) TLSOption