Versions in this module Expand all Collapse all v1 v1.1.5 Aug 25, 2020 v1.1.4 Aug 6, 2020 v1.1.3 Aug 6, 2020 Changes in this version + func CheckErr(err error, configFile string) error type Backend + AllowList []string + DenyList []string + 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 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 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 v0 v0.9.0 Apr 4, 2019 Changes in this version + const BracketsRouterPatternBuilder + const ColonRouterPatternBuilder + const ConfigVersion + const DefaultMaxIdleConnsPerHost + const DefaultTimeout + var ConfigGetters = map[string]ConfigGetter + var RoutingPattern = ColonRouterPatternBuilder + func DefaultConfigGetter(extra ExtraConfig) interface + type Backend struct + Blacklist []string + ConcurrentCalls int + Decoder encoding.Decoder + Encoding string + ExtraConfig ExtraConfig + Group string + Host []string + HostSanitizationDisabled bool + IsCollection bool + Mapping map[string]string + Method string + SD string + Target string + Timeout time.Duration + URLKeys []string + URLPattern string + Whitelist []string + type ConfigGetter func(ExtraConfig) interface + type EndpointConfig struct + Backend []*Backend + CacheTTL time.Duration + ConcurrentCalls int + Endpoint string + ExtraConfig ExtraConfig + HeadersToPass []string + Method string + OutputEncoding string + QueryString []string + Timeout time.Duration + type ExtraConfig map[string]interface + type FileReaderFunc func(string) ([]byte, error) + 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 ServiceConfig struct + CacheTTL time.Duration + Debug bool + DialerFallbackDelay time.Duration + DialerKeepAlive time.Duration + DialerTimeout time.Duration + DisableCompression bool + DisableKeepAlives bool + DisableStrictREST bool + Endpoints []*EndpointConfig + ExpectContinueTimeout time.Duration + ExtraConfig ExtraConfig + Host []string + IdleConnTimeout time.Duration + IdleTimeout time.Duration + MaxIdleConns int + MaxIdleConnsPerHost int + Name string + OutputEncoding string + Plugin *Plugin + Port int + ReadHeaderTimeout time.Duration + ReadTimeout time.Duration + ResponseHeaderTimeout time.Duration + TLS *TLS + Timeout time.Duration + Version int + WriteTimeout time.Duration + func (s *ServiceConfig) Hash() (string, error) + func (s *ServiceConfig) Init() error + type TLS struct + CipherSuites []uint16 + CurvePreferences []uint16 + 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 Other modules containing this package github.com/podliy16/krakend/v2