Versions in this module Expand all Collapse all v2 v2.0.12 Sep 5, 2023 v2.0.11 Sep 4, 2023 v2.0.10 Sep 4, 2023 v2.0.9 Sep 4, 2023 v2.0.8 Sep 3, 2023 v2.0.7 Sep 1, 2023 v2.0.6 Sep 1, 2023 v2.0.5 Sep 1, 2023 v2.0.4 Sep 1, 2023 v2.0.3 Sep 1, 2023 Changes in this version type InfraConfig + func (infra *InfraConfig) AddPrivateArg(name string, value interface{}) + func (infra *InfraConfig) GetArgByName(name string) (value interface{}) + func (infra *InfraConfig) GetPrivateArg() map[string]interface{} v2.0.2 Sep 1, 2023 Changes in this version + const BracketsRouterPatternBuilder + const ColonRouterPatternBuilder + const ConfigVersion + const DefaultMaxIdleConnsPerHost + const DefaultTimeout + var ExtraConfigAlias = map[string]string + var RoutingPattern = ColonRouterPatternBuilder + func CheckErr(err error, configFile string) error + func SetSequentialParamsPattern(pattern string) error + type AsyncAgent struct + Backend []*Backend + Connection Connection + Consumer Consumer + Encoding string + ExtraConfig ExtraConfig + Name string + type Backend struct + AllowList []string + ConcurrentCalls int + Decoder encoding.Decoder + DenyList []string + Encoding string + ExtraConfig ExtraConfig + Group string + HeadersToPass []string + Host []string + HostSanitizationDisabled bool + IsCollection bool + Mapping map[string]string + Method string + SD string + SDScheme string + Target string + Timeout time.Duration + URLKeys []string + URLPattern string + type ClientTLS struct + AllowInsecureConnections bool + CaCerts []string + CipherSuites []uint16 + CurvePreferences []uint16 + DisableSystemCaPool bool + MaxVersion string + MinVersion string + type Connection struct + BackoffStrategy string + HealthInterval time.Duration + MaxRetries int + type Consumer struct + MaxRate float64 + Timeout time.Duration + Topic string + Workers int + type EndpointConfig struct + Backend []*Backend + CacheTTL time.Duration + ConcurrentCalls int + Endpoint string + ExtraConfig ExtraConfig + HeadersToPass []string + Method string + OutputEncoding string + Plugins []*PluginConfig + QueryString []string + Timeout time.Duration + type EndpointMatchError struct + Err error + Method string + Path string + func (e *EndpointMatchError) Error() string + type EndpointPathError struct + Method string + Path string + func (e *EndpointPathError) Error() string + type EndpointPluginList struct + Plugin []*EndpointConfig + type EsConfig struct + Addr string + ConnTimes int + Pwd string + User string + type EtcdConfig struct + Addr string + Timeout int + type ExtraConfig map[string]interface + func (e *ExtraConfig) Normalize() + type FileReaderFunc func(string) ([]byte, error) + type GspConfig struct + AccessKey string + Addrs string + Asyn bool + Regions string + SecretKey string + type InfraConfig struct + ES *EsConfig + Etcd *EtcdConfig + Gsp *GspConfig + Jcvt *JcvtConfig + KVDB *KvdbConfig + Kafka *KafkaConfig + Log logging.Logger + Mysql *MySQLConfig + Process *ProcessInfo + Redis *RedisConfig + SysInfo *SystemInfo + type JcvtConfig struct + TemplateDir string + type KafkaConfig struct + Command string + MsgBatchSize int + type KvdbConfig struct + Addr string + CacheTTL int + Compress string + DBName string + MemoryMax float64 + MemoryTTL float64 + Password string + TTLCheckInterval int + Username string + type MySQLConfig struct + DB string + Host string + Password string + Port int + Username string + type NoBackendsError struct + Method string + Path string + func (n *NoBackendsError) Error() string + type ParseError struct + Col int + ConfigFile string + Err error + Offset int + Row int + func NewParseError(err error, configFile string, offset int) *ParseError + func (p *ParseError) Error() string + type Parser interface + Parse func(configFile string) (ServiceConfig, error) + func NewParser() Parser + func NewParserWithFileReader(f FileReaderFunc) Parser + type ParserFunc func(string) (ServiceConfig, error) + func (f ParserFunc) Parse(configFile string) (ServiceConfig, error) + type Plugin struct + Folder string + Pattern string + type PluginConfig struct + Config map[string]interface{} + Index int + Name string + type ProcessInfo struct + APICacheTTL int + APITimeout int + BindAddr string + IsDebug bool + type RedisConfig struct + Addr string + BloomTTL int + Parallel int + Password string + type ServiceConfig struct + AllowInsecureConnections bool + AsyncAgents []*AsyncAgent + CacheTTL time.Duration + ClientTLS *ClientTLS + Debug bool + DialerFallbackDelay time.Duration + DialerKeepAlive time.Duration + DialerTimeout time.Duration + DisableCompression bool + DisableKeepAlives bool + DisableStrictREST bool + Echo bool + Endpoints []*EndpointConfig + ExpectContinueTimeout time.Duration + ExtraConfig ExtraConfig + Host []string + IdleConnTimeout time.Duration + IdleTimeout time.Duration + InfraConfig *InfraConfig + MaxIdleConns int + MaxIdleConnsPerHost int + Name string + OutputEncoding string + Plugin *Plugin + Port int + ReadHeaderTimeout time.Duration + ReadTimeout time.Duration + ResponseHeaderTimeout time.Duration + SequentialStart bool + TLS *TLS + Timeout time.Duration + Version int + WriteTimeout time.Duration + func (s *ServiceConfig) Hash() (string, error) + func (s *ServiceConfig) Init() error + func (s *ServiceConfig) Normalize() + func (s *ServiceConfig) NormalizeEndpoints() + type SystemInfo struct + BaseConfigPath string + DevopsPassword string + NginxBind string + Perftest bool + ProductMode string + ProductName string + ProductVersion string + ViidID string + type TLS struct + CaCerts []string + CipherSuites []uint16 + CurvePreferences []uint16 + DisableSystemCaPool bool + EnableMTLS bool + IsDisabled bool + MaxVersion string + MinVersion string + PreferServerCipherSuites bool + PrivateKey string + PublicKey string + type URI int + func (URI) CleanHost(host string) string + func (URI) CleanPath(path string) string + func (u URI) CleanHosts(hosts []string) []string + func (u URI) GetEndpointPath(path string, params []string) string + type URIParser interface + CleanHost func(string) string + CleanHosts func([]string) []string + CleanPath func(string) string + GetEndpointPath func(string, []string) string + func NewURIParser() URIParser + type UndefinedOutputParamError struct + Backend int + Endpoint string + InputParams []string + Method string + OutputParams []string + Param string + func (u *UndefinedOutputParamError) Error() string + type UnsupportedVersionError struct + Have int + Want int + func (u *UnsupportedVersionError) Error() string + type WrongNumberOfParamsError struct + Backend int + Endpoint string + InputParams []string + Method string + OutputParams []string + func (w *WrongNumberOfParamsError) Error() string