SYMBOL INDEX (1134 symbols across 134 files) FILE: async/asyncagent.go type Options (line 22) | type Options struct type Factory (line 41) | type Factory type AgentStarter (line 44) | type AgentStarter method Start (line 47) | func (a AgentStarter) Start( FILE: async/asyncagent_test.go function TestAgentStarter_Start_last (line 14) | func TestAgentStarter_Start_last(t *testing.T) { function TestAgentStarter_Start_first (line 50) | func TestAgentStarter_Start_first(t *testing.T) { FILE: backoff/backoff.go function GetByName (line 15) | func GetByName(strategy string) TimeToWaitBeforeRetry { type TimeToWaitBeforeRetry (line 31) | type TimeToWaitBeforeRetry function DefaultBackoff (line 37) | func DefaultBackoff(_ int) time.Duration { function ExponentialBackoff (line 42) | func ExponentialBackoff(i int) time.Duration { function ExponentialJitterBackoff (line 48) | func ExponentialJitterBackoff(i int) time.Duration { function LinearBackoff (line 53) | func LinearBackoff(i int) time.Duration { function LinearJitterBackoff (line 59) | func LinearJitterBackoff(i int) time.Duration { function init (line 65) | func init() { function jitter (line 70) | func jitter(i int) time.Duration { FILE: backoff/backoff_test.go function TestExponentialBackoff (line 10) | func TestExponentialBackoff(t *testing.T) { function TestLinearBackoff (line 20) | func TestLinearBackoff(t *testing.T) { function TestDefaultBackoff (line 28) | func TestDefaultBackoff(t *testing.T) { FILE: config/config.go constant BracketsRouterPatternBuilder (line 29) | BracketsRouterPatternBuilder = iota constant ColonRouterPatternBuilder (line 31) | ColonRouterPatternBuilder constant DefaultMaxIdleConnsPerHost (line 33) | DefaultMaxIdleConnsPerHost = 250 constant DefaultTimeout (line 35) | DefaultTimeout = 2 * time.Second constant ConfigVersion (line 38) | ConfigVersion = 3 type ServiceConfig (line 45) | type ServiceConfig struct method Hash (line 393) | func (s *ServiceConfig) Hash() (string, error) { method Init (line 409) | func (s *ServiceConfig) Init() error { method Normalize (line 430) | func (s *ServiceConfig) Normalize() { method initGlobalParams (line 446) | func (s *ServiceConfig) initGlobalParams() error { method initAsyncAgents (line 473) | func (s *ServiceConfig) initAsyncAgents() error { method initEndpoints (line 501) | func (s *ServiceConfig) initEndpoints() error { method paramExtractionPattern (line 547) | func (s *ServiceConfig) paramExtractionPattern() *regexp.Regexp { method extractPlaceHoldersFromURLTemplate (line 554) | func (*ServiceConfig) extractPlaceHoldersFromURLTemplate(subject strin... method initEndpointDefaults (line 563) | func (s *ServiceConfig) initEndpointDefaults(e int) { method initAsyncAgentDefaults (line 586) | func (s *ServiceConfig) initAsyncAgentDefaults(e int) { method initBackendDefaults (line 599) | func (s *ServiceConfig) initBackendDefaults(e, b int) error { method initBackendURLMappings (line 630) | func (s *ServiceConfig) initBackendURLMappings(e, b int, inputParams m... type AsyncAgent (line 200) | type AsyncAgent struct type Consumer (line 213) | type Consumer struct type Connection (line 221) | type Connection struct type EndpointConfig (line 229) | type EndpointConfig struct method validate (line 700) | func (e *EndpointConfig) validate() error { type Backend (line 254) | type Backend struct type Plugin (line 309) | type Plugin struct type TLSKeyPair (line 315) | type TLSKeyPair struct type TLS (line 321) | type TLS struct type ClientTLS (line 337) | type ClientTLS struct type ClientTLSCert (line 350) | type ClientTLSCert struct type ExtraConfig (line 356) | type ExtraConfig method sanitize (line 358) | func (e *ExtraConfig) sanitize() { method Normalize (line 370) | func (e *ExtraConfig) Normalize() { function fromSetToSortedSlice (line 671) | func fromSetToSortedSlice(set map[string]interface{}) []string { function uniqueOutput (line 680) | func uniqueOutput(output []string) ([]string, int) { type EndpointMatchError (line 721) | type EndpointMatchError struct method Error (line 728) | func (e *EndpointMatchError) Error() string { type NoBackendsError (line 734) | type NoBackendsError struct method Error (line 740) | func (n *NoBackendsError) Error() string { type UnsupportedVersionError (line 746) | type UnsupportedVersionError struct method Error (line 752) | func (u *UnsupportedVersionError) Error() string { type EndpointPathError (line 758) | type EndpointPathError struct method Error (line 764) | func (e *EndpointPathError) Error() string { type UndefinedOutputParamError (line 770) | type UndefinedOutputParamError struct method Error (line 780) | func (u *UndefinedOutputParamError) Error() string { type WrongNumberOfParamsError (line 794) | type WrongNumberOfParamsError struct method Error (line 803) | func (w *WrongNumberOfParamsError) Error() string { function SetSequentialParamsPattern (line 814) | func SetSequentialParamsPattern(pattern string) error { function SetInvalidPattern (line 824) | func SetInvalidPattern(pattern string) { function validateAddress (line 828) | func validateAddress(address string) bool { FILE: config/config_test.go function TestConfig_rejectInvalidVersion (line 13) | func TestConfig_rejectInvalidVersion(t *testing.T) { function TestConfig_rejectInvalidEndpoints (line 21) | func TestConfig_rejectInvalidEndpoints(t *testing.T) { function TestConfig_initBackendURLMappings_ok (line 38) | func TestConfig_initBackendURLMappings_ok(t *testing.T) { function TestConfig_initBackendURLMappings_tooManyOutput (line 86) | func TestConfig_initBackendURLMappings_tooManyOutput(t *testing.T) { function TestConfig_initBackendURLMappings_undefinedOutput (line 107) | func TestConfig_initBackendURLMappings_undefinedOutput(t *testing.T) { function TestConfig_init (line 125) | func TestConfig_init(t *testing.T) { function TestConfig_initKONoBackends (line 219) | func TestConfig_initKONoBackends(t *testing.T) { function TestConfig_initKOMultipleBackendsForNoopEncoder (line 238) | func TestConfig_initKOMultipleBackendsForNoopEncoder(t *testing.T) { function TestConfig_initKOInvalidHost (line 264) | func TestConfig_initKOInvalidHost(t *testing.T) { function TestConfig_initKOInvalidDebugPattern (line 289) | func TestConfig_initKOInvalidDebugPattern(t *testing.T) { function TestConfig_initKOValidSetinvalidPattern (line 313) | func TestConfig_initKOValidSetinvalidPattern(t *testing.T) { FILE: config/parser.go type Parser (line 13) | type Parser interface type ParserFunc (line 19) | type ParserFunc method Parse (line 22) | func (f ParserFunc) Parse(configFile string) (ServiceConfig, error) { ... function NewParser (line 25) | func NewParser() Parser { function NewParserWithFileReader (line 30) | func NewParserWithFileReader(f FileReaderFunc) Parser { type parser (line 34) | type parser struct method Parse (line 39) | func (p parser) Parse(configFile string) (ServiceConfig, error) { function CheckErr (line 59) | func CheckErr(err error, configFile string) error { function NewParseError (line 78) | func NewParseError(err error, configFile string, offset int) *ParseError { function getErrorRowCol (line 90) | func getErrorRowCol(source []byte, offset int) (row, col int) { type ParseError (line 111) | type ParseError struct method Error (line 120) | func (p *ParseError) Error() string { type FileReaderFunc (line 132) | type FileReaderFunc type parseableServiceConfig (line 134) | type parseableServiceConfig struct method normalize (line 172) | func (p *parseableServiceConfig) normalize() ServiceConfig { type parseableTLSKeyPair (line 254) | type parseableTLSKeyPair struct type parseableTLS (line 259) | type parseableTLS struct type parseableClientTLS (line 274) | type parseableClientTLS struct type parseableClientTLSCert (line 285) | type parseableClientTLSCert struct type parseableEndpointConfig (line 290) | type parseableEndpointConfig struct method normalize (line 303) | func (p *parseableEndpointConfig) normalize() *EndpointConfig { type parseableAsyncAgent (line 325) | type parseableAsyncAgent struct method normalize (line 343) | func (p *parseableAsyncAgent) normalize() *AsyncAgent { type parseableBackend (line 370) | type parseableBackend struct method normalize (line 389) | func (p *parseableBackend) normalize() *Backend { function parseDuration (line 416) | func parseDuration(v string) time.Duration { FILE: config/parser_test.go function TestNewParser_ok (line 10) | func TestNewParser_ok(t *testing.T) { function TestNewParser_errorMessages (line 159) | func TestNewParser_errorMessages(t *testing.T) { function testExtraConfig (line 246) | func testExtraConfig(extraConfig map[string]interface{}, t *testing.T) { function TestNewParser_unknownFile (line 260) | func TestNewParser_unknownFile(t *testing.T) { function TestNewParser_readingError (line 267) | func TestNewParser_readingError(t *testing.T) { function TestNewParser_initError (line 284) | func TestNewParser_initError(t *testing.T) { function TestParserFunc (line 300) | func TestParserFunc(t *testing.T) { FILE: config/uri.go type URIParser (line 17) | type URIParser interface type SafeURIParser (line 26) | type SafeURIParser interface function NewURIParser (line 34) | func NewURIParser() URIParser { function NewSafeURIParser (line 39) | func NewSafeURIParser() URI { type URI (line 44) | type URI method SafeCleanHosts (line 47) | func (u URI) SafeCleanHosts(hosts []string) ([]string, error) { method CleanHosts (line 61) | func (u URI) CleanHosts(hosts []string) []string { method SafeCleanHost (line 70) | func (URI) SafeCleanHost(host string) (string, error) { method CleanHost (line 84) | func (u URI) CleanHost(host string) string { method CleanPath (line 93) | func (URI) CleanPath(path string) string { method GetEndpointPath (line 98) | func (u URI) GetEndpointPath(path string, params []string) string { FILE: config/uri_test.go function TestURIParser_cleanHosts (line 7) | func TestURIParser_cleanHosts(t *testing.T) { function TestURIParser_cleanPath (line 34) | func TestURIParser_cleanPath(t *testing.T) { function TestURIParser_getEndpointPath (line 66) | func TestURIParser_getEndpointPath(t *testing.T) { function TestURIParser_getEndpointPath_notStrictREST (line 93) | func TestURIParser_getEndpointPath_notStrictREST(t *testing.T) { FILE: core/version.go constant KrakendHeaderName (line 15) | KrakendHeaderName = "X-KRAKEND" FILE: encoding/encoding.go type Decoder (line 22) | type Decoder type DecoderFactory (line 25) | type DecoderFactory constant NOOP (line 28) | NOOP = "no-op" function NoOpDecoder (line 31) | func NoOpDecoder(_ io.Reader, _ *map[string]interface{}) error { return ... function noOpDecoderFactory (line 33) | func noOpDecoderFactory(_ bool) func(io.Reader, *map[string]interface{})... constant JSON (line 36) | JSON = "json" function NewJSONDecoder (line 39) | func NewJSONDecoder(isCollection bool) func(io.Reader, *map[string]inter... function JSONDecoder (line 47) | func JSONDecoder(r io.Reader, v *map[string]interface{}) error { function JSONCollectionDecoder (line 54) | func JSONCollectionDecoder(r io.Reader, v *map[string]interface{}) error { constant SAFE_JSON (line 66) | SAFE_JSON = "safejson" function NewSafeJSONDecoder (line 69) | func NewSafeJSONDecoder(_ bool) func(io.Reader, *map[string]interface{})... function SafeJSONDecoder (line 74) | func SafeJSONDecoder(r io.Reader, v *map[string]interface{}) error { constant STRING (line 93) | STRING = "string" function NewStringDecoder (line 96) | func NewStringDecoder(_ bool) func(io.Reader, *map[string]interface{}) e... function StringDecoder (line 101) | func StringDecoder(r io.Reader, v *map[string]interface{}) error { FILE: encoding/encoding_test.go function TestNoOpDecoder (line 14) | func TestNoOpDecoder(t *testing.T) { function TestRegister (line 30) | func TestRegister(t *testing.T) { function TestGet (line 48) | func TestGet(t *testing.T) { function TestRegister_complete_ok (line 70) | func TestRegister_complete_ok(t *testing.T) { function TestRegister_complete_ko (line 107) | func TestRegister_complete_ko(t *testing.T) { function checkDecoder (line 144) | func checkDecoder(t *testing.T, name string) { type erroredReader (line 157) | type erroredReader method Error (line 159) | func (e erroredReader) Error() string { method Read (line 163) | func (e erroredReader) Read(_ []byte) (n int, err error) { FILE: encoding/json_benchmark_test.go function BenchmarkDecoder (line 11) | func BenchmarkDecoder(b *testing.B) { FILE: encoding/json_test.go function ExampleNewJSONDecoder_map (line 12) | func ExampleNewJSONDecoder_map() { function ExampleNewJSONDecoder_collection (line 25) | func ExampleNewJSONDecoder_collection() { function TestNewJSONDecoder_map (line 38) | func TestNewJSONDecoder_map(t *testing.T) { function TestNewJSONDecoder_collection (line 59) | func TestNewJSONDecoder_collection(t *testing.T) { function TestNewJSONDecoder_ko (line 85) | func TestNewJSONDecoder_ko(t *testing.T) { function ExampleNewSafeJSONDecoder (line 94) | func ExampleNewSafeJSONDecoder() { function TestNewSafeJSONDecoder_map (line 112) | func TestNewSafeJSONDecoder_map(t *testing.T) { function TestNewSafeJSONDecoder_collection (line 133) | func TestNewSafeJSONDecoder_collection(t *testing.T) { function TestNewSafeJSONDecoder_other (line 159) | func TestNewSafeJSONDecoder_other(t *testing.T) { FILE: encoding/register.go function GetRegister (line 12) | func GetRegister() *DecoderRegister { type untypedRegister (line 16) | type untypedRegister interface type DecoderRegister (line 23) | type DecoderRegister struct method Register (line 28) | func (r *DecoderRegister) Register(name string, dec func(bool) func(io... method Get (line 34) | func (r *DecoderRegister) Get(name string) func(bool) func(io.Reader, ... function initDecoderRegister (line 55) | func initDecoderRegister() *DecoderRegister { FILE: logging/log.go type Logger (line 17) | type Logger interface constant LEVEL_DEBUG (line 28) | LEVEL_DEBUG = iota constant LEVEL_INFO (line 30) | LEVEL_INFO constant LEVEL_WARNING (line 32) | LEVEL_WARNING constant LEVEL_ERROR (line 34) | LEVEL_ERROR constant LEVEL_CRITICAL (line 36) | LEVEL_CRITICAL function NewLogger (line 55) | func NewLogger(level string, out io.Writer, prefix string) (BasicLogger,... type BasicLogger (line 63) | type BasicLogger struct method Debug (line 70) | func (l BasicLogger) Debug(v ...interface{}) { method Info (line 78) | func (l BasicLogger) Info(v ...interface{}) { method Warning (line 86) | func (l BasicLogger) Warning(v ...interface{}) { method Error (line 94) | func (l BasicLogger) Error(v ...interface{}) { method Critical (line 102) | func (l BasicLogger) Critical(v ...interface{}) { method Fatal (line 107) | func (l BasicLogger) Fatal(v ...interface{}) { method prependLog (line 112) | func (l BasicLogger) prependLog(level string, v ...interface{}) { FILE: logging/log_test.go constant debugMsg (line 14) | debugMsg = "Debug msg" constant infoMsg (line 15) | infoMsg = "Info msg" constant warningMsg (line 16) | warningMsg = "Warning msg" constant errorMsg (line 17) | errorMsg = "Error msg" constant criticalMsg (line 18) | criticalMsg = "Critical msg" constant fatalMsg (line 19) | fatalMsg = "Fatal msg" function TestNewLogger (line 22) | func TestNewLogger(t *testing.T) { function TestNewLogger_unknownLevel (line 42) | func TestNewLogger_unknownLevel(t *testing.T) { function TestNewLogger_fatal (line 53) | func TestNewLogger_fatal(t *testing.T) { function logSomeStuff (line 72) | func logSomeStuff(level string) string { FILE: plugin/plugin.go function Scan (line 15) | func Scan(folder, pattern string) ([]string, error) { FILE: plugin/plugin_test.go function TestScan_ok (line 10) | func TestScan_ok(t *testing.T) { function TestScan_noFolder (line 34) | func TestScan_noFolder(t *testing.T) { function TestScan_emptyFolder (line 49) | func TestScan_emptyFolder(t *testing.T) { function TestScan_noMatches (line 65) | func TestScan_noMatches(t *testing.T) { FILE: proxy/balancing.go function NewLoadBalancedMiddleware (line 16) | func NewLoadBalancedMiddleware(remote *config.Backend) Middleware { function NewLoadBalancedMiddlewareWithSubscriber (line 22) | func NewLoadBalancedMiddlewareWithSubscriber(subscriber sd.Subscriber) M... function NewRoundRobinLoadBalancedMiddleware (line 28) | func NewRoundRobinLoadBalancedMiddleware(remote *config.Backend) Middlew... function NewRandomLoadBalancedMiddleware (line 34) | func NewRandomLoadBalancedMiddleware(remote *config.Backend) Middleware { function NewRoundRobinLoadBalancedMiddlewareWithSubscriber (line 40) | func NewRoundRobinLoadBalancedMiddlewareWithSubscriber(subscriber sd.Sub... function NewRandomLoadBalancedMiddlewareWithSubscriber (line 46) | func NewRandomLoadBalancedMiddlewareWithSubscriber(subscriber sd.Subscri... function NewLoadBalancedMiddlewareWithLogger (line 52) | func NewLoadBalancedMiddlewareWithLogger(l logging.Logger, remote *confi... function NewLoadBalancedMiddlewareWithSubscriberAndLogger (line 58) | func NewLoadBalancedMiddlewareWithSubscriberAndLogger(l logging.Logger, ... function NewRoundRobinLoadBalancedMiddlewareWithLogger (line 64) | func NewRoundRobinLoadBalancedMiddlewareWithLogger(l logging.Logger, rem... function NewRandomLoadBalancedMiddlewareWithLogger (line 70) | func NewRandomLoadBalancedMiddlewareWithLogger(l logging.Logger, remote ... function NewRoundRobinLoadBalancedMiddlewareWithSubscriberAndLogger (line 76) | func NewRoundRobinLoadBalancedMiddlewareWithSubscriberAndLogger(l loggin... function NewRandomLoadBalancedMiddlewareWithSubscriberAndLogger (line 82) | func NewRandomLoadBalancedMiddlewareWithSubscriberAndLogger(l logging.Lo... function newLoadBalancedMiddleware (line 86) | func newLoadBalancedMiddleware(l logging.Logger, lb sd.Balancer) Middlew... FILE: proxy/balancing_benchmark_test.go constant veryLargeString (line 13) | veryLargeString = "abcdefghijklmopqrstuvwxyzabcdefghijklmopqrstuvwxyzabc... function BenchmarkNewLoadBalancedMiddleware (line 15) | func BenchmarkNewLoadBalancedMiddleware(b *testing.B) { function BenchmarkNewLoadBalancedMiddleware_parallel3 (line 30) | func BenchmarkNewLoadBalancedMiddleware_parallel3(b *testing.B) { function BenchmarkNewLoadBalancedMiddleware_parallel5 (line 34) | func BenchmarkNewLoadBalancedMiddleware_parallel5(b *testing.B) { function BenchmarkNewLoadBalancedMiddleware_parallel9 (line 38) | func BenchmarkNewLoadBalancedMiddleware_parallel9(b *testing.B) { function BenchmarkNewLoadBalancedMiddleware_parallel13 (line 42) | func BenchmarkNewLoadBalancedMiddleware_parallel13(b *testing.B) { function BenchmarkNewLoadBalancedMiddleware_parallel17 (line 46) | func BenchmarkNewLoadBalancedMiddleware_parallel17(b *testing.B) { function BenchmarkNewLoadBalancedMiddleware_parallel21 (line 50) | func BenchmarkNewLoadBalancedMiddleware_parallel21(b *testing.B) { function BenchmarkNewLoadBalancedMiddleware_parallel25 (line 54) | func BenchmarkNewLoadBalancedMiddleware_parallel25(b *testing.B) { function BenchmarkNewLoadBalancedMiddleware_parallel50 (line 58) | func BenchmarkNewLoadBalancedMiddleware_parallel50(b *testing.B) { function BenchmarkNewLoadBalancedMiddleware_parallel100 (line 62) | func BenchmarkNewLoadBalancedMiddleware_parallel100(b *testing.B) { function benchmarkNewLoadBalancedMiddleware_parallel (line 66) | func benchmarkNewLoadBalancedMiddleware_parallel(b *testing.B, subject s... FILE: proxy/balancing_test.go function TestNewLoadBalancedMiddleware_ok (line 17) | func TestNewLoadBalancedMiddleware_ok(t *testing.T) { function TestNewLoadBalancedMiddleware_explosiveBalancer (line 33) | func TestNewLoadBalancedMiddleware_explosiveBalancer(t *testing.T) { function TestNewRoundRobinLoadBalancedMiddleware (line 41) | func TestNewRoundRobinLoadBalancedMiddleware(t *testing.T) { function TestNewRandomLoadBalancedMiddleware (line 47) | func TestNewRandomLoadBalancedMiddleware(t *testing.T) { function testLoadBalancedMw (line 53) | func testLoadBalancedMw(t *testing.T, lb Middleware) { function TestNewLoadBalancedMiddleware_parsingError (line 93) | func TestNewLoadBalancedMiddleware_parsingError(t *testing.T) { function TestNewRoundRobinLoadBalancedMiddleware_DNSSRV (line 108) | func TestNewRoundRobinLoadBalancedMiddleware_DNSSRV(t *testing.T) { type dummyBalancer (line 125) | type dummyBalancer method Host (line 127) | func (d dummyBalancer) Host() (string, error) { return string(d), nil } type explosiveBalancer (line 129) | type explosiveBalancer struct method Host (line 133) | func (e explosiveBalancer) Host() (string, error) { return "", e.Error } FILE: proxy/concurrent.go function NewConcurrentMiddlewareWithLogger (line 16) | func NewConcurrentMiddlewareWithLogger(logger logging.Logger, remote *co... function NewConcurrentMiddleware (line 67) | func NewConcurrentMiddleware(remote *config.Backend) Middleware { function processConcurrentCall (line 73) | func processConcurrentCall(ctx context.Context, next Proxy, request *Req... FILE: proxy/concurrent_benchmark_test.go function BenchmarkNewConcurrentMiddleware_singleNext (line 13) | func BenchmarkNewConcurrentMiddleware_singleNext(b *testing.B) { FILE: proxy/concurrent_test.go function TestNewConcurrentMiddleware_ok (line 14) | func TestNewConcurrentMiddleware_ok(t *testing.T) { function TestNewConcurrentMiddleware_okAfterKo (line 54) | func TestNewConcurrentMiddleware_okAfterKo(t *testing.T) { function TestNewConcurrentMiddleware_timeout (line 104) | func TestNewConcurrentMiddleware_timeout(t *testing.T) { FILE: proxy/factory.go type Factory (line 16) | type Factory interface type FactoryFunc (line 22) | type FactoryFunc method New (line 25) | func (f FactoryFunc) New(cfg *config.EndpointConfig) (Proxy, error) { ... function DefaultFactory (line 28) | func DefaultFactory(logger logging.Logger) Factory { function DefaultFactoryWithSubscriber (line 33) | func DefaultFactoryWithSubscriber(logger logging.Logger, sF sd.Subscribe... function NewDefaultFactory (line 38) | func NewDefaultFactory(backendFactory BackendFactory, logger logging.Log... function NewDefaultFactoryWithSubscriber (line 47) | func NewDefaultFactoryWithSubscriber(backendFactory BackendFactory, logg... type defaultFactory (line 51) | type defaultFactory struct method New (line 58) | func (pf defaultFactory) New(cfg *config.EndpointConfig) (p Proxy, err... method newMulti (line 76) | func (pf defaultFactory) newMulti(cfg *config.EndpointConfig) (p Proxy... method newSingle (line 86) | func (pf defaultFactory) newSingle(cfg *config.EndpointConfig) (Proxy,... method newStack (line 90) | func (pf defaultFactory) newStack(backend *config.Backend) (p Proxy) { FILE: proxy/factory_test.go function TestFactoryFunc (line 21) | func TestFactoryFunc(t *testing.T) { function TestDefaultFactoryWithSubscriber (line 36) | func TestDefaultFactoryWithSubscriber(t *testing.T) { function TestDefaultFactory_noBackends (line 51) | func TestDefaultFactory_noBackends(t *testing.T) { function TestNewDefaultFactory_ok (line 65) | func TestNewDefaultFactory_ok(t *testing.T) { FILE: proxy/formatter.go type EntityFormatter (line 16) | type EntityFormatter interface type EntityFormatterFunc (line 21) | type EntityFormatterFunc method Format (line 24) | func (e EntityFormatterFunc) Format(entity Response) Response { return... type propertyFilter (line 26) | type propertyFilter type entityFormatter (line 28) | type entityFormatter struct method Format (line 61) | func (e entityFormatter) Format(entity Response) Response { function NewEntityFormatter (line 36) | func NewEntityFormatter(remote *config.Backend) EntityFormatter { function extractTarget (line 82) | func extractTarget(target string, entity *Response) { function AllowlistPrune (line 97) | func AllowlistPrune(wlDict, inDict map[string]interface{}) bool { function newAllowlistingFilter (line 121) | func newAllowlistingFilter(Allowlist []string) propertyFilter { function buildDictPath (line 138) | func buildDictPath(accumulator map[string]interface{}, fields []string) ... function buildDenyTree (line 158) | func buildDenyTree(path []string, tree map[string]interface{}) { function recDelete (line 196) | func recDelete(ref map[string]interface{}, v interface{}) { function newDenylistingFilter (line 215) | func newDenylistingFilter(blacklist []string) propertyFilter { constant flatmapKey (line 227) | flatmapKey = "flatmap_filter" type flatmapFormatter (line 229) | type flatmapFormatter struct method Format (line 241) | func (e flatmapFormatter) Format(entity Response) Response { method processOps (line 254) | func (e flatmapFormatter) processOps(entity *Response) { type flatmapOp (line 235) | type flatmapOp struct function newFlatmapFormatter (line 276) | func newFlatmapFormatter(cfg config.ExtraConfig, target, group string) *... function NewFlatmapMiddleware (line 320) | func NewFlatmapMiddleware(logger logging.Logger, cfg *config.EndpointCon... FILE: proxy/formatter_benchmark_test.go function BenchmarkEntityFormatter_allowFilter (line 14) | func BenchmarkEntityFormatter_allowFilter(b *testing.B) { function benchmarkDeepChilds (line 50) | func benchmarkDeepChilds(depth, extraSiblings int) map[string]interface{} { function benchmarkDeepStructure (line 63) | func benchmarkDeepStructure(numTargets, targetDepth, extraFields, extraS... function BenchmarkEntityFormatter_deepAllowFilter (line 84) | func BenchmarkEntityFormatter_deepAllowFilter(b *testing.B) { function BenchmarkEntityFormatter_denyFilter (line 108) | func BenchmarkEntityFormatter_denyFilter(b *testing.B) { function BenchmarkEntityFormatter_grouping (line 143) | func BenchmarkEntityFormatter_grouping(b *testing.B) { function BenchmarkEntityFormatter_mapping (line 165) | func BenchmarkEntityFormatter_mapping(b *testing.B) { function BenchmarkEntityFormatter_flatmapAlt (line 195) | func BenchmarkEntityFormatter_flatmapAlt(b *testing.B) { function BenchmarkEntityFormatter_flatmap (line 277) | func BenchmarkEntityFormatter_flatmap(b *testing.B) { FILE: proxy/formatter_test.go function TestEntityFormatterFunc (line 14) | func TestEntityFormatterFunc(t *testing.T) { function TestEntityFormatter_newAllowFilter (line 27) | func TestEntityFormatter_newAllowFilter(t *testing.T) { function TestEntityFormatter_newAllowDeepFields (line 75) | func TestEntityFormatter_newAllowDeepFields(t *testing.T) { function TestEntityFormatter_newDenyFilter (line 128) | func TestEntityFormatter_newDenyFilter(t *testing.T) { function TestEntityFormatter_grouping (line 216) | func TestEntityFormatter_grouping(t *testing.T) { function TestEntityFormatter_mapping (line 252) | func TestEntityFormatter_mapping(t *testing.T) { function TestEntityFormatter_targeting (line 304) | func TestEntityFormatter_targeting(t *testing.T) { function TestEntityFormatter_targetingNested (line 336) | func TestEntityFormatter_targetingNested(t *testing.T) { function TestEntityFormatter_targetingUnknownFields (line 370) | func TestEntityFormatter_targetingUnknownFields(t *testing.T) { function TestEntityFormatter_targetingNonObjects (line 387) | func TestEntityFormatter_targetingNonObjects(t *testing.T) { function TestEntityFormatter_altogether (line 405) | func TestEntityFormatter_altogether(t *testing.T) { function TestEntityFormatter_flatmap (line 450) | func TestEntityFormatter_flatmap(t *testing.T) { function TestNewFlatmapMiddleware (line 543) | func TestNewFlatmapMiddleware(t *testing.T) { FILE: proxy/graphql.go function NewGraphQLMiddleware (line 26) | func NewGraphQLMiddleware(logger logging.Logger, remote *config.Backend)... FILE: proxy/graphql_test.go function TestNewGraphQLMiddleware_mutation (line 18) | func TestNewGraphQLMiddleware_mutation(t *testing.T) { function TestNewGraphQLMiddleware_query (line 74) | func TestNewGraphQLMiddleware_query(t *testing.T) { FILE: proxy/headers_filter.go function NewFilterHeadersMiddleware (line 14) | func NewFilterHeadersMiddleware(logger logging.Logger, remote *config.Ba... FILE: proxy/headers_filter_test.go function TestNewFilterHeadersMiddleware (line 13) | func TestNewFilterHeadersMiddleware(t *testing.T) { function TestNewFilterHeadersMiddlewareBlockAll (line 85) | func TestNewFilterHeadersMiddlewareBlockAll(t *testing.T) { function TestNewFilterHeadersMiddlewareAllowAll (line 121) | func TestNewFilterHeadersMiddlewareAllowAll(t *testing.T) { FILE: proxy/http.go function HTTPProxyFactory (line 23) | func HTTPProxyFactory(client *http.Client) BackendFactory { function CustomHTTPProxyFactory (line 28) | func CustomHTTPProxyFactory(cf client.HTTPClientFactory) BackendFactory { function NewHTTPProxy (line 35) | func NewHTTPProxy(remote *config.Backend, cf client.HTTPClientFactory, d... function NewHTTPProxyWithHTTPExecutor (line 40) | func NewHTTPProxyWithHTTPExecutor(remote *config.Backend, re client.HTTP... constant clientHTTPOptions (line 51) | clientHTTPOptions string = "backend/http/client" constant clientHTTPOptionRedirectPost (line 52) | clientHTTPOptionRedirectPost string = "send_body_on_redirect" function redirectPostReaderFactory (line 61) | func redirectPostReaderFactory(cfg *config.Backend) func(r io.ReadCloser... function NewHTTPProxyDetailed (line 86) | func NewHTTPProxyDetailed(cfg *config.Backend, re client.HTTPRequestExec... function NewRequestBuilderMiddlewareWithLogger (line 144) | func NewRequestBuilderMiddlewareWithLogger(logger logging.Logger, remote... function newRequestBuilderMiddleware (line 148) | func newRequestBuilderMiddleware(l logging.Logger, remote *config.Backen... type responseError (line 162) | type responseError interface FILE: proxy/http_benchmark_test.go function BenchmarkNewRequestBuilderMiddleware (line 12) | func BenchmarkNewRequestBuilderMiddleware(b *testing.B) { FILE: proxy/http_response.go type HTTPResponseParser (line 15) | type HTTPResponseParser type HTTPResponseParserConfig (line 24) | type HTTPResponseParserConfig struct type HTTPResponseParserFactory (line 30) | type HTTPResponseParserFactory function DefaultHTTPResponseParserFactory (line 33) | func DefaultHTTPResponseParserFactory(cfg HTTPResponseParserConfig) HTTP... function NoOpHTTPResponseParser (line 63) | func NoOpHTTPResponseParser(ctx context.Context, resp *http.Response) (*... FILE: proxy/http_response_test.go function TestNopHTTPResponseParser (line 16) | func TestNopHTTPResponseParser(t *testing.T) { function TestDefaultHTTPResponseParser_gzipped (line 51) | func TestDefaultHTTPResponseParser_gzipped(t *testing.T) { function TestDefaultHTTPResponseParser_gzipped_bad_header (line 87) | func TestDefaultHTTPResponseParser_gzipped_bad_header(t *testing.T) { function TestDefaultHTTPResponseParser_plain (line 124) | func TestDefaultHTTPResponseParser_plain(t *testing.T) { FILE: proxy/http_test.go function TestNewHTTPProxy_ok (line 25) | func TestNewHTTPProxy_ok(t *testing.T) { function TestNewHTTPProxy_cancel (line 100) | func TestNewHTTPProxy_cancel(t *testing.T) { function TestNewHTTPProxy_badResponseBody (line 137) | func TestNewHTTPProxy_badResponseBody(t *testing.T) { function TestNewHTTPProxy_badStatusCode (line 172) | func TestNewHTTPProxy_badStatusCode(t *testing.T) { function TestNewHTTPProxy_badStatusCode_detailed (line 207) | func TestNewHTTPProxy_badStatusCode_detailed(t *testing.T) { function TestNewHTTPProxy_decodingError (line 255) | func TestNewHTTPProxy_decodingError(t *testing.T) { function TestNewHTTPProxy_badMethod (line 292) | func TestNewHTTPProxy_badMethod(t *testing.T) { function TestNewHTTPProxy_requestKo (line 331) | func TestNewHTTPProxy_requestKo(t *testing.T) { function TestNewRequestBuilderMiddleware_ok (line 374) | func TestNewRequestBuilderMiddleware_ok(t *testing.T) { function TestDefaultHTTPResponseParserConfig_nopDecoder (line 405) | func TestDefaultHTTPResponseParserConfig_nopDecoder(t *testing.T) { function TestDefaultHTTPResponseParserConfig_nopEntityFormatter (line 415) | func TestDefaultHTTPResponseParserConfig_nopEntityFormatter(t *testing.T) { function TestNewHTTPProxy_noopDecoder (line 430) | func TestNewHTTPProxy_noopDecoder(t *testing.T) { function TestNewHTTPProxy_redirectWithBody (line 493) | func TestNewHTTPProxy_redirectWithBody(t *testing.T) { FILE: proxy/logging.go function NewLoggingMiddleware (line 14) | func NewLoggingMiddleware(logger logging.Logger, name string) Middleware { FILE: proxy/logging_test.go function TestNewLoggingMiddleware_ok (line 15) | func TestNewLoggingMiddleware_ok(t *testing.T) { function TestNewLoggingMiddleware_erroredResponse (line 48) | func TestNewLoggingMiddleware_erroredResponse(t *testing.T) { function TestNewLoggingMiddleware_nullResponse (line 90) | func TestNewLoggingMiddleware_nullResponse(t *testing.T) { FILE: proxy/merging.go function NewMergeDataMiddleware (line 20) | func NewMergeDataMiddleware(logger logging.Logger, endpointConfig *confi... type BackendFiltererFactory (line 77) | type BackendFiltererFactory type BackendFilterer (line 82) | type BackendFilterer function defaultBackendFiltererFactory (line 84) | func defaultBackendFiltererFactory(_ *config.EndpointConfig) ([]BackendF... type backendFiltererRegistry (line 88) | type backendFiltererRegistry struct function RegisterBackendFiltererFactory (line 102) | func RegisterBackendFiltererFactory(logPrefix string, f BackendFiltererF... function ResetBackendFiltererFactory (line 107) | func ResetBackendFiltererFactory() { type sequentialBackendReplacement (line 112) | type sequentialBackendReplacement struct function sequentialMergerConfig (line 119) | func sequentialMergerConfig(cfg *config.EndpointConfig) (bool, [][]seque... function hasUnsafeBackends (line 190) | func hasUnsafeBackends(cfg *config.EndpointConfig) bool { function parallelMerge (line 204) | func parallelMerge( function sequentialMerge (line 244) | func sequentialMerge( // skipcq: GO-R1005 type incrementalMergeAccumulator (line 372) | type incrementalMergeAccumulator struct method Merge (line 387) | func (i *incrementalMergeAccumulator) Merge(res *Response, err error) { method Result (line 407) | func (i *incrementalMergeAccumulator) Result() (*Response, error) { function newIncrementalMergeAccumulator (line 379) | func newIncrementalMergeAccumulator(total int, combiner ResponseCombiner... function requestPart (line 418) | func requestPart(ctx context.Context, next Proxy, request *Request, out ... function sequentialRequestPart (line 440) | func sequentialRequestPart(ctx context.Context, next Proxy, request *Req... function newMergeError (line 462) | func newMergeError(errs []error) error { type mergeError (line 469) | type mergeError struct method Error (line 473) | func (m mergeError) Error() string { method Errors (line 481) | func (m mergeError) Errors() []error { type ResponseCombiner (line 486) | type ResponseCombiner function RegisterResponseCombiner (line 489) | func RegisterResponseCombiner(name string, f ResponseCombiner) { constant mergeKey (line 494) | mergeKey = "combiner" constant isSequentialKey (line 495) | isSequentialKey = "sequential" constant sequentialPropagateKey (line 496) | sequentialPropagateKey = "sequential_propagated_params" constant defaultCombinerName (line 497) | defaultCombinerName = "default" function initResponseCombiners (line 502) | func initResponseCombiners() *combinerRegister { function getResponseCombinerName (line 506) | func getResponseCombinerName(extra config.ExtraConfig) string { function getResponseCombiner (line 519) | func getResponseCombiner(extra config.ExtraConfig) ResponseCombiner { function combineData (line 525) | func combineData(total int, parts []*Response) *Response { FILE: proxy/merging_benchmark_test.go function BenchmarkNewMergeDataMiddleware (line 15) | func BenchmarkNewMergeDataMiddleware(b *testing.B) { function BenchmarkNewMergeDataMiddleware_sequential (line 51) | func BenchmarkNewMergeDataMiddleware_sequential(b *testing.B) { FILE: proxy/merging_test.go function TestNewMergeDataMiddleware (line 17) | func TestNewMergeDataMiddleware(t *testing.T) { function testNewMergeDataMiddleware_empty (line 41) | func testNewMergeDataMiddleware_empty(t *testing.T) { function testNewMergeDataMiddleware_ok (line 84) | func testNewMergeDataMiddleware_ok(t *testing.T) { function testNewMergeDataMiddleware_sequential (line 117) | func testNewMergeDataMiddleware_sequential(t *testing.T) { function checkRequestParam (line 247) | func checkRequestParam(t *testing.T, r *Request, k, v string) { function testNewMergeDataMiddleware_sequential_unavailableParams (line 253) | func testNewMergeDataMiddleware_sequential_unavailableParams(t *testing.... function testNewMergeDataMiddleware_sequential_erroredBackend (line 312) | func testNewMergeDataMiddleware_sequential_erroredBackend(t *testing.T) { function testNewMergeDataMiddleware_sequential_erroredFirstBackend (line 364) | func testNewMergeDataMiddleware_sequential_erroredFirstBackend(t *testin... function testNewMergeDataMiddleware_mergeIncompleteResults (line 411) | func testNewMergeDataMiddleware_mergeIncompleteResults(t *testing.T) { function testNewMergeDataMiddleware_mergeEmptyResults (line 444) | func testNewMergeDataMiddleware_mergeEmptyResults(t *testing.T) { function testNewMergeDataMiddleware_partialTimeout (line 477) | func testNewMergeDataMiddleware_partialTimeout(t *testing.T) { function testNewMergeDataMiddleware_partial (line 510) | func testNewMergeDataMiddleware_partial(t *testing.T) { function testNewMergeDataMiddleware_nullResponse (line 543) | func testNewMergeDataMiddleware_nullResponse(t *testing.T) { function testNewMergeDataMiddleware_timeout (line 581) | func testNewMergeDataMiddleware_timeout(t *testing.T) { function testRegisterResponseCombiner (line 622) | func testRegisterResponseCombiner(t *testing.T) { function Test_incrementalMergeAccumulator_invalidResponse (line 670) | func Test_incrementalMergeAccumulator_invalidResponse(t *testing.T) { function Test_incrementalMergeAccumulator_incompleteResponse (line 703) | func Test_incrementalMergeAccumulator_incompleteResponse(t *testing.T) { function testNewMergeDataMiddleware_simpleFiltering (line 722) | func testNewMergeDataMiddleware_simpleFiltering(t *testing.T) { function testNewMergeDataMiddleware_sequentialFiltering (line 767) | func testNewMergeDataMiddleware_sequentialFiltering(t *testing.T) { FILE: proxy/plugin.go function NewPluginMiddleware (line 20) | func NewPluginMiddleware(logger logging.Logger, endpoint *config.Endpoin... function NewBackendPluginMiddleware (line 34) | func NewBackendPluginMiddleware(logger logging.Logger, remote *config.Ba... function newPluginMiddleware (line 45) | func newPluginMiddleware(logger logging.Logger, tag, pattern string, cfg... function executeRequestModifiers (line 137) | func executeRequestModifiers(ctx context.Context, reqModifiers []func(in... function executeResponseModifiers (line 164) | func executeResponseModifiers(ctx context.Context, respModifiers []func(... type RequestWrapper (line 200) | type RequestWrapper interface type ResponseWrapper (line 211) | type ResponseWrapper interface function newRequestWrapper (line 219) | func newRequestWrapper(ctx context.Context, r *Request) *requestWrapper { type requestWrapper (line 232) | type requestWrapper struct method Context (line 243) | func (r *requestWrapper) Context() context.Context { return r.ctx } method Method (line 244) | func (r *requestWrapper) Method() string { return r.meth... method URL (line 245) | func (r *requestWrapper) URL() *url.URL { return r.url } method Query (line 246) | func (r *requestWrapper) Query() url.Values { return r.query } method Path (line 247) | func (r *requestWrapper) Path() string { return r.path } method Body (line 248) | func (r *requestWrapper) Body() io.ReadCloser { return r.body } method Params (line 249) | func (r *requestWrapper) Params() map[string]string { return r.para... method Headers (line 250) | func (r *requestWrapper) Headers() map[string][]string { return r.head... type metadataWrapper (line 252) | type metadataWrapper struct method Headers (line 257) | func (m metadataWrapper) Headers() map[string][]string { return m.head... method StatusCode (line 258) | func (m metadataWrapper) StatusCode() int { return m.stat... type responseWrapper (line 260) | type responseWrapper struct method Context (line 269) | func (r responseWrapper) Context() context.Context { return r.ctx } method Request (line 270) | func (r responseWrapper) Request() interface{} { return r.requ... method Data (line 271) | func (r responseWrapper) Data() map[string]interface{} { return r.data } method IsComplete (line 272) | func (r responseWrapper) IsComplete() bool { return r.isCo... method Io (line 273) | func (r responseWrapper) Io() io.Reader { return r.io } method Headers (line 274) | func (r responseWrapper) Headers() map[string][]string { return r.meta... method StatusCode (line 275) | func (r responseWrapper) StatusCode() int { return r.meta... FILE: proxy/plugin/modifier.go constant Namespace (line 21) | Namespace = "github.com/devopsfaith/krakend/proxy/plugin" constant requestNamespace (line 23) | requestNamespace = "github.com/devopsfaith/krakend/proxy/plugin/request" constant responseNamespace (line 25) | responseNamespace = "github.com/devopsfaith/krakend/proxy/plugin/response" type ModifierFactory (line 31) | type ModifierFactory function GetRequestModifier (line 34) | func GetRequestModifier(name string) (ModifierFactory, bool) { function GetResponseModifier (line 39) | func GetResponseModifier(name string) (ModifierFactory, bool) { function getModifier (line 43) | func getModifier(namespace, name string) (ModifierFactory, bool) { function RegisterModifier (line 60) | func RegisterModifier( type Registerer (line 75) | type Registerer interface type LoggerRegisterer (line 84) | type LoggerRegisterer interface type ContextRegisterer (line 88) | type ContextRegisterer interface type RegisterModifierFunc (line 93) | type RegisterModifierFunc function Load (line 101) | func Load(path, pattern string, rmf RegisterModifierFunc) (int, error) { function LoadWithLogger (line 106) | func LoadWithLogger(path, pattern string, rmf RegisterModifierFunc, logg... function LoadWithLoggerAndContext (line 110) | func LoadWithLoggerAndContext(ctx context.Context, path, pattern string,... function load (line 118) | func load(ctx context.Context, plugins []string, rmf RegisterModifierFun... function open (line 136) | func open(ctx context.Context, pluginName string, rmf RegisterModifierFu... type Plugin (line 181) | type Plugin interface function defaultPluginOpener (line 188) | func defaultPluginOpener(name string) (Plugin, error) { type loaderError (line 192) | type loaderError struct method Error (line 197) | func (l loaderError) Error() string { method Len (line 205) | func (l loaderError) Len() int { method Errs (line 209) | func (l loaderError) Errs() []error { FILE: proxy/plugin/modifier_test.go function ExampleLoadWithLoggerAndContext (line 20) | func ExampleLoadWithLoggerAndContext() { function TestLoad (line 118) | func TestLoad(t *testing.T) { type RequestWrapper (line 155) | type RequestWrapper interface type requestWrapper (line 165) | type requestWrapper struct method Context (line 176) | func (r requestWrapper) Context() context.Context { return r.ctx } method Method (line 177) | func (r requestWrapper) Method() string { return r.method } method URL (line 178) | func (r requestWrapper) URL() *url.URL { return r.url } method Query (line 179) | func (r requestWrapper) Query() url.Values { return r.query } method Path (line 180) | func (r requestWrapper) Path() string { return r.path } method Body (line 181) | func (r requestWrapper) Body() io.ReadCloser { return r.body } method Params (line 182) | func (r requestWrapper) Params() map[string]string { return r.params } method Headers (line 183) | func (r requestWrapper) Headers() map[string][]string { return r.heade... type metadataWrapper (line 185) | type metadataWrapper struct method Headers (line 190) | func (m metadataWrapper) Headers() map[string][]string { return m.head... method StatusCode (line 191) | func (m metadataWrapper) StatusCode() int { return m.stat... type responseWrapper (line 193) | type responseWrapper struct method Context (line 202) | func (r responseWrapper) Context() context.Context { return r.ctx } method Request (line 203) | func (r responseWrapper) Request() interface{} { return r.requ... method Data (line 204) | func (r responseWrapper) Data() map[string]interface{} { return r.data } method IsComplete (line 205) | func (r responseWrapper) IsComplete() bool { return r.isCo... method Io (line 206) | func (r responseWrapper) Io() io.Reader { return r.io } method Headers (line 207) | func (r responseWrapper) Headers() map[string][]string { return r.meta... method StatusCode (line 208) | func (r responseWrapper) StatusCode() int { return r.meta... FILE: proxy/plugin/tests/error/main.go function main (line 11) | func main() {} type registerer (line 17) | type registerer method RegisterModifiers (line 19) | func (r registerer) RegisterModifiers(f func( method RegisterLogger (line 29) | func (registerer) RegisterLogger(in interface{}) { method requestModifierFactory (line 38) | func (registerer) requestModifierFactory(_ map[string]interface{}) fun... method reqsponseModifierFactory (line 46) | func (registerer) reqsponseModifierFactory(_ map[string]interface{}) f... type customError (line 54) | type customError struct method StatusCode (line 59) | func (r customError) StatusCode() int { return r.statusCode } type Logger (line 72) | type Logger interface FILE: proxy/plugin/tests/logger/main.go function main (line 14) | func main() {} type registerer (line 21) | type registerer method RegisterModifiers (line 23) | func (r registerer) RegisterModifiers(f func( method RegisterLogger (line 33) | func (registerer) RegisterLogger(in interface{}) { method RegisterContext (line 42) | func (registerer) RegisterContext(c context.Context) { method requestModifierFactory (line 47) | func (registerer) requestModifierFactory(_ map[string]interface{}) fun... method reqsponseModifierFactory (line 91) | func (registerer) reqsponseModifierFactory(_ map[string]interface{}) f... function modifier (line 159) | func modifier(req RequestWrapper) requestWrapper { type ResponseWrapper (line 173) | type ResponseWrapper interface type RequestWrapper (line 182) | type RequestWrapper interface type requestWrapper (line 193) | type requestWrapper struct method Context (line 204) | func (r requestWrapper) Context() context.Context { return r.ctx } method Method (line 205) | func (r requestWrapper) Method() string { return r.method } method URL (line 206) | func (r requestWrapper) URL() *url.URL { return r.url } method Query (line 207) | func (r requestWrapper) Query() url.Values { return r.query } method Path (line 208) | func (r requestWrapper) Path() string { return r.path } method Body (line 209) | func (r requestWrapper) Body() io.ReadCloser { return r.body } method Params (line 210) | func (r requestWrapper) Params() map[string]string { return r.params } method Headers (line 211) | func (r requestWrapper) Headers() map[string][]string { return r.heade... type Logger (line 213) | type Logger interface FILE: proxy/plugin_test.go function TestNewPluginMiddleware_logger (line 19) | func TestNewPluginMiddleware_logger(t *testing.T) { function TestNewPluginMiddleware_error_request (line 76) | func TestNewPluginMiddleware_error_request(t *testing.T) { function TestNewPluginMiddleware_error_response (line 130) | func TestNewPluginMiddleware_error_response(t *testing.T) { function TestNewPluginMiddleware_PoisonedPlugin (line 196) | func TestNewPluginMiddleware_PoisonedPlugin(t *testing.T) { type statusCodeError (line 244) | type statusCodeError interface FILE: proxy/proxy.go constant Namespace (line 18) | Namespace = "github.com/devopsfaith/krakend/proxy" type Metadata (line 21) | type Metadata struct type Response (line 27) | type Response struct type readCloserWrapper (line 35) | type readCloserWrapper struct method Read (line 47) | func (w readCloserWrapper) Read(b []byte) (int, error) { method closeOnCancel (line 52) | func (w readCloserWrapper) closeOnCancel() { function NewReadCloserWrapper (line 41) | func NewReadCloserWrapper(ctx context.Context, in io.ReadCloser) io.Read... type Proxy (line 69) | type Proxy type BackendFactory (line 72) | type BackendFactory type Middleware (line 82) | type Middleware function EmptyMiddlewareWithLogger (line 85) | func EmptyMiddlewareWithLogger(logger logging.Logger, next ...Proxy) Pro... function EmptyMiddleware (line 93) | func EmptyMiddleware(next ...Proxy) Proxy { function emptyMiddlewareFallback (line 97) | func emptyMiddlewareFallback(logger logging.Logger) Middleware { function NoopProxy (line 104) | func NoopProxy(_ context.Context, _ *Request) (*Response, error) { retur... FILE: proxy/proxy_test.go function TestEmptyMiddleware_ok (line 16) | func TestEmptyMiddleware_ok(t *testing.T) { function explosiveProxy (line 27) | func explosiveProxy(t *testing.T) Proxy { function dummyProxy (line 34) | func dummyProxy(r *Response) Proxy { function delayedProxy (line 40) | func delayedProxy(_ *testing.T, timeout time.Duration, r *Response) Proxy { function newDummyReadCloser (line 51) | func newDummyReadCloser(content string) io.ReadCloser { type dummyReadCloser (line 55) | type dummyReadCloser struct method Read (line 59) | func (d dummyReadCloser) Read(p []byte) (int, error) { method Close (line 63) | func (dummyReadCloser) Close() error { function TestWrapper (line 67) | func TestWrapper(t *testing.T) { type dummyRC (line 105) | type dummyRC struct method Read (line 111) | func (d *dummyRC) Read(b []byte) (int, error) { method Close (line 121) | func (d *dummyRC) Close() error { method IsClosed (line 129) | func (d *dummyRC) IsClosed() bool { FILE: proxy/query_strings_filter.go function NewFilterQueryStringsMiddleware (line 15) | func NewFilterQueryStringsMiddleware(logger logging.Logger, remote *conf... FILE: proxy/query_strings_filter_test.go function TestNewFilterQueryStringsMiddleware (line 13) | func TestNewFilterQueryStringsMiddleware(t *testing.T) { function TestFilterQueryStringsBlockAll (line 100) | func TestFilterQueryStringsBlockAll(t *testing.T) { function TestFilterQueryStringsAllowAll (line 138) | func TestFilterQueryStringsAllowAll(t *testing.T) { FILE: proxy/register.go function NewRegister (line 9) | func NewRegister() *Register { type Register (line 15) | type Register struct type combinerRegister (line 19) | type combinerRegister struct method GetResponseCombiner (line 32) | func (r *combinerRegister) GetResponseCombiner(name string) (ResponseC... method SetResponseCombiner (line 43) | func (r *combinerRegister) SetResponseCombiner(name string, rc Respons... function newCombinerRegister (line 24) | func newCombinerRegister(data map[string]ResponseCombiner, fallback Resp... FILE: proxy/register_test.go function TestNewRegister_responseCombiner_ok (line 10) | func TestNewRegister_responseCombiner_ok(t *testing.T) { function TestNewRegister_responseCombiner_fallbackIfErrored (line 43) | func TestNewRegister_responseCombiner_fallbackIfErrored(t *testing.T) { function TestNewRegister_responseCombiner_fallbackIfUnknown (line 68) | func TestNewRegister_responseCombiner_fallbackIfUnknown(t *testing.T) { FILE: proxy/request.go type Request (line 12) | type Request struct method GeneratePath (line 23) | func (r *Request) GeneratePath(URLPattern string) { method Clone (line 45) | func (r *Request) Clone() Request { function CloneRequest (line 63) | func CloneRequest(r *Request) *Request { function CloneRequestHeaders (line 81) | func CloneRequestHeaders(headers map[string][]string) map[string][]string { function CloneRequestParams (line 92) | func CloneRequestParams(params map[string]string) map[string]string { FILE: proxy/request_benchmark_test.go function BenchmarkRequestGeneratePath (line 7) | func BenchmarkRequestGeneratePath(b *testing.B) { FILE: proxy/request_test.go function TestRequestGeneratePath (line 12) | func TestRequestGeneratePath(t *testing.T) { function TestRequest_Clone (line 35) | func TestRequest_Clone(t *testing.T) { function TestCloneRequest (line 90) | func TestCloneRequest(t *testing.T) { FILE: proxy/shadow.go constant shadowKey (line 14) | shadowKey = "shadow" constant shadowTimeoutKey (line 15) | shadowTimeoutKey = "shadow_timeout" type shadowFactory (line 18) | type shadowFactory struct method New (line 25) | func (s shadowFactory) New(cfg *config.EndpointConfig) (p Proxy, err e... function NewShadowFactory (line 60) | func NewShadowFactory(f Factory) Factory { function ShadowMiddlewareWithLogger (line 65) | func ShadowMiddlewareWithLogger(logger logging.Logger, next ...Proxy) Pr... function ShadowMiddleware (line 81) | func ShadowMiddleware(next ...Proxy) Proxy { function ShadowMiddlewareWithTimeoutAndLogger (line 86) | func ShadowMiddlewareWithTimeoutAndLogger(logger logging.Logger, timeout... function ShadowMiddlewareWithTimeout (line 102) | func ShadowMiddlewareWithTimeout(timeout time.Duration, next ...Proxy) P... function NewShadowProxy (line 108) | func NewShadowProxy(p1, p2 Proxy) Proxy { function NewShadowProxyWithTimeout (line 114) | func NewShadowProxyWithTimeout(timeout time.Duration, p1, p2 Proxy) Proxy { function isShadowBackend (line 126) | func isShadowBackend(c *config.Backend) (time.Duration, bool) { type contextWrapper (line 159) | type contextWrapper struct method Value (line 164) | func (c contextWrapper) Value(key interface{}) interface{} { function newContextWrapperWithTimeout (line 168) | func newContextWrapperWithTimeout(data context.Context, timeout time.Dur... FILE: proxy/shadow_test.go function newAssertionProxy (line 31) | func newAssertionProxy(counter *uint64) Proxy { function TestIsShadowBackend (line 38) | func TestIsShadowBackend(t *testing.T) { function TestShadowMiddleware (line 60) | func TestShadowMiddleware(t *testing.T) { function TestShadowFactory_noBackends (line 71) | func TestShadowFactory_noBackends(t *testing.T) { function TestNewShadowFactory (line 87) | func TestNewShadowFactory(t *testing.T) { function TestShadowMiddleware_erroredBackend (line 125) | func TestShadowMiddleware_erroredBackend(t *testing.T) { function TestShadowMiddleware_partialTimeout (line 156) | func TestShadowMiddleware_partialTimeout(t *testing.T) { FILE: proxy/stack_benchmark_test.go function BenchmarkProxyStack_single (line 17) | func BenchmarkProxyStack_single(b *testing.B) { function BenchmarkProxyStack_multi (line 81) | func BenchmarkProxyStack_multi(b *testing.B) { function BenchmarkProxyStack_multipost (line 152) | func BenchmarkProxyStack_multipost(b *testing.B) { function BenchmarkProxyStack_single_flatmap (line 233) | func BenchmarkProxyStack_single_flatmap(b *testing.B) { function BenchmarkProxyStack_multi_flatmap (line 309) | func BenchmarkProxyStack_multi_flatmap(b *testing.B) { FILE: proxy/stack_test.go function TestProxyStack_multi (line 24) | func TestProxyStack_multi(t *testing.T) { FILE: proxy/static.go function NewStaticMiddleware (line 15) | func NewStaticMiddleware(logger logging.Logger, endpointConfig *config.E... constant staticKey (line 59) | staticKey = "static" constant staticAlwaysStrategy (line 61) | staticAlwaysStrategy = "always" constant staticIfSuccessStrategy (line 62) | staticIfSuccessStrategy = "success" constant staticIfErroredStrategy (line 63) | staticIfErroredStrategy = "errored" constant staticIfCompleteStrategy (line 64) | staticIfCompleteStrategy = "complete" constant staticIfIncompleteStrategy (line 65) | staticIfIncompleteStrategy = "incomplete" type staticConfig (line 68) | type staticConfig struct function getStaticMiddlewareCfg (line 74) | func getStaticMiddlewareCfg(extra config.ExtraConfig) (staticConfig, boo... function staticAlwaysMatch (line 120) | func staticAlwaysMatch(_ *Response, _ error) bool { return true } function staticIfSuccessMatch (line 121) | func staticIfSuccessMatch(_ *Response, err error) bool { return err == n... function staticIfErroredMatch (line 122) | func staticIfErroredMatch(_ *Response, err error) bool { return err != n... function staticIfCompleteMatch (line 123) | func staticIfCompleteMatch(r *Response, err error) bool { function staticIfIncompleteMatch (line 126) | func staticIfIncompleteMatch(r *Response, _ error) bool { return r == ni... FILE: proxy/static_test.go function TestNewStaticMiddleware_ok (line 15) | func TestNewStaticMiddleware_ok(t *testing.T) { type staticMatcherTestCase (line 78) | type staticMatcherTestCase struct function TestNewStaticMiddleware (line 85) | func TestNewStaticMiddleware(t *testing.T) { function Test_staticAlwaysMatch (line 117) | func Test_staticAlwaysMatch(t *testing.T) { function Test_staticIfSuccessMatch (line 161) | func Test_staticIfSuccessMatch(t *testing.T) { function Test_staticIfErroredMatch (line 200) | func Test_staticIfErroredMatch(t *testing.T) { function Test_staticIfCompleteMatch (line 238) | func Test_staticIfCompleteMatch(t *testing.T) { function Test_staticIfIncompleteMatch (line 279) | func Test_staticIfIncompleteMatch(t *testing.T) { function testStaticMatcher (line 323) | func testStaticMatcher(t *testing.T, marcher func(*Response, error) bool... function Test_getStaticMiddlewareCfg_ko (line 335) | func Test_getStaticMiddlewareCfg_ko(t *testing.T) { function Test_getStaticMiddlewareCfg_strategy (line 349) | func Test_getStaticMiddlewareCfg_strategy(t *testing.T) { FILE: register/register.go function New (line 11) | func New() *Namespaced { type Namespaced (line 17) | type Namespaced struct method Get (line 22) | func (n *Namespaced) Get(namespace string) (*Untyped, bool) { method Register (line 32) | func (n *Namespaced) Register(namespace, name string, v interface{}) { method AddNamespace (line 45) | func (n *Namespaced) AddNamespace(namespace string) { function NewUntyped (line 53) | func NewUntyped() *Untyped { type Untyped (line 61) | type Untyped struct method Register (line 67) | func (u *Untyped) Register(name string, v interface{}) { method Get (line 74) | func (u *Untyped) Get(name string) (interface{}, bool) { method Clone (line 82) | func (u *Untyped) Clone() map[string]interface{} { FILE: register/register_test.go function TestNamespaced (line 7) | func TestNamespaced(t *testing.T) { FILE: router/chi/endpoint.go type HandlerFactory (line 17) | type HandlerFactory function NewEndpointHandler (line 20) | func NewEndpointHandler(cfg *config.EndpointConfig, prxy proxy.Proxy) ht... function extractParamsFromEndpoint (line 27) | func extractParamsFromEndpoint(r *http.Request) map[string]string { FILE: router/chi/endpoint_benchmark_test.go function BenchmarkEndpointHandler_ko (line 20) | func BenchmarkEndpointHandler_ko(b *testing.B) { function BenchmarkEndpointHandler_ok (line 43) | func BenchmarkEndpointHandler_ok(b *testing.B) { function BenchmarkEndpointHandler_ko_Parallel (line 72) | func BenchmarkEndpointHandler_ko_Parallel(b *testing.B) { function BenchmarkEndpointHandler_ok_Parallel (line 97) | func BenchmarkEndpointHandler_ok_Parallel(b *testing.B) { FILE: router/chi/endpoint_test.go function TestEndpointHandler_ok (line 23) | func TestEndpointHandler_ok(t *testing.T) { function TestEndpointHandler_okAllParams (line 51) | func TestEndpointHandler_okAllParams(t *testing.T) { function TestEndpointHandler_incomplete (line 78) | func TestEndpointHandler_incomplete(t *testing.T) { function TestEndpointHandler_errored (line 98) | func TestEndpointHandler_errored(t *testing.T) { function TestEndpointHandler_errored_responseError (line 115) | func TestEndpointHandler_errored_responseError(t *testing.T) { type dummyResponseError (line 132) | type dummyResponseError struct method Error (line 137) | func (d dummyResponseError) Error() string { method StatusCode (line 141) | func (d dummyResponseError) StatusCode() int { function TestEndpointHandler_incompleteAndErrored (line 145) | func TestEndpointHandler_incompleteAndErrored(t *testing.T) { function TestEndpointHandler_cancelEmpty (line 165) | func TestEndpointHandler_cancelEmpty(t *testing.T) { function TestEndpointHandler_cancel (line 183) | func TestEndpointHandler_cancel(t *testing.T) { function TestEndpointHandler_noop (line 204) | func TestEndpointHandler_noop(t *testing.T) { type endpointHandlerTestCase (line 218) | type endpointHandlerTestCase struct method test (line 232) | func (tc endpointHandlerTestCase) test(t *testing.T) { function startChiServer (line 290) | func startChiServer(handlerFunc http.HandlerFunc) *chi.Mux { FILE: router/chi/router.go constant ChiDefaultDebugPattern (line 24) | ChiDefaultDebugPattern = "/__debug/" constant logPrefix (line 26) | logPrefix = "[SERVICE: Chi]" type RunServerFunc (line 29) | type RunServerFunc type Config (line 32) | type Config struct function DefaultFactory (line 44) | func DefaultFactory(proxyFactory proxy.Factory, logger logging.Logger) r... function NewFactory (line 59) | func NewFactory(cfg Config) router.Factory { type factory (line 66) | type factory struct method New (line 71) | func (rf factory) New() router.Router { method NewWithContext (line 76) | func (rf factory) NewWithContext(ctx context.Context) router.Router { type chiRouter (line 80) | type chiRouter struct method Run (line 87) | func (r chiRouter) Run(cfg config.ServiceConfig) { method registerDebugEndpoints (line 111) | func (r chiRouter) registerDebugEndpoints() { method registerKrakendEndpoints (line 120) | func (r chiRouter) registerKrakendEndpoints(endpoints []*config.Endpoi... method registerKrakendEndpoint (line 132) | func (r chiRouter) registerKrakendEndpoint(method string, endpoint *co... FILE: router/chi/router_test.go function TestDefaultFactory_ok (line 27) | func TestDefaultFactory_ok(t *testing.T) { function TestDefaultFactory_ko (line 139) | func TestDefaultFactory_ko(t *testing.T) { function TestDefaultFactory_proxyFactoryCrash (line 204) | func TestDefaultFactory_proxyFactoryCrash(t *testing.T) { function TestRunServer_ko (line 246) | func TestRunServer_ko(t *testing.T) { function checkResponseIs404 (line 280) | func checkResponseIs404(t *testing.T, req *http.Request) { type noopProxyFactory (line 315) | type noopProxyFactory method New (line 317) | func (n noopProxyFactory) New(_ *config.EndpointConfig) (proxy.Proxy, ... type erroredProxyFactory (line 326) | type erroredProxyFactory struct method New (line 330) | func (e erroredProxyFactory) New(_ *config.EndpointConfig) (proxy.Prox... FILE: router/gin/debug.go function DebugHandler (line 14) | func DebugHandler(logger logging.Logger) gin.HandlerFunc { FILE: router/gin/debug_test.go function TestDebugHandler (line 17) | func TestDebugHandler(t *testing.T) { FILE: router/gin/echo.go type echoResponse (line 12) | type echoResponse struct function EchoHandler (line 22) | func EchoHandler() gin.HandlerFunc { FILE: router/gin/echo_test.go function TestEchoHandler (line 15) | func TestEchoHandler(t *testing.T) { function echoRunTestRequest (line 53) | func echoRunTestRequest(t *testing.T, e *gin.Engine, body io.Reader, exp... FILE: router/gin/endpoint.go constant requestParamsAsterisk (line 19) | requestParamsAsterisk string = "*" type HandlerFactory (line 22) | type HandlerFactory function CustomErrorEndpointHandler (line 37) | func CustomErrorEndpointHandler(logger logging.Logger, errF server.ToHTT... function NewRequest (line 123) | func NewRequest(headersToSend []string) func(*gin.Context, []string) *pr... type encodedResponseError (line 183) | type encodedResponseError interface type responseError (line 188) | type responseError interface type headerResponseError (line 193) | type headerResponseError interface type multiError (line 198) | type multiError interface FILE: router/gin/endpoint_benchmark_test.go function BenchmarkEndpointHandler_ko (line 20) | func BenchmarkEndpointHandler_ko(b *testing.B) { function BenchmarkEndpointHandler_ok (line 44) | func BenchmarkEndpointHandler_ok(b *testing.B) { function BenchmarkEndpointHandler_ko_Parallel (line 74) | func BenchmarkEndpointHandler_ko_Parallel(b *testing.B) { function BenchmarkEndpointHandler_ok_Parallel (line 100) | func BenchmarkEndpointHandler_ok_Parallel(b *testing.B) { FILE: router/gin/endpoint_test.go function TestEndpointHandler_ok (line 26) | func TestEndpointHandler_ok(t *testing.T) { function TestEndpointHandler_okAllParams (line 63) | func TestEndpointHandler_okAllParams(t *testing.T) { function TestEndpointHandler_incomplete (line 96) | func TestEndpointHandler_incomplete(t *testing.T) { function TestEndpointHandler_errored (line 116) | func TestEndpointHandler_errored(t *testing.T) { function TestEndpointHandler_errored_responseError (line 133) | func TestEndpointHandler_errored_responseError(t *testing.T) { function TestEndpointHandler_errored_withHeaders (line 166) | func TestEndpointHandler_errored_withHeaders(t *testing.T) { function TestEndpointHandler_errored_encodedResponseError (line 190) | func TestEndpointHandler_errored_encodedResponseError(t *testing.T) { type dummyResponseError (line 210) | type dummyResponseError struct method Error (line 215) | func (d dummyResponseError) Error() string { method StatusCode (line 219) | func (d dummyResponseError) StatusCode() int { type dummyEncodedResponseError (line 223) | type dummyEncodedResponseError struct method Encoding (line 228) | func (d dummyEncodedResponseError) Encoding() string { type dummyHeadersResponseError (line 232) | type dummyHeadersResponseError struct method Headers (line 237) | func (d dummyHeadersResponseError) Headers() map[string][]string { function TestEndpointHandler_incompleteAndErrored (line 241) | func TestEndpointHandler_incompleteAndErrored(t *testing.T) { function TestEndpointHandler_cancelEmpty (line 261) | func TestEndpointHandler_cancelEmpty(t *testing.T) { function TestEndpointHandler_cancel (line 279) | func TestEndpointHandler_cancel(t *testing.T) { function TestEndpointHandler_noop (line 300) | func TestEndpointHandler_noop(t *testing.T) { function TestCustomErrorEndpointHandler (line 314) | func TestCustomErrorEndpointHandler(t *testing.T) { type endpointHandlerTestCase (line 352) | type endpointHandlerTestCase struct method test (line 366) | func (tc endpointHandlerTestCase) test(t *testing.T) { function startGinServer (line 429) | func startGinServer(handlerFunc gin.HandlerFunc) *gin.Engine { function ctxMiddleware (line 437) | func ctxMiddleware(c *gin.Context) { FILE: router/gin/engine.go constant Namespace (line 24) | Namespace = "github_com/luraproject/lura/router/gin" type EngineOptions (line 26) | type EngineOptions struct function NewEngine (line 34) | func NewEngine(cfg config.ServiceConfig, opt EngineOptions) *gin.Engine { function healthEndpoint (line 119) | func healthEndpoint(health <-chan string) func(*gin.Context) { function paramChecker (line 139) | func paramChecker() gin.HandlerFunc { type engineConfiguration (line 159) | type engineConfiguration struct FILE: router/gin/engine_test.go function TestNewEngine_contextIsPropagated (line 14) | func TestNewEngine_contextIsPropagated(t *testing.T) { function TestNewEngine_paramsAreChecked (line 54) | func TestNewEngine_paramsAreChecked(t *testing.T) { FILE: router/gin/render.go type Render (line 18) | type Render constant NEGOTIATE (line 21) | NEGOTIATE = "negotiate" constant XML (line 22) | XML = "xml" constant YAML (line 23) | YAML = "yaml" function init (line 37) | func init() { function RegisterRender (line 44) | func RegisterRender(name string, r Render) { function getRender (line 50) | func getRender(cfg *config.EndpointConfig) Render { function getWithFallback (line 63) | func getWithFallback(key string, fallback Render) Render { function negotiatedRender (line 73) | func negotiatedRender(c *gin.Context, response *proxy.Response) { function stringRender (line 84) | func stringRender(c *gin.Context, response *proxy.Response) { function jsonRender (line 104) | func jsonRender(c *gin.Context, response *proxy.Response) { function jsonCollectionRender (line 113) | func jsonCollectionRender(c *gin.Context, response *proxy.Response) { function xmlRender (line 127) | func xmlRender(c *gin.Context, response *proxy.Response) { function yamlRender (line 141) | func yamlRender(c *gin.Context, response *proxy.Response) { function noopRender (line 150) | func noopRender(c *gin.Context, response *proxy.Response) { FILE: router/gin/render_test.go function TestRender_Negotiated_ok (line 22) | func TestRender_Negotiated_ok(t *testing.T) { function TestRender_Negotiated_noData (line 83) | func TestRender_Negotiated_noData(t *testing.T) { function TestRender_Negotiated_noResponse (line 137) | func TestRender_Negotiated_noResponse(t *testing.T) { function TestRender_unknown (line 189) | func TestRender_unknown(t *testing.T) { function TestRender_string (line 250) | func TestRender_string(t *testing.T) { function TestRender_string_noData (line 311) | func TestRender_string_noData(t *testing.T) { function TestRegisterRender (line 373) | func TestRegisterRender(t *testing.T) { function TestRender_noop (line 398) | func TestRender_noop(t *testing.T) { function TestRender_noop_nilBody (line 459) | func TestRender_noop_nilBody(t *testing.T) { function TestRender_noop_nilResponse (line 506) | func TestRender_noop_nilResponse(t *testing.T) { FILE: router/gin/router.go constant logPrefix (line 25) | logPrefix = "[SERVICE: Gin]" type RunServerFunc (line 28) | type RunServerFunc type Config (line 31) | type Config struct function DefaultFactory (line 42) | func DefaultFactory(proxyFactory proxy.Factory, logger logging.Logger) r... function NewFactory (line 56) | func NewFactory(cfg Config) router.Factory { type factory (line 60) | type factory struct method New (line 65) | func (rf factory) New() router.Router { method NewWithContext (line 70) | func (rf factory) NewWithContext(ctx context.Context) router.Router { type ginRouter (line 83) | type ginRouter struct method Run (line 97) | func (r ginRouter) Run(cfg config.ServiceConfig) { method registerEndpointsAndMiddlewares (line 113) | func (r ginRouter) registerEndpointsAndMiddlewares(cfg config.ServiceC... method registerKrakendEndpoints (line 135) | func (r ginRouter) registerKrakendEndpoints(rg *gin.RouterGroup, cfg c... method registerKrakendEndpoint (line 152) | func (r ginRouter) registerKrakendEndpoint(rg *gin.RouterGroup, method... method registerOptionEndpoints (line 189) | func (r ginRouter) registerOptionEndpoints(rg *gin.RouterGroup) { type urlCatalog (line 91) | type urlCatalog struct FILE: router/gin/router_test.go function TestDefaultFactory_ok (line 27) | func TestDefaultFactory_ok(t *testing.T) { function TestDefaultFactory_ko (line 148) | func TestDefaultFactory_ko(t *testing.T) { function TestDefaultFactory_proxyFactoryCrash (line 207) | func TestDefaultFactory_proxyFactoryCrash(t *testing.T) { function TestRunServer_ko (line 274) | func TestRunServer_ko(t *testing.T) { function checkResponseIs404 (line 307) | func checkResponseIs404(t *testing.T, req *http.Request) { type noopProxyFactory (line 338) | type noopProxyFactory method New (line 340) | func (n noopProxyFactory) New(_ *config.EndpointConfig) (proxy.Proxy, ... type erroredProxyFactory (line 349) | type erroredProxyFactory struct method New (line 353) | func (e erroredProxyFactory) New(_ *config.EndpointConfig) (proxy.Prox... FILE: router/gin/safecast.go type safeCast (line 27) | type safeCast struct method Header (line 31) | func (s *safeCast) Header() http.Header { method Write (line 35) | func (s *safeCast) Write(b []byte) (int, error) { method WriteHeader (line 39) | func (s *safeCast) WriteHeader(statusCode int) { method Flush (line 43) | func (s *safeCast) Flush() { method Hijack (line 49) | func (s *safeCast) Hijack() (net.Conn, *bufio.ReadWriter, error) { method CloseNotify (line 56) | func (s *safeCast) CloseNotify() <-chan bool { type safeCaster (line 63) | type safeCaster struct method ServeHTTP (line 67) | func (s *safeCaster) ServeHTTP(w http.ResponseWriter, r *http.Request) { FILE: router/gorilla/router.go function DefaultFactory (line 23) | func DefaultFactory(pf proxy.Factory, logger logging.Logger) router.Fact... function DefaultConfig (line 28) | func DefaultConfig(pf proxy.Factory, logger logging.Logger) mux.Config { function gorillaParamsExtractor (line 41) | func gorillaParamsExtractor(r *http.Request) map[string]string { type gorillaEngine (line 50) | type gorillaEngine struct method Handle (line 55) | func (g gorillaEngine) Handle(pattern, method string, handler http.Han... method ServeHTTP (line 60) | func (g gorillaEngine) ServeHTTP(w http.ResponseWriter, r *http.Reques... FILE: router/gorilla/router_test.go function TestDefaultFactory_ok (line 23) | func TestDefaultFactory_ok(t *testing.T) { function TestDefaultFactory_ko (line 127) | func TestDefaultFactory_ko(t *testing.T) { function TestDefaultFactory_proxyFactoryCrash (line 185) | func TestDefaultFactory_proxyFactoryCrash(t *testing.T) { function checkResponseIs404 (line 228) | func checkResponseIs404(t *testing.T, req *http.Request) { type noopProxyFactory (line 262) | type noopProxyFactory method New (line 264) | func (n noopProxyFactory) New(_ *config.EndpointConfig) (proxy.Proxy, ... type erroredProxyFactory (line 273) | type erroredProxyFactory struct method New (line 277) | func (e erroredProxyFactory) New(_ *config.EndpointConfig) (proxy.Prox... type identityMiddleware (line 281) | type identityMiddleware struct method Handler (line 283) | func (identityMiddleware) Handler(h http.Handler) http.Handler { FILE: router/helper.go function IsValidSequentialEndpoint (line 9) | func IsValidSequentialEndpoint(_ *config.EndpointConfig) bool { FILE: router/httptreemux/router.go function DefaultFactory (line 22) | func DefaultFactory(pf proxy.Factory, logger logging.Logger) router.Fact... function DefaultConfig (line 27) | func DefaultConfig(pf proxy.Factory, logger logging.Logger) mux.Config { function ParamsExtractor (line 39) | func ParamsExtractor(r *http.Request) map[string]string { function NewEngine (line 48) | func NewEngine(m *httptreemux.ContextMux) Engine { type Engine (line 52) | type Engine struct method Handle (line 57) | func (g Engine) Handle(pattern, method string, handler http.Handler) { method ServeHTTP (line 62) | func (g Engine) ServeHTTP(w http.ResponseWriter, r *http.Request) { FILE: router/httptreemux/router_test.go function TestDefaultFactory_ok (line 23) | func TestDefaultFactory_ok(t *testing.T) { function TestDefaultFactory_ko (line 127) | func TestDefaultFactory_ko(t *testing.T) { function TestDefaultFactory_proxyFactoryCrash (line 185) | func TestDefaultFactory_proxyFactoryCrash(t *testing.T) { function checkResponseIs404 (line 227) | func checkResponseIs404(t *testing.T, req *http.Request) { type noopProxyFactory (line 261) | type noopProxyFactory method New (line 263) | func (n noopProxyFactory) New(_ *config.EndpointConfig) (proxy.Proxy, ... type erroredProxyFactory (line 272) | type erroredProxyFactory struct method New (line 276) | func (e erroredProxyFactory) New(_ *config.EndpointConfig) (proxy.Prox... type identityMiddleware (line 280) | type identityMiddleware struct method Handler (line 282) | func (identityMiddleware) Handler(h http.Handler) http.Handler { FILE: router/mux/debug.go function DebugHandler (line 14) | func DebugHandler(logger logging.Logger) http.HandlerFunc { FILE: router/mux/debug_test.go function TestDebugHandler (line 15) | func TestDebugHandler(t *testing.T) { FILE: router/mux/echo.go type echoResponse (line 11) | type echoResponse struct function EchoHandler (line 21) | func EchoHandler() http.HandlerFunc { FILE: router/mux/echo_test.go function TestEchoHandlerNew (line 13) | func TestEchoHandlerNew(t *testing.T) { function echoRunTestRequest (line 48) | func echoRunTestRequest(t *testing.T, e http.HandlerFunc, body io.Reader... FILE: router/mux/endpoint.go constant requestParamsAsterisk (line 19) | requestParamsAsterisk string = "*" type HandlerFactory (line 22) | type HandlerFactory function CustomEndpointHandler (line 29) | func CustomEndpointHandler(rb RequestBuilder) HandlerFactory { function CustomEndpointHandlerWithHTTPError (line 34) | func CustomEndpointHandlerWithHTTPError(rb RequestBuilder, errF server.T... type RequestBuilder (line 101) | type RequestBuilder type ParamExtractor (line 104) | type ParamExtractor function NoopParamExtractor (line 107) | func NoopParamExtractor(_ *http.Request) map[string]string { return map[... function NewRequestBuilder (line 115) | func NewRequestBuilder(paramExtractor ParamExtractor) RequestBuilder { type responseError (line 167) | type responseError interface function clientIP (line 175) | func clientIP(r *http.Request) string { FILE: router/mux/endpoint_benchmark_test.go function BenchmarkEndpointHandler_ko (line 19) | func BenchmarkEndpointHandler_ko(b *testing.B) { function BenchmarkEndpointHandler_ok (line 42) | func BenchmarkEndpointHandler_ok(b *testing.B) { function BenchmarkEndpointHandler_ko_Parallel (line 71) | func BenchmarkEndpointHandler_ko_Parallel(b *testing.B) { function BenchmarkEndpointHandler_ok_Parallel (line 96) | func BenchmarkEndpointHandler_ok_Parallel(b *testing.B) { FILE: router/mux/endpoint_test.go function TestEndpointHandler_ok (line 22) | func TestEndpointHandler_ok(t *testing.T) { function TestEndpointHandler_okAllParams (line 46) | func TestEndpointHandler_okAllParams(t *testing.T) { function TestEndpointHandler_incomplete (line 73) | func TestEndpointHandler_incomplete(t *testing.T) { function TestEndpointHandler_ko (line 93) | func TestEndpointHandler_ko(t *testing.T) { function TestEndpointHandler_incompleteAndErrored (line 110) | func TestEndpointHandler_incompleteAndErrored(t *testing.T) { function TestEndpointHandler_cancel (line 130) | func TestEndpointHandler_cancel(t *testing.T) { function TestEndpointHandler_cancelEmpty (line 151) | func TestEndpointHandler_cancelEmpty(t *testing.T) { function TestEndpointHandler_noop (line 169) | func TestEndpointHandler_noop(t *testing.T) { function TestEndpointHandler_badMethod (line 183) | func TestEndpointHandler_badMethod(t *testing.T) { function TestEndpointHandler_errored_responseError (line 197) | func TestEndpointHandler_errored_responseError(t *testing.T) { type dummyResponseError (line 214) | type dummyResponseError struct method Error (line 219) | func (d dummyResponseError) Error() string { method StatusCode (line 223) | func (d dummyResponseError) StatusCode() int { type endpointHandlerTestCase (line 227) | type endpointHandlerTestCase struct method test (line 241) | func (tc endpointHandlerTestCase) test(t *testing.T) { function startMuxServer (line 299) | func startMuxServer(handlerFunc http.HandlerFunc) *http.ServeMux { FILE: router/mux/engine.go type Engine (line 13) | type Engine interface type BasicEngine (line 19) | type BasicEngine struct method Handle (line 55) | func (e *BasicEngine) Handle(pattern, method string, handler http.Hand... method ServeHTTP (line 65) | func (e *BasicEngine) ServeHTTP(w http.ResponseWriter, r *http.Request) { method registrableHandler (line 69) | func (e *BasicEngine) registrableHandler(pattern string) http.Handler { function NewHTTPErrorInterceptor (line 25) | func NewHTTPErrorInterceptor(w http.ResponseWriter) *HTTPErrorInterceptor { type HTTPErrorInterceptor (line 31) | type HTTPErrorInterceptor struct method WriteHeader (line 37) | func (i *HTTPErrorInterceptor) WriteHeader(code int) { function DefaultEngine (line 47) | func DefaultEngine() *BasicEngine { FILE: router/mux/engine_test.go function TestEngine (line 13) | func TestEngine(t *testing.T) { FILE: router/mux/render.go type Render (line 18) | type Render constant NEGOTIATE (line 21) | NEGOTIATE = "negotiate" function RegisterRender (line 34) | func RegisterRender(name string, r Render) { function getRender (line 40) | func getRender(cfg *config.EndpointConfig) Render { function getWithFallback (line 53) | func getWithFallback(key string, fallback Render) Render { function jsonRender (line 68) | func jsonRender(w http.ResponseWriter, response *proxy.Response) { function jsonCollectionRender (line 83) | func jsonCollectionRender(w http.ResponseWriter, response *proxy.Respons... function stringRender (line 103) | func stringRender(w http.ResponseWriter, response *proxy.Response) { function noopRender (line 122) | func noopRender(w http.ResponseWriter, response *proxy.Response) { FILE: router/mux/render_test.go function TestRender_unknown (line 20) | func TestRender_unknown(t *testing.T) { function TestRender_string (line 81) | func TestRender_string(t *testing.T) { function TestRender_string_noData (line 142) | func TestRender_string_noData(t *testing.T) { function TestRegisterRender (line 204) | func TestRegisterRender(t *testing.T) { function TestRender_noop (line 229) | func TestRender_noop(t *testing.T) { function TestRender_noop_nilBody (line 290) | func TestRender_noop_nilBody(t *testing.T) { function TestRender_noop_nilResponse (line 337) | func TestRender_noop_nilResponse(t *testing.T) { FILE: router/mux/router.go constant DefaultDebugPattern (line 22) | DefaultDebugPattern = "/__debug/" constant DefaultEchoPattern (line 23) | DefaultEchoPattern = "/__echo/" constant logPrefix (line 24) | logPrefix = "[SERVICE: Mux]" type RunServerFunc (line 28) | type RunServerFunc type Config (line 31) | type Config struct type HandlerMiddleware (line 43) | type HandlerMiddleware interface function DefaultFactory (line 48) | func DefaultFactory(pf proxy.Factory, logger logging.Logger) router.Fact... function NewFactory (line 64) | func NewFactory(cfg Config) router.Factory { type factory (line 71) | type factory struct method New (line 76) | func (rf factory) New() router.Router { method NewWithContext (line 81) | func (rf factory) NewWithContext(ctx context.Context) router.Router { type httpRouter (line 85) | type httpRouter struct method Run (line 98) | func (r httpRouter) Run(cfg config.ServiceConfig) { method registerKrakendEndpoints (line 146) | func (r httpRouter) registerKrakendEndpoints(endpoints []*config.Endpo... method registerKrakendEndpoint (line 158) | func (r httpRouter) registerKrakendEndpoint(method string, endpoint *c... method handler (line 182) | func (r httpRouter) handler() http.Handler { function HealthHandler (line 92) | func HealthHandler(w http.ResponseWriter, _ *http.Request) { FILE: router/mux/router_test.go function TestDefaultFactory_ok (line 26) | func TestDefaultFactory_ok(t *testing.T) { function TestDefaultFactory_ko (line 138) | func TestDefaultFactory_ko(t *testing.T) { function TestDefaultFactory_proxyFactoryCrash (line 195) | func TestDefaultFactory_proxyFactoryCrash(t *testing.T) { function TestRunServer_ko (line 237) | func TestRunServer_ko(t *testing.T) { function checkResponseIs404 (line 271) | func checkResponseIs404(t *testing.T, req *http.Request) { type noopProxyFactory (line 305) | type noopProxyFactory method New (line 307) | func (n noopProxyFactory) New(_ *config.EndpointConfig) (proxy.Proxy, ... type erroredProxyFactory (line 316) | type erroredProxyFactory struct method New (line 320) | func (e erroredProxyFactory) New(_ *config.EndpointConfig) (proxy.Prox... type identityMiddleware (line 324) | type identityMiddleware struct method Handler (line 326) | func (identityMiddleware) Handler(h http.Handler) http.Handler { FILE: router/negroni/router.go function DefaultFactory (line 22) | func DefaultFactory(pf proxy.Factory, logger logging.Logger, middlewares... function DefaultConfig (line 27) | func DefaultConfig(pf proxy.Factory, logger logging.Logger, middlewares ... function DefaultConfigWithRouter (line 33) | func DefaultConfigWithRouter(pf proxy.Factory, logger logging.Logger, mu... function NewGorillaRouter (line 40) | func NewGorillaRouter() *gorilla.Router { function newNegroniEngine (line 44) | func newNegroniEngine(muxEngine *gorilla.Router, middlewares ...negroni.... type negroniEngine (line 55) | type negroniEngine struct method Handle (line 61) | func (e negroniEngine) Handle(pattern, method string, handler http.Han... method ServeHTTP (line 66) | func (e negroniEngine) ServeHTTP(w http.ResponseWriter, r *http.Reques... FILE: router/negroni/router_test.go function TestDefaultFactory_ok (line 25) | func TestDefaultFactory_ok(t *testing.T) { function TestDefaultFactory_middlewares (line 126) | func TestDefaultFactory_middlewares(t *testing.T) { function TestDefaultFactory_ko (line 205) | func TestDefaultFactory_ko(t *testing.T) { function TestDefaultFactory_proxyFactoryCrash (line 263) | func TestDefaultFactory_proxyFactoryCrash(t *testing.T) { type dummyMiddleware (line 305) | type dummyMiddleware struct method ServeHTTP (line 309) | func (d dummyMiddleware) ServeHTTP(rw http.ResponseWriter, r *http.Req... function checkResponseIs404 (line 314) | func checkResponseIs404(t *testing.T, req *http.Request) { type noopProxyFactory (line 348) | type noopProxyFactory method New (line 350) | func (n noopProxyFactory) New(_ *config.EndpointConfig) (proxy.Proxy, ... type erroredProxyFactory (line 359) | type erroredProxyFactory struct method New (line 363) | func (e erroredProxyFactory) New(_ *config.EndpointConfig) (proxy.Prox... type identityMiddleware (line 367) | type identityMiddleware struct method Handler (line 369) | func (identityMiddleware) Handler(h http.Handler) http.Handler { FILE: router/router.go type Router (line 15) | type Router interface type RouterFunc (line 21) | type RouterFunc method Run (line 24) | func (f RouterFunc) Run(cfg config.ServiceConfig) { f(cfg) } type Factory (line 27) | type Factory interface FILE: sd/dnssrv/subscriber.go constant Namespace (line 20) | Namespace = "dns" constant DefaultTTL (line 21) | DefaultTTL = 30 * time.Second constant MinTTL (line 22) | MinTTL = time.Second function Register (line 25) | func Register() error { function SetTTL (line 32) | func SetTTL(d time.Duration) { function SubscriberFactory (line 45) | func SubscriberFactory(cfg *config.Backend) sd.Subscriber { function New (line 50) | func New(name string) sd.Subscriber { function NewDetailed (line 55) | func NewDetailed(name string, lookup lookup, ttl time.Duration) sd.Subsc... function NewDetailedWithScheme (line 61) | func NewDetailedWithScheme(name string, lookup lookup, ttl time.Duration... type lookup (line 86) | type lookup type subscriber (line 88) | type subscriber struct method Hosts (line 98) | func (s subscriber) Hosts() ([]string, error) { method update (line 112) | func (s subscriber) update() { method resolve (line 128) | func (s subscriber) resolve() ([]string, error) { function compact (line 170) | func compact(ws []uint16) []uint16 { function normalize (line 185) | func normalize(ws []uint16) []uint16 { function gcd (line 206) | func gcd(ws []uint16) uint16 { FILE: sd/dnssrv/subscriber_test.go function ExampleRegister (line 16) | func ExampleRegister() { function ExampleNewDetailed (line 75) | func ExampleNewDetailed() { function ExampleNewDetailedWithScheme (line 130) | func ExampleNewDetailedWithScheme() { function TestSubscriber_LoockupError (line 185) | func TestSubscriber_LoockupError(t *testing.T) { function TestSubscriber_ResolveVeryLarge (line 201) | func TestSubscriber_ResolveVeryLarge(t *testing.T) { function Examplecompact_basicweights (line 221) | func Examplecompact_basicweights() { function Examplecompact_custom_weights (line 240) | func Examplecompact_custom_weights() { FILE: sd/loadbalancing.go type Balancer (line 14) | type Balancer interface function NewBalancer (line 24) | func NewBalancer(subscriber Subscriber) Balancer { function NewRoundRobinLB (line 33) | func NewRoundRobinLB(subscriber Subscriber) Balancer { type roundRobinLB (line 49) | type roundRobinLB struct method Host (line 55) | func (r *roundRobinLB) Host() (string, error) { function NewRandomLB (line 65) | func NewRandomLB(subscriber Subscriber) Balancer { type randomLB (line 75) | type randomLB struct method Host (line 81) | func (r *randomLB) Host() (string, error) { type balancer (line 89) | type balancer struct method hosts (line 93) | func (b *balancer) hosts() ([]string, error) { type nopBalancer (line 104) | type nopBalancer method Host (line 106) | func (b nopBalancer) Host() (string, error) { return string(b), nil } FILE: sd/loadbalancing_benchmark_test.go function BenchmarkLB (line 16) | func BenchmarkLB(b *testing.B) { function BenchmarkLB_parallel (line 36) | func BenchmarkLB_parallel(b *testing.B) { FILE: sd/loadbalancing_test.go function ExampleNewRoundRobinLB (line 14) | func ExampleNewRoundRobinLB() { function TestRoundRobinLB (line 37) | func TestRoundRobinLB(t *testing.T) { function TestRoundRobinLB_noEndpoints (line 79) | func TestRoundRobinLB_noEndpoints(t *testing.T) { function ExampleNewRandomLB (line 88) | func ExampleNewRandomLB() { function TestRandomLB (line 120) | func TestRandomLB(t *testing.T) { function TestRandomLB_single (line 153) | func TestRandomLB_single(t *testing.T) { function TestRandomLB_noEndpoints (line 170) | func TestRandomLB_noEndpoints(t *testing.T) { type erroredSubscriber (line 179) | type erroredSubscriber method Hosts (line 181) | func (s erroredSubscriber) Hosts() ([]string, error) { return []string... function TestRoundRobinLB_erroredSubscriber (line 183) | func TestRoundRobinLB_erroredSubscriber(t *testing.T) { function TestRandomLB_erroredSubscriber (line 192) | func TestRandomLB_erroredSubscriber(t *testing.T) { FILE: sd/register.go function GetRegister (line 10) | func GetRegister() *Register { type untypedRegister (line 14) | type untypedRegister interface type Register (line 21) | type Register struct method Register (line 31) | func (r *Register) Register(name string, sf SubscriberFactory) error { method Get (line 38) | func (r *Register) Get(name string) SubscriberFactory { function initRegister (line 25) | func initRegister() *Register { FILE: sd/register_test.go function TestGetRegister_Register_ok (line 11) | func TestGetRegister_Register_ok(t *testing.T) { function TestGetRegister_Get_unknown (line 40) | func TestGetRegister_Get_unknown(t *testing.T) { function TestGetRegister_Get_errored (line 46) | func TestGetRegister_Get_errored(t *testing.T) { FILE: sd/subscriber.go type Subscriber (line 15) | type Subscriber interface type SubscriberFunc (line 21) | type SubscriberFunc method Hosts (line 24) | func (f SubscriberFunc) Hosts() ([]string, error) { return f() } type FixedSubscriber (line 27) | type FixedSubscriber method Hosts (line 30) | func (s FixedSubscriber) Hosts() ([]string, error) { return s, nil } type SubscriberFactory (line 33) | type SubscriberFactory function FixedSubscriberFactory (line 36) | func FixedSubscriberFactory(cfg *config.Backend) Subscriber { function NewRandomFixedSubscriber (line 41) | func NewRandomFixedSubscriber(hosts []string) FixedSubscriber { FILE: test/integration_test.go function init (line 40) | func init() { function TestKrakenD_ginRouter (line 63) | func TestKrakenD_ginRouter(t *testing.T) { function TestKrakenD_gorillaRouter (line 99) | func TestKrakenD_gorillaRouter(t *testing.T) { function TestKrakenD_negroniRouter (line 110) | func TestKrakenD_negroniRouter(t *testing.T) { function TestKrakenD_httptreemuxRouter (line 122) | func TestKrakenD_httptreemuxRouter(t *testing.T) { function TestKrakenD_chiRouter (line 131) | func TestKrakenD_chiRouter(t *testing.T) { function testKrakenD (line 142) | func testKrakenD(t *testing.T, runRouter func(logging.Logger, *config.Se... function setupBackend (line 460) | func setupBackend(t *testing.T) (*config.ServiceConfig, error) { function loadConfig (line 591) | func loadConfig(data map[string]interface{}) (*config.ServiceConfig, err... FILE: transport/http/client/executor.go type HTTPRequestExecutor (line 14) | type HTTPRequestExecutor function DefaultHTTPRequestExecutor (line 17) | func DefaultHTTPRequestExecutor(clientFactory HTTPClientFactory) HTTPReq... type HTTPClientFactory (line 24) | type HTTPClientFactory function NewHTTPClient (line 27) | func NewHTTPClient(_ context.Context) *http.Client { return defaultHTTPC... FILE: transport/http/client/executor_test.go function TestDefaultHTTPRequestExecutor (line 15) | func TestDefaultHTTPRequestExecutor(t *testing.T) { FILE: transport/http/client/graphql/graphql.go constant Namespace (line 23) | Namespace = "github.com/devopsfaith/krakend/transport/http/client/graphql" type OperationType (line 26) | type OperationType type OperationMethod (line 29) | type OperationMethod constant OperationMutation (line 33) | OperationMutation OperationType = "mutation" constant OperationQuery (line 35) | OperationQuery OperationType = "query" constant MethodPost (line 37) | MethodPost OperationMethod = http.MethodPost constant MethodGet (line 38) | MethodGet OperationMethod = http.MethodGet type GraphQLRequest (line 42) | type GraphQLRequest struct type Options (line 49) | type Options struct function GetOptions (line 59) | func GetOptions(cfg config.ExtraConfig) (*Options, error) { function New (line 94) | func New(opt Options) *Extractor { type Extractor (line 152) | type Extractor struct method QueryFromBody (line 160) | func (e *Extractor) QueryFromBody(r io.Reader) (url.Values, error) { method BodyFromBody (line 181) | func (e *Extractor) BodyFromBody(r io.Reader) ([]byte, error) { method fromBody (line 189) | func (e *Extractor) fromBody(r io.Reader) (*GraphQLRequest, error) { method QueryFromParams (line 216) | func (e *Extractor) QueryFromParams(params map[string]string) (url.Val... method BodyFromParams (line 237) | func (e *Extractor) BodyFromParams(params map[string]string) ([]byte, ... FILE: transport/http/client/graphql/graphql_test.go function ExampleExtractor (line 13) | func ExampleExtractor() { function ExampleExtractor_fromFile (line 96) | func ExampleExtractor_fromFile() { function ExampleExtractor_noReplacement (line 182) | func ExampleExtractor_noReplacement() { FILE: transport/http/client/plugin/executor.go constant Namespace (line 16) | Namespace = "github.com/devopsfaith/krakend/transport/http/client/executor" function HTTPRequestExecutor (line 18) | func HTTPRequestExecutor( function HTTPRequestExecutorWithContext (line 25) | func HTTPRequestExecutorWithContext( FILE: transport/http/client/plugin/plugin.go function RegisterClient (line 19) | func RegisterClient( type Registerer (line 26) | type Registerer interface type LoggerRegisterer (line 33) | type LoggerRegisterer interface type RegisterClientFunc (line 37) | type RegisterClientFunc function Load (line 42) | func Load(path, pattern string, rcf RegisterClientFunc) (int, error) { function LoadWithLogger (line 46) | func LoadWithLogger(path, pattern string, rcf RegisterClientFunc, logger... function load (line 54) | func load(plugins []string, rcf RegisterClientFunc, logger logging.Logge... function open (line 72) | func open(pluginName string, rcf RegisterClientFunc, logger logging.Logg... type Plugin (line 113) | type Plugin interface function defaultPluginOpener (line 120) | func defaultPluginOpener(name string) (Plugin, error) { type loaderError (line 124) | type loaderError struct method Error (line 129) | func (l loaderError) Error() string { method Len (line 137) | func (l loaderError) Len() int { method Errs (line 141) | func (l loaderError) Errs() []error { FILE: transport/http/client/plugin/plugin_test.go function TestLoadWithLogger (line 21) | func TestLoadWithLogger(t *testing.T) { FILE: transport/http/client/plugin/tests/main.go type registerer (line 16) | type registerer method RegisterLogger (line 20) | func (registerer) RegisterLogger(v interface{}) { method RegisterClients (line 29) | func (r registerer) RegisterClients(f func( method registerClients (line 36) | func (r registerer) registerClients(_ context.Context, extra map[strin... function main (line 60) | func main() {} type Logger (line 62) | type Logger interface FILE: transport/http/client/status.go constant Namespace (line 17) | Namespace = "github.com/devopsfaith/krakend/http" type ErrInvalidStatus (line 23) | type ErrInvalidStatus struct method Error (line 29) | func (e *ErrInvalidStatus) Error() string { function NewErrInvalidStatusCode (line 33) | func NewErrInvalidStatusCode(resp *http.Response, errPrefix string) *Err... type HTTPStatusHandler (line 47) | type HTTPStatusHandler function GetHTTPStatusHandler (line 52) | func GetHTTPStatusHandler(remote *config.Backend) HTTPStatusHandler { function DefaultHTTPStatusHandler (line 69) | func DefaultHTTPStatusHandler(_ context.Context, resp *http.Response) (*... function DefaultHTTPStatusHandlerWithErrPrefix (line 79) | func DefaultHTTPStatusHandlerWithErrPrefix(errPrefix string) HTTPStatusH... function ErrorHTTPStatusHandler (line 89) | func ErrorHTTPStatusHandler(ctx context.Context, resp *http.Response) (*... function ErrorHTTPStatusHandlerWithErrPrefix (line 97) | func ErrorHTTPStatusHandlerWithErrPrefix(errPrefix string) HTTPStatusHan... function NoOpHTTPStatusHandler (line 108) | func NoOpHTTPStatusHandler(_ context.Context, resp *http.Response) (*htt... function DetailedHTTPStatusHandler (line 113) | func DetailedHTTPStatusHandler(name string) HTTPStatusHandler { function DetailedHTTPStatusHandlerWithErrPrefix (line 129) | func DetailedHTTPStatusHandlerWithErrPrefix(name, errPrefix string) HTTP... function newHTTPResponseError (line 143) | func newHTTPResponseError(resp *http.Response) HTTPResponseError { type HTTPResponseError (line 159) | type HTTPResponseError struct method Error (line 166) | func (r HTTPResponseError) Error() string { method StatusCode (line 171) | func (r HTTPResponseError) StatusCode() int { method Encoding (line 176) | func (r HTTPResponseError) Encoding() string { type NamedHTTPResponseError (line 181) | type NamedHTTPResponseError struct method Name (line 187) | func (r NamedHTTPResponseError) Name() string { FILE: transport/http/client/status_test.go function TestDetailedHTTPStatusHandler (line 17) | func TestDetailedHTTPStatusHandler(t *testing.T) { function TestDefaultHTTPStatusHandler (line 91) | func TestDefaultHTTPStatusHandler(t *testing.T) { FILE: transport/http/server/plugin/plugin.go function RegisterHandler (line 19) | func RegisterHandler( type Registerer (line 26) | type Registerer interface type LoggerRegisterer (line 33) | type LoggerRegisterer interface type RegisterHandlerFunc (line 37) | type RegisterHandlerFunc function Load (line 42) | func Load(path, pattern string, rcf RegisterHandlerFunc) (int, error) { function LoadWithLogger (line 46) | func LoadWithLogger(path, pattern string, rcf RegisterHandlerFunc, logge... function load (line 54) | func load(plugins []string, rcf RegisterHandlerFunc, logger logging.Logg... function open (line 72) | func open(pluginName string, rcf RegisterHandlerFunc, logger logging.Log... type Plugin (line 113) | type Plugin interface function defaultPluginOpener (line 120) | func defaultPluginOpener(name string) (Plugin, error) { type loaderError (line 124) | type loaderError struct method Error (line 129) | func (l loaderError) Error() string { method Len (line 137) | func (l loaderError) Len() int { method Errs (line 141) | func (l loaderError) Errs() []error { FILE: transport/http/server/plugin/plugin_test.go function TestLoadWithLogger (line 21) | func TestLoadWithLogger(t *testing.T) { FILE: transport/http/server/plugin/server.go constant Namespace (line 13) | Namespace = "github_com/devopsfaith/krakend/transport/http/server/handler" constant logPrefix (line 14) | logPrefix = "[PLUGIN: Server]" type RunServer (line 16) | type RunServer function New (line 18) | func New(logger logging.Logger, next RunServer) RunServer { FILE: transport/http/server/plugin/tests/main.go type registerer (line 15) | type registerer method RegisterLogger (line 19) | func (registerer) RegisterLogger(v interface{}) { method RegisterHandlers (line 28) | func (r registerer) RegisterHandlers(f func( method registerHandlers (line 35) | func (registerer) registerHandlers(_ context.Context, _ map[string]int... function main (line 64) | func main() {} type Logger (line 66) | type Logger interface FILE: transport/http/server/server.go type ToHTTPError (line 28) | type ToHTTPError function DefaultToHTTPError (line 32) | func DefaultToHTTPError(_ error) int { constant HeaderCompleteResponseValue (line 39) | HeaderCompleteResponseValue = "true" constant HeaderIncompleteResponseValue (line 42) | HeaderIncompleteResponseValue = "false" function InitHTTPDefaultTransport (line 63) | func InitHTTPDefaultTransport(cfg config.ServiceConfig) { function InitHTTPDefaultTransportWithLogger (line 67) | func InitHTTPDefaultTransportWithLogger(cfg config.ServiceConfig, logger... function NewTransport (line 82) | func NewTransport(cfg config.ServiceConfig, logger logging.Logger) *http... function RunServer (line 105) | func RunServer(ctx context.Context, cfg config.ServiceConfig, handler ht... function RunServerWithLoggerFactory (line 109) | func RunServerWithLoggerFactory(l logging.Logger) func(context.Context, ... function NewServer (line 164) | func NewServer(cfg config.ServiceConfig, handler http.Handler) *http.Ser... function NewServerWithLogger (line 168) | func NewServerWithLogger(cfg config.ServiceConfig, handler http.Handler,... function ParseTLSConfig (line 186) | func ParseTLSConfig(cfg *config.TLS) *tls.Config { function ParseTLSConfigWithLogger (line 190) | func ParseTLSConfigWithLogger(cfg *config.TLS, logger logging.Logger) *t... function ParseClientTLSConfigWithLogger (line 229) | func ParseClientTLSConfigWithLogger(cfg *config.ClientTLS, logger loggin... function loadCertPool (line 244) | func loadCertPool(disableSystemCaPool bool, caCerts []string, logger log... function loadClientCerts (line 264) | func loadClientCerts(certFiles []config.ClientTLSCert, logger logging.Lo... function parseTLSVersion (line 279) | func parseTLSVersion(key string) uint16 { function parseCurveIDs (line 286) | func parseCurveIDs(curvePreferences []uint16) []tls.CurveID { function parseCipherSuites (line 299) | func parseCipherSuites(cipherSuites []uint16) []uint16 { FILE: transport/http/server/server_test.go function init (line 26) | func init() { function TestRunServer_TLS (line 30) | func TestRunServer_TLS(t *testing.T) { function TestRunServer_MTLS (line 98) | func TestRunServer_MTLS(t *testing.T) { function TestRunServer_MTLSOldConfigFormat (line 181) | func TestRunServer_MTLSOldConfigFormat(t *testing.T) { function TestRunServer_plain (line 260) | func TestRunServer_plain(t *testing.T) { function TestRunServer_h2c (line 293) | func TestRunServer_h2c(t *testing.T) { function TestRunServer_disabledTLS (line 330) | func TestRunServer_disabledTLS(t *testing.T) { function TestRunServer_err (line 368) | func TestRunServer_err(t *testing.T) { function TestRunServer_errBadKeys (line 400) | func TestRunServer_errBadKeys(t *testing.T) { function Test_parseTLSVersion (line 419) | func Test_parseTLSVersion(t *testing.T) { function Test_parseCurveIDs (line 437) | func Test_parseCurveIDs(t *testing.T) { function Test_parseCipherSuites (line 447) | func Test_parseCipherSuites(t *testing.T) { function dummyHandler (line 457) | func dummyHandler(rw http.ResponseWriter, req *http.Request) { function testKeysAreAvailable (line 461) | func testKeysAreAvailable(t *testing.T) { function httpsClient (line 481) | func httpsClient(cert string) (*http.Client, error) { function mtlsClient (line 508) | func mtlsClient(certPath, keyPath string) (*http.Client, error) { function h2cClient (line 542) | func h2cClient() *http.Client { function newPort (line 554) | func newPort() int { function TestRunServer_MultipleTLS (line 558) | func TestRunServer_MultipleTLS(t *testing.T) { function overrideHostTransport (line 640) | func overrideHostTransport(client *http.Client) { FILE: transport/http/server/tls_test.go type certDef (line 19) | type certDef struct method Org (line 25) | func (c certDef) Org() string { function init (line 32) | func init() { function generateNamedCert (line 53) | func generateNamedCert(hostCert certDef) error {