MCPcopy Index your code

hub / github.com/aileron-gateway/aileron-gateway / functions

Functions4,163 in github.com/aileron-gateway/aileron-gateway

↓ 1,936 callersFunctionDiff
Diff compares two value using go-comp.
kernel/testutil/util.go:18
↓ 1,229 callersMethodName
()
kernel/log/interface.go:41
↓ 984 callersMethodC
()
kernel/testutil/table.go:260
↓ 839 callersMethodA
()
kernel/testutil/table.go:264
↓ 792 callersFunctionDiffError
DiffError compares two error.
kernel/testutil/util.go:28
↓ 609 callersMethodCondition
Condition adds new condition entry. The order of conditions shown in the table becomes the same as the order added.
kernel/testutil/table.go:207
↓ 444 callersMethodBuild
Build builds a new decision table instance.
kernel/testutil/table.go:228
↓ 444 callersMethodRun
Run starts the runner. Run can block the process.
core/interface.go:15
↓ 398 callersMethodAction
Action adds new action entry. The order of actions shown in the table becomes the same as the order added.
kernel/testutil/table.go:218
↓ 396 callersMethodEntries
Entries returns all Entry[C,A] instances added to this table.
kernel/testutil/table.go:79
↓ 393 callersFunctionNewTableBuilder
NewTableBuilder returns a new empty instance of TableBuilder[C, A].
kernel/testutil/table.go:158
↓ 393 callersFunctionRegister
(table *Table[C, A], cases ...*Case[C, A])
kernel/testutil/case.go:24
↓ 346 callersFunctionLoadConfigFiles
LoadConfigFiles load config files in json or yaml format from given file paths. Currently only ".json", ".yaml" and ".yml" file extensions are support
cmd/aileron/app/app.go:122
↓ 344 callersFunctionNewAPI
()
test/integration/common/api.go:15
↓ 332 callersFunctionReferTypedObject
ReferTypedObject refer and get an object from the given reference information. Note that a zero value of type T will be returned when there is an erro
kernel/api/common.go:364
↓ 228 callersMethodString
()
apis/app/v1/opa.pb.go:311
↓ 227 callersMethodSet
Set sets value by the given key in the key-value store.
kernel/kvs/kvs.go:47
↓ 203 callersMethodWithStack
(error, map[string]any)
kernel/errorutil/interface.go:35
↓ 194 callersMethodGet
Get returns a value with the given key. Get operation must return kvs.Nil if key was not exist in the store. The sentinel error Nil must be returned w
kernel/kvs/kvs.go:44
↓ 181 callersMethodClose
Close closes the connected key-value store. It's implementers' responsible to define the behavior of this method. It's callers' responsible to call th
kernel/kvs/kvs.go:35
↓ 166 callersMethodHeader
Header returns http header. Note that modifying the returned header changes the state of this HTTPError object.
util/http/httperror.go:94
↓ 156 callersMethodServeHTTP
(w http.ResponseWriter, r *http.Request)
test/integration/httphandler/common_test.go:30
↓ 138 callersFunctionGlobalLogger
GlobalLogger returns a logger which is stored in the global log holder by name. A slogger is registered by default with the name of logger.DefaultLogg
kernel/log/global.go:89
↓ 122 callersMethodWrite
(p []byte)
kernel/log/slogger.go:130
↓ 114 callersMethodError
Error prints a ERROR level log. This level should show the information that should be treated immediately. The second argument must be an array of key
kernel/log/interface.go:35
↓ 108 callersMethodSet
(context.Context, string, []byte)
app/middleware/session/store.go:120
↓ 89 callersMethodAdd
Add adds Entry[C,A] instances to this table. Entries to be added should be created by a entry builder created by EntryBuilder() method of this table i
kernel/testutil/table.go:73
↓ 85 callersMethodMiddleware
(http.Handler)
core/interface.go:39
↓ 81 callersMethodWriteHeader
(statusCode int)
util/http/writer.go:93
↓ 80 callersMethodWithoutStack
(error, map[string]any)
kernel/errorutil/interface.go:34
↓ 77 callersMethodServeHTTPError
ServeHTTPError serves HTTP error. It's callers responsibility to make sure the all given arguments are non nil.
core/interface.go:112
↓ 74 callersFunctionNewKind
NewKind creates a new error kind. If the error message template is invalid, it returns nil. Creating a new error kind is not recommended to use many t
kernel/errorutil/kind.go:18
↓ 74 callersMethodRoundTrip
(r *http.Request)
test/integration/httpproxy/httpproxy_test.go:31
↓ 72 callersMethodGet
(context.Context, string)
app/middleware/session/store.go:119
↓ 71 callersMethodHeader
()
app/middleware/soaprest/middleware_test.go:332
↓ 63 callersMethodServeHTTP
(w http.ResponseWriter, r *http.Request)
test/integration/httpproxy/util_test.go:43
↓ 51 callersFunctioncheckAuthFailure
(t *testing.T, h apps.AuthenticationHandler, token string)
test/integration/app/oauth/resource-server/resource-server_test.go:57
↓ 50 callersFunctionNewContainerAPI
NewContainerAPI returns a new instance of ContainerAPI.
kernel/api/container.go:14
↓ 50 callersMethodWrap
(err error)
kernel/er/error.go:40
↓ 43 callersMethodAddr
()
core/httpserver/server.go:20
↓ 43 callersMethodMatch
(T)
kernel/txtutil/matcher.go:83
↓ 41 callersMethodDefault
Default returns a new instance of ProtoMessage with default values.
kernel/api/factory.go:29
↓ 40 callersMethodRegister
(string, api.Resource)
util/register/factory.go:47
↓ 38 callersMethodString
()
kernel/log/context_internal_test.go:19
↓ 35 callersFunctionPostTestResource
(server api.API[*api.Request, *api.Response], ref *kernel.Reference, res any)
test/integration/common/api.go:27
↓ 34 callersFunctionHMACFromHashAlg
FromHashAlg returns HMAC function by searching with the given hash algorithm. This function returns nil when no HMAC function found.
kernel/hash/hash.go:165
↓ 33 callersMethodEnabled
Enable returns if the given log level is enabled for this logger.
kernel/log/interface.go:14
↓ 33 callersFunctionNewHTTPError
NewHTTPError returns a new HTTP error instance.
util/http/httperror.go:48
↓ 32 callersMethodWrite
(b []byte)
app/middleware/header/middleware.go:47
↓ 29 callersMethodServeHTTP
ServeHTTP is the implementation of the http.Handler interface. This handler returns a new or an already exist csrf token to the clients. This handler
app/middleware/csrf/middleware.go:74
↓ 29 callersFunctioncheckAuthSuccess
(t *testing.T, h apps.AuthenticationHandler, token string)
test/integration/app/oauth/resource-server/resource-server_test.go:29
↓ 28 callersFunctionNewStringReplacer
(spec *k.ReplacerSpec)
kernel/txtutil/replacer.go:51
↓ 26 callersMethodWriteHeader
WriteHeader is the WriteHeader method of http.ResponseWriter interface.
app/middleware/header/middleware.go:37
↓ 25 callersMethodMap
()
kernel/log/interface.go:42
↓ 24 callersFunctiontestResourceRef
(name string)
core/httpserver/api_internal_test.go:1130
↓ 23 callersFunctionnewJWTHandler
()
app/authn/oauth/main_test.go:18
↓ 22 callersMethodReplace
(T)
kernel/txtutil/replacer.go:36
↓ 22 callersMethodUnwrap
Unwrap returns the internal error if any.
core/interface.go:99
↓ 21 callersMethodStatusCode
StatusCode returns the written status code. If both status code and body were not written at all, StatusCode() returns zero. If body was written witho
util/http/writer.go:33
↓ 20 callersMethodDebug
Debug prints a DEBUG level log. This level should show the information that can be useful for debugging. The second argument must be an array of key a
kernel/log/interface.go:19
↓ 20 callersFunctionDefaultOr
DefaultOr returns a globally used logger. DefaultOr returns default logger if a logger with given name does not exist.
kernel/log/global.go:64
↓ 19 callersMethodUnmarshal
Unmarshal un-marshals the in to into with this format. JSON and YAML is supported.
kernel/api/common.go:76
↓ 19 callersFunctionprintDebug
(level int, args ...any)
kernel/api/common.go:40
↓ 17 callersMethodServeAuthn
ServeAuthn serves authentication. The returned values are newRequest, authenticated, shouldReturn, error. Caller must replace the original request wit
app/interface.go:46
↓ 17 callersMethodTripperware
(http.RoundTripper)
core/interface.go:64
↓ 17 callersFunctionappendOption
(shouldAppend bool, opts []T, opt T)
app/otelmeter/api.go:191
↓ 17 callersFunctionfile_app_v1_authn_oauth_proto_rawDescGZIP
()
apis/app/v1/oauth.pb.go:1892
↓ 17 callersFunctionfile_kernel_replacer_proto_rawDescGZIP
()
apis/kernel/replacer.pb.go:1545
↓ 16 callersMethodCreate
Create creates a new instance of the resource. Given ProtoMessage has the same type as the one returned by the Default().
kernel/api/factory.go:42
↓ 16 callersMethodInfo
Info prints a INFO level log. This level should show the information that is not suit for DEBUG, WARN, ERROR levels. The second argument must be an ar
kernel/log/interface.go:24
↓ 16 callersFunctionNewFactoryAPI
NewFactoryAPI returns a new instance of FactoryAPI.
kernel/api/factory.go:95
↓ 16 callersMethodOpen
Open connects to the target key-value store. It's implementers' responsible to define the behavior of this method. In most case, connecting to the tar
kernel/kvs/kvs.go:27
↓ 15 callersMethodRoundTrip
(r *http.Request)
app/authn/oauth/main_test.go:50
↓ 15 callersFunctionappendOption
(shouldAppend bool, opts []T, opt T)
app/oteltracer/api.go:253
↓ 15 callersFunctionfile_kernel_network_proto_rawDescGZIP
()
apis/kernel/network.pb.go:2317
↓ 15 callersFunctionnewReqHeaderCredentials
(path string, header string)
app/authn/oauth/ropc_test.go:1088
↓ 14 callersMethodMutate
Mutate changes the given ProtoMessage if necessary and return the changed ProtoMessage. Given ProtoMessage has the same type as the one returned by th
kernel/api/factory.go:35
↓ 14 callersFunctionNewTemplate
NewTemplate returns a new template. tplFallback is the static content that will be returned for fallback when embedding external information to the te
kernel/txtutil/template.go:38
↓ 14 callersFunctionSetGlobalLogger
SetGlobalLogger stores the given logger in the global log holder. This replaces the existing logger if there have already been the same named logger.
kernel/log/global.go:108
↓ 13 callersMethodDial
Dial connects to the address on the named network. Known networks are "tcp", "tcp4" (IPv4-only), "tcp6" (IPv6-only), "udp", "udp4" (IPv4-only), "udp6"
kernel/network/dialer.go:31
↓ 13 callersMethodFinalize
()
core/interface.go:122
↓ 13 callersMethodHandle
(pattern string, h http.Handler)
core/httpserver/mux.go:48
↓ 13 callersFunctionNewJWTHandler
NewJWTHandler returns a new JWTHandler.
util/security/jwt.go:330
↓ 13 callersFunctionReferTypedObjects
ReferTypedObjects returns objects referenced by the given refs. Note that a nil slice will be returned when there is an error. This function panics wh
kernel/api/common.go:387
↓ 13 callersMethodServe
()
core/httpserver/server.go:22
↓ 13 callersFunctionTLSConfig
TLSConfig returns a new *tls.Config from the given spec. This function returns nil config and nil error when the given spec was nil.
kernel/network/tls.go:50
↓ 13 callersFunctionfile_app_v1_o11y_oteltracer_proto_rawDescGZIP
()
apis/app/v1/oteltracer.pb.go:1681
↓ 13 callersFunctiontestResourceRef
(name string)
util/http/chain_test.go:552
↓ 12 callersMethodMethods
Methods returns the http methods this handler can handle.
util/http/base.go:84
↓ 12 callersMethodShutdown
(context.Context)
core/httpserver/server.go:21
↓ 12 callersFunctionregexpPattern
(pattern string, posix bool, allowEmpty bool)
kernel/txtutil/replacer.go:796
↓ 12 callersFunctiontestHTTPLoggerMiddleware
(t *testing.T, lg core.Middleware)
test/integration/httplogger/common_test.go:27
↓ 11 callersFunctionNewDefaultSession
(sm SerializeMethod)
util/session/session.go:91
↓ 10 callersFunctionEncoderDecoder
EncoderDecoder returns the pair of encoder and decoder function. If invalid argument is given, nil pointers are returned. Default Base32HexEscapedEnco
kernel/encoder/base.go:73
↓ 10 callersMethodExtract
Extract extracts data into given object. If the given object implements encoding.BinaryUnmarshaler interface, its method is called for unmarshaling.
util/session/session.go:88
↓ 10 callersMethodHandle
(K, API[Q, S])
kernel/api/interface.go:18
↓ 10 callersMethodIs
(err error)
kernel/er/error.go:53
↓ 10 callersFunctionNewJSONSLogger
NewJSONSLogger returns a new Logger created with slog.NewJSONHandler. os.Stdio is used if the given io.Writer is nil. Zero value of slog.HandlerOption
kernel/log/slogger.go:96
↓ 10 callersFunctionNewStringMatcher
NewStringMatcher returns a new instance of string matcher.
kernel/txtutil/matcher.go:108
↓ 10 callersMethodServe
(context.Context, Q)
kernel/api/interface.go:12
next →1–100 of 4,163, ranked by callers