Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/aileron-gateway/aileron-gateway
/ functions
Functions
4,163 in github.com/aileron-gateway/aileron-gateway
⨍
Functions
4,163
◇
Types & classes
1,024
↓ 1,936 callers
Function
Diff
Diff compares two value using go-comp.
kernel/testutil/util.go:18
↓ 1,229 callers
Method
Name
()
kernel/log/interface.go:41
↓ 984 callers
Method
C
()
kernel/testutil/table.go:260
↓ 839 callers
Method
A
()
kernel/testutil/table.go:264
↓ 792 callers
Function
DiffError
DiffError compares two error.
kernel/testutil/util.go:28
↓ 609 callers
Method
Condition
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 callers
Method
Build
Build builds a new decision table instance.
kernel/testutil/table.go:228
↓ 444 callers
Method
Run
Run starts the runner. Run can block the process.
core/interface.go:15
↓ 398 callers
Method
Action
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 callers
Method
Entries
Entries returns all Entry[C,A] instances added to this table.
kernel/testutil/table.go:79
↓ 393 callers
Function
NewTableBuilder
NewTableBuilder returns a new empty instance of TableBuilder[C, A].
kernel/testutil/table.go:158
↓ 393 callers
Function
Register
(table *Table[C, A], cases ...*Case[C, A])
kernel/testutil/case.go:24
↓ 346 callers
Function
LoadConfigFiles
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 callers
Function
NewAPI
()
test/integration/common/api.go:15
↓ 332 callers
Function
ReferTypedObject
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 callers
Method
String
()
apis/app/v1/opa.pb.go:311
↓ 227 callers
Method
Set
Set sets value by the given key in the key-value store.
kernel/kvs/kvs.go:47
↓ 203 callers
Method
WithStack
(error, map[string]any)
kernel/errorutil/interface.go:35
↓ 194 callers
Method
Get
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 callers
Method
Close
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 callers
Method
Header
Header returns http header. Note that modifying the returned header changes the state of this HTTPError object.
util/http/httperror.go:94
↓ 156 callers
Method
ServeHTTP
(w http.ResponseWriter, r *http.Request)
test/integration/httphandler/common_test.go:30
↓ 138 callers
Function
GlobalLogger
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 callers
Method
Write
(p []byte)
kernel/log/slogger.go:130
↓ 114 callers
Method
Error
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 callers
Method
Set
(context.Context, string, []byte)
app/middleware/session/store.go:120
↓ 89 callers
Method
Add
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 callers
Method
Middleware
(http.Handler)
core/interface.go:39
↓ 81 callers
Method
WriteHeader
(statusCode int)
util/http/writer.go:93
↓ 80 callers
Method
WithoutStack
(error, map[string]any)
kernel/errorutil/interface.go:34
↓ 77 callers
Method
ServeHTTPError
ServeHTTPError serves HTTP error. It's callers responsibility to make sure the all given arguments are non nil.
core/interface.go:112
↓ 74 callers
Function
NewKind
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 callers
Method
RoundTrip
(r *http.Request)
test/integration/httpproxy/httpproxy_test.go:31
↓ 72 callers
Method
Get
(context.Context, string)
app/middleware/session/store.go:119
↓ 71 callers
Method
Header
()
app/middleware/soaprest/middleware_test.go:332
↓ 63 callers
Method
ServeHTTP
(w http.ResponseWriter, r *http.Request)
test/integration/httpproxy/util_test.go:43
↓ 51 callers
Function
checkAuthFailure
(t *testing.T, h apps.AuthenticationHandler, token string)
test/integration/app/oauth/resource-server/resource-server_test.go:57
↓ 50 callers
Function
NewContainerAPI
NewContainerAPI returns a new instance of ContainerAPI.
kernel/api/container.go:14
↓ 50 callers
Method
Wrap
(err error)
kernel/er/error.go:40
↓ 43 callers
Method
Addr
()
core/httpserver/server.go:20
↓ 43 callers
Method
Match
(T)
kernel/txtutil/matcher.go:83
↓ 41 callers
Method
Default
Default returns a new instance of ProtoMessage with default values.
kernel/api/factory.go:29
↓ 40 callers
Method
Register
(string, api.Resource)
util/register/factory.go:47
↓ 38 callers
Method
String
()
kernel/log/context_internal_test.go:19
↓ 35 callers
Function
PostTestResource
(server api.API[*api.Request, *api.Response], ref *kernel.Reference, res any)
test/integration/common/api.go:27
↓ 34 callers
Function
HMACFromHashAlg
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 callers
Method
Enabled
Enable returns if the given log level is enabled for this logger.
kernel/log/interface.go:14
↓ 33 callers
Function
NewHTTPError
NewHTTPError returns a new HTTP error instance.
util/http/httperror.go:48
↓ 32 callers
Method
Write
(b []byte)
app/middleware/header/middleware.go:47
↓ 29 callers
Method
ServeHTTP
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 callers
Function
checkAuthSuccess
(t *testing.T, h apps.AuthenticationHandler, token string)
test/integration/app/oauth/resource-server/resource-server_test.go:29
↓ 28 callers
Function
NewStringReplacer
(spec *k.ReplacerSpec)
kernel/txtutil/replacer.go:51
↓ 26 callers
Method
WriteHeader
WriteHeader is the WriteHeader method of http.ResponseWriter interface.
app/middleware/header/middleware.go:37
↓ 25 callers
Method
Map
()
kernel/log/interface.go:42
↓ 24 callers
Function
testResourceRef
(name string)
core/httpserver/api_internal_test.go:1130
↓ 23 callers
Function
newJWTHandler
()
app/authn/oauth/main_test.go:18
↓ 22 callers
Method
Replace
(T)
kernel/txtutil/replacer.go:36
↓ 22 callers
Method
Unwrap
Unwrap returns the internal error if any.
core/interface.go:99
↓ 21 callers
Method
StatusCode
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 callers
Method
Debug
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 callers
Function
DefaultOr
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 callers
Method
Unmarshal
Unmarshal un-marshals the in to into with this format. JSON and YAML is supported.
kernel/api/common.go:76
↓ 19 callers
Function
printDebug
(level int, args ...any)
kernel/api/common.go:40
↓ 17 callers
Method
ServeAuthn
ServeAuthn serves authentication. The returned values are newRequest, authenticated, shouldReturn, error. Caller must replace the original request wit
app/interface.go:46
↓ 17 callers
Method
Tripperware
(http.RoundTripper)
core/interface.go:64
↓ 17 callers
Function
appendOption
(shouldAppend bool, opts []T, opt T)
app/otelmeter/api.go:191
↓ 17 callers
Function
file_app_v1_authn_oauth_proto_rawDescGZIP
()
apis/app/v1/oauth.pb.go:1892
↓ 17 callers
Function
file_kernel_replacer_proto_rawDescGZIP
()
apis/kernel/replacer.pb.go:1545
↓ 16 callers
Method
Create
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 callers
Method
Info
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 callers
Function
NewFactoryAPI
NewFactoryAPI returns a new instance of FactoryAPI.
kernel/api/factory.go:95
↓ 16 callers
Method
Open
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 callers
Method
RoundTrip
(r *http.Request)
app/authn/oauth/main_test.go:50
↓ 15 callers
Function
appendOption
(shouldAppend bool, opts []T, opt T)
app/oteltracer/api.go:253
↓ 15 callers
Function
file_kernel_network_proto_rawDescGZIP
()
apis/kernel/network.pb.go:2317
↓ 15 callers
Function
newReqHeaderCredentials
(path string, header string)
app/authn/oauth/ropc_test.go:1088
↓ 14 callers
Method
Mutate
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 callers
Function
NewTemplate
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 callers
Function
SetGlobalLogger
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 callers
Method
Dial
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 callers
Method
Finalize
()
core/interface.go:122
↓ 13 callers
Method
Handle
(pattern string, h http.Handler)
core/httpserver/mux.go:48
↓ 13 callers
Function
NewJWTHandler
NewJWTHandler returns a new JWTHandler.
util/security/jwt.go:330
↓ 13 callers
Function
ReferTypedObjects
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 callers
Method
Serve
()
core/httpserver/server.go:22
↓ 13 callers
Function
TLSConfig
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 callers
Function
file_app_v1_o11y_oteltracer_proto_rawDescGZIP
()
apis/app/v1/oteltracer.pb.go:1681
↓ 13 callers
Function
testResourceRef
(name string)
util/http/chain_test.go:552
↓ 12 callers
Method
Methods
Methods returns the http methods this handler can handle.
util/http/base.go:84
↓ 12 callers
Method
Shutdown
(context.Context)
core/httpserver/server.go:21
↓ 12 callers
Function
regexpPattern
(pattern string, posix bool, allowEmpty bool)
kernel/txtutil/replacer.go:796
↓ 12 callers
Function
testHTTPLoggerMiddleware
(t *testing.T, lg core.Middleware)
test/integration/httplogger/common_test.go:27
↓ 11 callers
Function
NewDefaultSession
(sm SerializeMethod)
util/session/session.go:91
↓ 10 callers
Function
EncoderDecoder
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 callers
Method
Extract
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 callers
Method
Handle
(K, API[Q, S])
kernel/api/interface.go:18
↓ 10 callers
Method
Is
(err error)
kernel/er/error.go:53
↓ 10 callers
Function
NewJSONSLogger
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 callers
Function
NewStringMatcher
NewStringMatcher returns a new instance of string matcher.
kernel/txtutil/matcher.go:108
↓ 10 callers
Method
Serve
(context.Context, Q)
kernel/api/interface.go:12
next →
1–100 of 4,163, ranked by callers