SYMBOL INDEX (884 symbols across 79 files) FILE: v3/casbin/casbin.go type Middleware (line 10) | type Middleware struct method RequiresPermissions (line 28) | func (m *Middleware) RequiresPermissions(permissions []string, opts ..... method RoutePermission (line 71) | func (m *Middleware) RoutePermission() fiber.Handler { method RequiresRoles (line 90) | func (m *Middleware) RequiresRoles(roles []string, opts ...Option) fib... function New (line 15) | func New(config ...Config) *Middleware { FILE: v3/casbin/casbin_test.go constant modelConf (line 23) | modelConf = ` constant policyList (line 39) | policyList = ` type mockAdapter (line 58) | type mockAdapter struct method LoadPolicy (line 68) | func (ma *mockAdapter) LoadPolicy(model model.Model) error { method SavePolicy (line 86) | func (ma *mockAdapter) SavePolicy(model model.Model) error { method AddPolicy (line 90) | func (ma *mockAdapter) AddPolicy(sec string, ptype string, rule []stri... method RemovePolicy (line 94) | func (ma *mockAdapter) RemovePolicy(sec string, ptype string, rule []s... method RemoveFilteredPolicy (line 98) | func (ma *mockAdapter) RemoveFilteredPolicy(sec string, ptype string, ... function newMockAdapter (line 62) | func newMockAdapter(text string) *mockAdapter { function setup (line 102) | func setup() (*casbin.Enforcer, error) { function Test_RequiresPermission (line 116) | func Test_RequiresPermission(t *testing.T) { function Test_RequiresRoles (line 228) | func Test_RequiresRoles(t *testing.T) { function Test_RoutePermission (line 340) | func Test_RoutePermission(t *testing.T) { FILE: v3/casbin/config.go type Config (line 11) | type Config struct function configDefault (line 47) | func configDefault(config ...Config) (Config, error) { FILE: v3/casbin/options.go constant MatchAllRule (line 6) | MatchAllRule ValidationRule = iota constant AtLeastOneRule (line 7) | AtLeastOneRule type ValidationRule (line 16) | type ValidationRule type PermissionParserFunc (line 19) | type PermissionParserFunc type OptionFunc (line 20) | type OptionFunc method apply (line 32) | func (of OptionFunc) apply(o *Options) { type Option (line 22) | type Option interface type Options (line 26) | type Options struct function WithValidationRule (line 36) | func WithValidationRule(vr ValidationRule) Option { function WithPermissionParser (line 42) | func WithPermissionParser(pp PermissionParserFunc) Option { function PermissionParserWithSeperator (line 48) | func PermissionParserWithSeperator(sep string) PermissionParserFunc { function optionsDefault (line 55) | func optionsDefault(opts ...Option) Options { FILE: v3/casbin/utils.go function containsString (line 3) | func containsString(s []string, v string) bool { function stringSliceToInterfaceSlice (line 12) | func stringSliceToInterfaceSlice(s []string) []interface{} { FILE: v3/circuitbreaker/circuitbreaker.go type State (line 14) | type State constant StateClosed (line 17) | StateClosed State = "closed" constant StateOpen (line 18) | StateOpen State = "open" constant StateHalfOpen (line 19) | StateHalfOpen State = "half-open" type Config (line 23) | type Config struct type CircuitBreaker (line 65) | type CircuitBreaker struct method Stop (line 132) | func (cb *CircuitBreaker) Stop() { method GetState (line 143) | func (cb *CircuitBreaker) GetState() State { method IsOpen (line 150) | func (cb *CircuitBreaker) IsOpen() bool { method Reset (line 155) | func (cb *CircuitBreaker) Reset() { method ForceOpen (line 174) | func (cb *CircuitBreaker) ForceOpen() { method ForceClose (line 179) | func (cb *CircuitBreaker) ForceClose() { method SetTimeout (line 194) | func (cb *CircuitBreaker) SetTimeout(timeout time.Duration) { method transitionToOpen (line 202) | func (cb *CircuitBreaker) transitionToOpen() { method transitionToHalfOpen (line 226) | func (cb *CircuitBreaker) transitionToHalfOpen() { method transitionToClosed (line 247) | func (cb *CircuitBreaker) transitionToClosed() { method AllowRequest (line 262) | func (cb *CircuitBreaker) AllowRequest() (bool, State) { method ReleaseSemaphore (line 287) | func (cb *CircuitBreaker) ReleaseSemaphore() { method ReportSuccess (line 295) | func (cb *CircuitBreaker) ReportSuccess() { method ReportFailure (line 309) | func (cb *CircuitBreaker) ReportFailure() { method Metrics (line 327) | func (cb *CircuitBreaker) Metrics() fiber.Map { method GetStateStats (line 338) | func (cb *CircuitBreaker) GetStateStats() fiber.Map { method HealthHandler (line 355) | func (cb *CircuitBreaker) HealthHandler() fiber.Handler { function New (line 85) | func New(config Config) *CircuitBreaker { function Middleware (line 373) | func Middleware(cb *CircuitBreaker) fiber.Handler { FILE: v3/circuitbreaker/circuitbreaker_test.go type mockTime (line 18) | type mockTime struct method Now (line 27) | func (m *mockTime) Now() time.Time { method Add (line 33) | func (m *mockTime) Add(d time.Duration) { function newMockTime (line 23) | func newMockTime(t time.Time) *mockTime { function TestCircuitBreakerStates (line 40) | func TestCircuitBreakerStates(t *testing.T) { function TestCircuitBreakerCallbacks (line 162) | func TestCircuitBreakerCallbacks(t *testing.T) { function TestMiddleware (line 254) | func TestMiddleware(t *testing.T) { function TestConcurrentAccess (line 335) | func TestConcurrentAccess(t *testing.T) { function TestCustomFailureDetection (line 425) | func TestCustomFailureDetection(t *testing.T) { function TestHalfOpenConcurrencyConfig (line 481) | func TestHalfOpenConcurrencyConfig(t *testing.T) { function TestCircuitBreakerReset (line 515) | func TestCircuitBreakerReset(t *testing.T) { function TestForceOpen (line 595) | func TestForceOpen(t *testing.T) { function TestHealthHandler (line 664) | func TestHealthHandler(t *testing.T) { FILE: v3/coraza/coraza.go constant defaultBlockMessage (line 26) | defaultBlockMessage = "Request blocked by Web Application Firewall" type Config (line 35) | type Config struct method WithLogLevel (line 701) | func (cfg Config) WithLogLevel(level fiberlog.Level) Config { method WithRequestBodyAccess (line 708) | func (cfg Config) WithRequestBodyAccess(enabled bool) Config { method WithMetricsCollector (line 715) | func (cfg Config) WithMetricsCollector(collector MetricsCollector) Con... type MiddlewareConfig (line 70) | type MiddlewareConfig struct type MiddlewareError (line 80) | type MiddlewareError struct type InterruptionDetails (line 92) | type InterruptionDetails struct type BlockHandler (line 106) | type BlockHandler type ErrorHandler (line 109) | type ErrorHandler type Engine (line 112) | type Engine struct method Init (line 169) | func (e *Engine) Init(cfg Config) error { method SetBlockMessage (line 203) | func (e *Engine) SetBlockMessage(msg string) { method Metrics (line 210) | func (e *Engine) Metrics() MetricsCollector { method Middleware (line 217) | func (e *Engine) Middleware(config ...MiddlewareConfig) fiber.Handler { method inspectRequest (line 285) | func (e *Engine) inspectRequest( method finishTransaction (line 349) | func (e *Engine) finishTransaction(c fiber.Ctx, tx types.Transaction, ... method Reload (line 376) | func (e *Engine) Reload() error { method snapshot (line 408) | func (e *Engine) snapshot() (coraza.WAF, bool, experimental.WAFWithOpt... method setWAFOptionsStateLocked (line 415) | func (e *Engine) setWAFOptionsStateLocked(waf coraza.WAF) { method blockMessageValue (line 426) | func (e *Engine) blockMessageValue() string { method handleError (line 432) | func (e *Engine) handleError(c fiber.Ctx, cfg MiddlewareConfig, mwErr ... method observabilitySnapshot (line 470) | func (e *Engine) observabilitySnapshot() EngineSnapshot { method currentLogLevel (line 757) | func (e *Engine) currentLogLevel() fiberlog.Level { method log (line 763) | func (e *Engine) log(targetLevel fiberlog.Level, msg string, keysAndVa... function New (line 137) | func New(config ...Config) fiber.Handler { function NewEngine (line 156) | func NewEngine(cfg Config) (*Engine, error) { function newEngine (line 440) | func newEngine(collector MetricsCollector) *Engine { function isNilMetricsCollector (line 448) | func isNilMetricsCollector(collector MetricsCollector) bool { function resolveMetricsCollector (line 462) | func resolveMetricsCollector(collector MetricsCollector) MetricsCollector { function defaultBlockHandler (line 497) | func defaultBlockHandler(c fiber.Ctx, details InterruptionDetails) error { function defaultErrorHandler (line 502) | func defaultErrorHandler(_ fiber.Ctx, mwErr MiddlewareError) error { function processRequest (line 506) | func processRequest(tx types.Transaction, req *http.Request, bodyLimit i... function obtainStatusCodeFromInterruptionOrDefault (line 549) | func obtainStatusCodeFromInterruptionOrDefault(it *types.Interruption, d... function convertFiberToStdRequest (line 560) | func convertFiberToStdRequest(c fiber.Ctx) (*http.Request, error) { function createWAFWithConfig (line 574) | func createWAFWithConfig(cfg Config) (coraza.WAF, error) { function resolveDirectivesFiles (line 601) | func resolveDirectivesFiles(root fs.FS, path string, logLevel fiberlog.L... function splitRemoteAddr (line 642) | func splitRemoteAddr(remoteAddr string) (string, int) { function cloneConfig (line 656) | func cloneConfig(cfg Config) Config { function resolveConfig (line 662) | func resolveConfig(cfg Config) Config { function resolveBlockMessage (line 721) | func resolveBlockMessage(msg string) string { function normalizeLogLevel (line 729) | func normalizeLogLevel(level fiberlog.Level) fiberlog.Level { function logWithLevel (line 738) | func logWithLevel(configLevel, targetLevel fiberlog.Level, msg string, k... FILE: v3/coraza/coraza_test.go constant testRules (line 20) | testRules = `SecRuleEngine On function TestNewPanicsOnInvalidConfig (line 24) | func TestNewPanicsOnInvalidConfig(t *testing.T) { function TestNewWithoutConfigReturnsMiddleware (line 34) | func TestNewWithoutConfigReturnsMiddleware(t *testing.T) { function TestNewEngineWithLocalFile (line 57) | func TestNewEngineWithLocalFile(t *testing.T) { function TestSetBlockMessageEmptyResetsDefault (line 80) | func TestSetBlockMessageEmptyResetsDefault(t *testing.T) { function TestNewEngineWithRootFS (line 94) | func TestNewEngineWithRootFS(t *testing.T) { function TestNewEngineMissingFile (line 115) | func TestNewEngineMissingFile(t *testing.T) { function TestNewReturnsMiddleware (line 124) | func TestNewReturnsMiddleware(t *testing.T) { function TestNewAppliesConfigDefaults (line 144) | func TestNewAppliesConfigDefaults(t *testing.T) { function TestResolveConfigHonorsExplicitZeroValueOverrides (line 170) | func TestResolveConfigHonorsExplicitZeroValueOverrides(t *testing.T) { function TestEngineMiddlewareAllowsCleanRequest (line 181) | func TestEngineMiddlewareAllowsCleanRequest(t *testing.T) { function TestEngineMiddlewareBlocksMaliciousRequest (line 211) | func TestEngineMiddlewareBlocksMaliciousRequest(t *testing.T) { function TestEngineMiddlewareBlocksMaliciousRequestBody (line 244) | func TestEngineMiddlewareBlocksMaliciousRequestBody(t *testing.T) { function TestEngineMiddlewareRespectsFiberBodyLimit (line 271) | func TestEngineMiddlewareRespectsFiberBodyLimit(t *testing.T) { function TestNewEngineProvidesInstanceIsolation (line 301) | func TestNewEngineProvidesInstanceIsolation(t *testing.T) { function TestMiddlewareConfigNextBypassesInspection (line 339) | func TestMiddlewareConfigNextBypassesInspection(t *testing.T) { function TestMiddlewareConfigCustomBlockHandler (line 364) | func TestMiddlewareConfigCustomBlockHandler(t *testing.T) { function TestMiddlewareConfigCustomErrorHandler (line 398) | func TestMiddlewareConfigCustomErrorHandler(t *testing.T) { function TestEngineReportIncludesLifecycleSnapshot (line 424) | func TestEngineReportIncludesLifecycleSnapshot(t *testing.T) { function TestMetricsSnapshotHandlesNilCollectorSnapshot (line 442) | func TestMetricsSnapshotHandlesNilCollectorSnapshot(t *testing.T) { function TestNewEngineFallsBackToDefaultCollectorForTypedNilMetricsCollector (line 455) | func TestNewEngineFallsBackToDefaultCollectorForTypedNilMetricsCollector... function TestEngineInitFailureKeepsLastWorkingWAF (line 478) | func TestEngineInitFailureKeepsLastWorkingWAF(t *testing.T) { function TestMiddlewareFailsClosedWhenWAFPanicOccurs (line 520) | func TestMiddlewareFailsClosedWhenWAFPanicOccurs(t *testing.T) { function TestEngineSnapshotTracksLifecycleCounters (line 545) | func TestEngineSnapshotTracksLifecycleCounters(t *testing.T) { function TestEngineInitReplacesMetricsCollectorWhenProvided (line 567) | func TestEngineInitReplacesMetricsCollectorWhenProvided(t *testing.T) { function TestEngineInitResetsMetricsCollectorToDefaultWhenOmitted (line 597) | func TestEngineInitResetsMetricsCollectorToDefaultWhenOmitted(t *testing... function TestReloadWithoutDirectivesSucceeds (line 630) | func TestReloadWithoutDirectivesSucceeds(t *testing.T) { function TestNewEngineWildcardDirectivesRequireMatch (line 654) | func TestNewEngineWildcardDirectivesRequireMatch(t *testing.T) { function TestNewEngineQuestionMarkGlobDirectivesMatch (line 666) | func TestNewEngineQuestionMarkGlobDirectivesMatch(t *testing.T) { function TestNewEngineCharacterClassGlobDirectivesMatch (line 682) | func TestNewEngineCharacterClassGlobDirectivesMatch(t *testing.T) { function TestNewEngineWildcardDirectivesWithRootFSRequireMatch (line 698) | func TestNewEngineWildcardDirectivesWithRootFSRequireMatch(t *testing.T) { function TestDefaultMetricsCollectorRecordLatencyUsesOnlineAverage (line 712) | func TestDefaultMetricsCollectorRecordLatencyUsesOnlineAverage(t *testin... function newInstanceApp (line 731) | func newInstanceApp(engine *Engine, cfg MiddlewareConfig) *fiber.App { function newTestEngine (line 740) | func newTestEngine(t *testing.T) (*Engine, error) { function newTestEngineWithRules (line 745) | func newTestEngineWithRules(t *testing.T, rules string) (*Engine, error) { function writeRuleFile (line 756) | func writeRuleFile(t *testing.T, dir, name, contents string) string { function performRequest (line 767) | func performRequest(t *testing.T, app *fiber.App, req *http.Request) *ht... type nilSnapshotCollector (line 778) | type nilSnapshotCollector struct method RecordRequest (line 780) | func (nilSnapshotCollector) RecordRequest() {} method RecordBlock (line 781) | func (nilSnapshotCollector) RecordBlock() {} method RecordLatency (line 782) | func (nilSnapshotCollector) RecordLatency(time.Duration) {} method GetMetrics (line 783) | func (nilSnapshotCollector) GetMetrics() *MetricsSnapshot { return nil } method Reset (line 784) | func (nilSnapshotCollector) Reset() {} type nilPtrSnapshotCollector (line 786) | type nilPtrSnapshotCollector struct method RecordRequest (line 788) | func (*nilPtrSnapshotCollector) RecordRequest() {} method RecordBlock (line 789) | func (*nilPtrSnapshotCollector) RecordBlock() {} method RecordLatency (line 790) | func (*nilPtrSnapshotCollector) RecordLatency(time.Duration) {} method GetMetrics (line 791) | func (*nilPtrSnapshotCollector) GetMetrics() *MetricsSnapshot { return... method Reset (line 792) | func (*nilPtrSnapshotCollector) Reset() {} type countingCollector (line 794) | type countingCollector struct method RecordRequest (line 799) | func (c *countingCollector) RecordRequest() { c.requests++ } method RecordBlock (line 800) | func (c *countingCollector) RecordBlock() { c.blocks++ } method RecordLatency (line 801) | func (c *countingCollector) RecordLatency(time.Duration) {} method GetMetrics (line 802) | func (c *countingCollector) GetMetrics() *MetricsSnapshot { method Reset (line 809) | func (c *countingCollector) Reset() { type fakePanicWAF (line 814) | type fakePanicWAF struct method NewTransaction (line 816) | func (fakePanicWAF) NewTransaction() types.Transaction { method NewTransactionWithID (line 820) | func (fakePanicWAF) NewTransactionWithID(string) types.Transaction { type fakePanicTransaction (line 824) | type fakePanicTransaction struct method ProcessConnection (line 826) | func (fakePanicTransaction) ProcessConnection(string, int, string, int... method ProcessURI (line 827) | func (fakePanicTransaction) ProcessURI(string, string, string) ... method SetServerName (line 828) | func (fakePanicTransaction) SetServerName(string) ... method AddRequestHeader (line 829) | func (fakePanicTransaction) AddRequestHeader(string, string) ... method ProcessRequestHeaders (line 830) | func (fakePanicTransaction) ProcessRequestHeaders() *types.Interruptio... method RequestBodyReader (line 831) | func (fakePanicTransaction) RequestBodyReader() (io.Reader, error) ... method AddGetRequestArgument (line 832) | func (fakePanicTransaction) AddGetRequestArgument(string, string) ... method AddPostRequestArgument (line 833) | func (fakePanicTransaction) AddPostRequestArgument(string, string) ... method AddPathRequestArgument (line 834) | func (fakePanicTransaction) AddPathRequestArgument(string, string) ... method AddResponseArgument (line 835) | func (fakePanicTransaction) AddResponseArgument(string, string) ... method ProcessRequestBody (line 836) | func (fakePanicTransaction) ProcessRequestBody() (*types.Interruption,... method WriteRequestBody (line 837) | func (fakePanicTransaction) WriteRequestBody([]byte) (*types.Interrupt... method ReadRequestBodyFrom (line 840) | func (fakePanicTransaction) ReadRequestBodyFrom(io.Reader) (*types.Int... method AddResponseHeader (line 843) | func (fakePanicTransaction) AddResponseHeader(string, string) {} method ProcessResponseHeaders (line 844) | func (fakePanicTransaction) ProcessResponseHeaders(int, string) *types... method ResponseBodyReader (line 847) | func (fakePanicTransaction) ResponseBodyReader() (io.Reader, error) { ... method ProcessResponseBody (line 848) | func (fakePanicTransaction) ProcessResponseBody() (*types.Interruption... method WriteResponseBody (line 851) | func (fakePanicTransaction) WriteResponseBody([]byte) (*types.Interrup... method ReadResponseBodyFrom (line 854) | func (fakePanicTransaction) ReadResponseBodyFrom(io.Reader) (*types.In... method ProcessLogging (line 857) | func (fakePanicTransaction) ProcessLogging() {} method IsRuleEngineOff (line 858) | func (fakePanicTransaction) IsRuleEngineOff() bool { return f... method IsRequestBodyAccessible (line 859) | func (fakePanicTransaction) IsRequestBodyAccessible() bool { return f... method IsResponseBodyAccessible (line 860) | func (fakePanicTransaction) IsResponseBodyAccessible() bool { return f... method IsResponseBodyProcessable (line 861) | func (fakePanicTransaction) IsResponseBodyProcessable() bool { method IsInterrupted (line 864) | func (fakePanicTransaction) IsInterrupted() bool { retur... method Interruption (line 865) | func (fakePanicTransaction) Interruption() *types.Interruption { retur... method MatchedRules (line 866) | func (fakePanicTransaction) MatchedRules() []types.MatchedRule { retur... method DebugLogger (line 867) | func (fakePanicTransaction) DebugLogger() debuglog.Logger { retur... method ID (line 868) | func (fakePanicTransaction) ID() string { retur... method Close (line 869) | func (fakePanicTransaction) Close() error { retur... FILE: v3/coraza/metrics.go type MetricsCollector (line 11) | type MetricsCollector interface type MetricsSnapshot (line 20) | type MetricsSnapshot struct type EngineSnapshot (line 34) | type EngineSnapshot struct type MetricsReport (line 60) | type MetricsReport struct type defaultMetricsCollector (line 67) | type defaultMetricsCollector struct method RecordRequest (line 81) | func (m *defaultMetricsCollector) RecordRequest() { method RecordBlock (line 85) | func (m *defaultMetricsCollector) RecordBlock() { method RecordLatency (line 89) | func (m *defaultMetricsCollector) RecordLatency(duration time.Duration) { method GetMetrics (line 102) | func (m *defaultMetricsCollector) GetMetrics() *MetricsSnapshot { method Reset (line 127) | func (m *defaultMetricsCollector) Reset() { function NewDefaultMetricsCollector (line 77) | func NewDefaultMetricsCollector() MetricsCollector { method MetricsSnapshot (line 138) | func (e *Engine) MetricsSnapshot() MetricsSnapshot { method Snapshot (line 153) | func (e *Engine) Snapshot() EngineSnapshot { method Report (line 158) | func (e *Engine) Report() MetricsReport { FILE: v3/fgprof/config.go type Config (line 5) | type Config struct function configDefault (line 23) | func configDefault(config ...Config) Config { FILE: v3/fgprof/fgprof.go function New (line 9) | func New(conf ...Config) fiber.Handler { FILE: v3/fgprof/fgprof_test.go function Test_Non_Fgprof_Path (line 15) | func Test_Non_Fgprof_Path(t *testing.T) { function Test_Non_Fgprof_Path_WithPrefix (line 33) | func Test_Non_Fgprof_Path_WithPrefix(t *testing.T) { function Test_Fgprof_Path (line 53) | func Test_Fgprof_Path(t *testing.T) { function Test_Fgprof_Path_WithPrefix (line 67) | func Test_Fgprof_Path_WithPrefix(t *testing.T) { function Test_Fgprof_Next (line 93) | func Test_Fgprof_Next(t *testing.T) { function Test_Fgprof_Next_WithPrefix (line 108) | func Test_Fgprof_Next_WithPrefix(t *testing.T) { FILE: v3/hcaptcha/config.go constant DefaultSiteVerifyURL (line 13) | DefaultSiteVerifyURL = "https://api.hcaptcha.com/siteverify" type Config (line 16) | type Config struct function DefaultResponseKeyFunc (line 33) | func DefaultResponseKeyFunc(c fiber.Ctx) (string, error) { FILE: v3/hcaptcha/hcaptcha.go type HCaptcha (line 16) | type HCaptcha struct method Validate (line 37) | func (h *HCaptcha) Validate(c fiber.Ctx) error { function New (line 21) | func New(config Config) fiber.Handler { FILE: v3/hcaptcha/hcaptcha_test.go constant TestSecretKey (line 17) | TestSecretKey = "0x0000000000000000000000000000000000000000" constant TestResponseToken (line 18) | TestResponseToken = "20000000-aaaa-bbbb-cccc-000000000002" function newSiteVerifyServer (line 21) | func newSiteVerifyServer(t *testing.T, success bool) *httptest.Server { function TestHCaptchaDefaultValidation (line 36) | func TestHCaptchaDefaultValidation(t *testing.T) { function TestHCaptchaValidateFunc (line 95) | func TestHCaptchaValidateFunc(t *testing.T) { function TestDefaultResponseKeyFunc (line 194) | func TestDefaultResponseKeyFunc(t *testing.T) { FILE: v3/i18n/config.go type Config (line 14) | type Config struct type Loader (line 54) | type Loader interface type LoaderFunc (line 58) | type LoaderFunc method LoadMessage (line 60) | func (f LoaderFunc) LoadMessage(path string) ([]byte, error) { function defaultLangHandler (line 74) | func defaultLangHandler(c fiber.Ctx, defaultLang string) string { function configDefault (line 88) | func configDefault(config ...*Config) *Config { FILE: v3/i18n/embed.go type EmbedLoader (line 7) | type EmbedLoader struct method LoadMessage (line 11) | func (e *EmbedLoader) LoadMessage(path string) ([]byte, error) { FILE: v3/i18n/embed_test.go function newEmbedServer (line 21) | func newEmbedServer() *fiber.App { function request (line 45) | func request(lang language.Tag, name string) (*http.Response, error) { function TestEmbedLoader_LoadMessage (line 56) | func TestEmbedLoader_LoadMessage(t *testing.T) { FILE: v3/i18n/example/main.go function main (line 12) | func main() { FILE: v3/i18n/i18n.go type I18n (line 17) | type I18n struct method MustLocalize (line 94) | func (i *I18n) MustLocalize(ctx fiber.Ctx, params interface{}) string { method Localize (line 115) | func (i *I18n) Localize(ctx fiber.Ctx, params interface{}) (string, er... function New (line 22) | func New(config ...*Config) *I18n { function prepareConfig (line 28) | func prepareConfig(config ...*Config) *Config { method loadMessage (line 47) | func (c *Config) loadMessage(filepath string) { method loadMessages (line 57) | func (c *Config) loadMessages() *Config { method initLocalizerMap (line 66) | func (c *Config) initLocalizerMap() { FILE: v3/i18n/i18n_test.go function newServer (line 18) | func newServer(translator *I18n) *fiber.App { function makeRequest (line 39) | func makeRequest(lang language.Tag, name string, app *fiber.App) (*http.... function TestI18nEN (line 52) | func TestI18nEN(t *testing.T) { function TestI18nZH (line 94) | func TestI18nZH(t *testing.T) { function TestParallelI18n (line 135) | func TestParallelI18n(t *testing.T) { function TestTranslatorConcurrentLocalize (line 185) | func TestTranslatorConcurrentLocalize(t *testing.T) { function TestLocalize (line 231) | func TestLocalize(t *testing.T) { function TestNew_doesNotMutateCallerConfig (line 270) | func TestNew_doesNotMutateCallerConfig(t *testing.T) { function TestLocalize_nilReceiver (line 287) | func TestLocalize_nilReceiver(t *testing.T) { function TestLocalize_unsupportedParamsType (line 295) | func TestLocalize_unsupportedParamsType(t *testing.T) { function TestLocalize_nilLocalizeConfig (line 312) | func TestLocalize_nilLocalizeConfig(t *testing.T) { function TestMustLocalize_panics (line 329) | func TestMustLocalize_panics(t *testing.T) { function Test_defaultLangHandler (line 343) | func Test_defaultLangHandler(t *testing.T) { FILE: v3/jwt/config.go type Config (line 25) | type Config struct type SigningKey (line 79) | type SigningKey struct function makeCfg (line 92) | func makeCfg(config []Config) (cfg Config) { function multiKeyfunc (line 168) | func multiKeyfunc(givenKeys map[string]keyfunc.GivenKey, jwkSetURLs []st... function keyfuncOptions (line 184) | func keyfuncOptions(givenKeys map[string]keyfunc.GivenKey) keyfunc.Optio... function signingKeyFunc (line 197) | func signingKeyFunc(key SigningKey) jwt.Keyfunc { FILE: v3/jwt/config_test.go function TestPanicOnMissingConfiguration (line 13) | func TestPanicOnMissingConfiguration(t *testing.T) { function TestDefaultConfiguration (line 30) | func TestDefaultConfiguration(t *testing.T) { function TestCustomExtractor (line 48) | func TestCustomExtractor(t *testing.T) { function TestPanicOnInvalidSigningKey (line 67) | func TestPanicOnInvalidSigningKey(t *testing.T) { function TestPanicOnInvalidSigningKeys (line 75) | func TestPanicOnInvalidSigningKeys(t *testing.T) { function TestPanicOnInvalidJWKSetURLs (line 85) | func TestPanicOnInvalidJWKSetURLs(t *testing.T) { function TestCustomClaims (line 94) | func TestCustomClaims(t *testing.T) { function TestTokenProcessorFunc_Configured (line 116) | func TestTokenProcessorFunc_Configured(t *testing.T) { function TestPanicOnUnsupportedJWKSetURLScheme (line 138) | func TestPanicOnUnsupportedJWKSetURLScheme(t *testing.T) { FILE: v3/jwt/crypto.go constant HS256 (line 5) | HS256 = "HS256" constant HS384 (line 8) | HS384 = "HS384" constant HS512 (line 11) | HS512 = "HS512" constant ES256 (line 14) | ES256 = "ES256" constant ES384 (line 17) | ES384 = "ES384" constant ES512 (line 20) | ES512 = "ES512" constant P256 (line 23) | P256 = "P-256" constant P384 (line 26) | P384 = "P-384" constant P521 (line 29) | P521 = "P-521" constant RS256 (line 32) | RS256 = "RS256" constant RS384 (line 35) | RS384 = "RS384" constant RS512 (line 38) | RS512 = "RS512" constant PS256 (line 41) | PS256 = "PS256" constant PS384 (line 44) | PS384 = "PS384" constant PS512 (line 47) | PS512 = "PS512" FILE: v3/jwt/jwt.go type contextKey (line 17) | type contextKey constant tokenKey (line 21) | tokenKey contextKey = iota function New (line 25) | func New(config ...Config) fiber.Handler { function FromContext (line 66) | func FromContext(ctx any) *jwt.Token { FILE: v3/jwt/jwt_test.go type TestToken (line 22) | type TestToken struct constant defaultSigningKey (line 75) | defaultSigningKey = "secret" constant defaultKeySet (line 76) | defaultKeySet = ` function TestJwtTokenProcessorFunc (line 111) | func TestJwtTokenProcessorFunc(t *testing.T) { function TestJwtFromHeader (line 152) | func TestJwtFromHeader(t *testing.T) { function TestJwtFromCookie (line 248) | func TestJwtFromCookie(t *testing.T) { function TestJwkFromServer (line 292) | func TestJwkFromServer(t *testing.T) { function TestJwkFromServers (line 346) | func TestJwkFromServers(t *testing.T) { function TestCustomKeyfunc (line 406) | func TestCustomKeyfunc(t *testing.T) { function TestMultiKeys (line 439) | func TestMultiKeys(t *testing.T) { function customKeyfunc (line 498) | func customKeyfunc() jwt.Keyfunc { function TestFromContext (line 509) | func TestFromContext(t *testing.T) { function TestCustomErrorHandler (line 550) | func TestCustomErrorHandler(t *testing.T) { function TestCustomSuccessHandler (line 583) | func TestCustomSuccessHandler(t *testing.T) { function TestNextFunction (line 620) | func TestNextFunction(t *testing.T) { function TestInvalidSigningKey (line 657) | func TestInvalidSigningKey(t *testing.T) { function TestFromContextWithoutToken (line 668) | func TestFromContextWithoutToken(t *testing.T) { function TestMalformedToken (line 692) | func TestMalformedToken(t *testing.T) { function TestTokenProcessorFuncError (line 717) | func TestTokenProcessorFuncError(t *testing.T) { function TestFromContext_PassLocalsToContext (line 745) | func TestFromContext_PassLocalsToContext(t *testing.T) { FILE: v3/loadshed/cpu.go type LoadCriteria (line 16) | type LoadCriteria interface type CPULoadCriteria (line 22) | type CPULoadCriteria struct method startSampler (line 38) | func (c *CPULoadCriteria) startSampler() { method sample (line 94) | func (c *CPULoadCriteria) sample(ctx context.Context, interval time.Du... method Stop (line 127) | func (c *CPULoadCriteria) Stop() { method Metric (line 144) | func (c *CPULoadCriteria) Metric(ctx context.Context) (float64, error) { method ShouldShed (line 163) | func (c *CPULoadCriteria) ShouldShed(metric float64) bool { constant minSamplerSleep (line 36) | minSamplerSleep = 100 * time.Millisecond type CPUPercentGetter (line 174) | type CPUPercentGetter interface type DefaultCPUPercentGetter (line 178) | type DefaultCPUPercentGetter struct method PercentWithContext (line 180) | func (*DefaultCPUPercentGetter) PercentWithContext(ctx context.Context... FILE: v3/loadshed/loadshed.go type Config (line 9) | type Config struct function configWithDefaults (line 34) | func configWithDefaults(config ...Config) Config { function New (line 78) | func New(config ...Config) fiber.Handler { FILE: v3/loadshed/loadshed_test.go function waitForSample (line 22) | func waitForSample(t *testing.T, criteria *CPULoadCriteria) { type MockCPUPercentGetter (line 45) | type MockCPUPercentGetter struct method PercentWithContext (line 49) | func (m *MockCPUPercentGetter) PercentWithContext(_ context.Context, _... type PanickingGetter (line 54) | type PanickingGetter struct method PercentWithContext (line 56) | func (*PanickingGetter) PercentWithContext(_ context.Context, _ time.D... type ErrorGetter (line 61) | type ErrorGetter struct method PercentWithContext (line 63) | func (*ErrorGetter) PercentWithContext(_ context.Context, _ time.Durat... type EmptyGetter (line 68) | type EmptyGetter struct method PercentWithContext (line 70) | func (*EmptyGetter) PercentWithContext(_ context.Context, _ time.Durat... function ReturnOK (line 74) | func ReturnOK(c fiber.Ctx) error { function Test_Loadshed_LowerThreshold (line 78) | func Test_Loadshed_LowerThreshold(t *testing.T) { function Test_Loadshed_DefaultCriteriaWhenNil (line 104) | func Test_Loadshed_DefaultCriteriaWhenNil(t *testing.T) { function Test_Loadshed_DefaultCriteriaNoArgs (line 118) | func Test_Loadshed_DefaultCriteriaNoArgs(t *testing.T) { function Test_Loadshed_MiddleValue (line 132) | func Test_Loadshed_MiddleValue(t *testing.T) { function Test_Loadshed_UpperThreshold (line 170) | func Test_Loadshed_UpperThreshold(t *testing.T) { function Test_Loadshed_CustomOnShed (line 192) | func Test_Loadshed_CustomOnShed(t *testing.T) { function Test_Loadshed_CustomOnShedWithResponse (line 218) | func Test_Loadshed_CustomOnShedWithResponse(t *testing.T) { function Test_Loadshed_CustomOnShedWithNilReturn (line 247) | func Test_Loadshed_CustomOnShedWithNilReturn(t *testing.T) { function Test_Loadshed_CustomOnShedWithCustomError (line 275) | func Test_Loadshed_CustomOnShedWithCustomError(t *testing.T) { function Test_Loadshed_CustomOnShedWithResponseAndCustomError (line 303) | func Test_Loadshed_CustomOnShedWithResponseAndCustomError(t *testing.T) { function Test_Loadshed_CustomOnShedWithJSON (line 344) | func Test_Loadshed_CustomOnShedWithJSON(t *testing.T) { function Test_Loadshed_TypedNilCriteria (line 376) | func Test_Loadshed_TypedNilCriteria(t *testing.T) { function Test_CPULoadCriteria_StopBeforeStart (line 393) | func Test_CPULoadCriteria_StopBeforeStart(t *testing.T) { function Test_CPULoadCriteria_PanickingGetter (line 412) | func Test_CPULoadCriteria_PanickingGetter(t *testing.T) { function Test_CPULoadCriteria_ErrorGetter (line 433) | func Test_CPULoadCriteria_ErrorGetter(t *testing.T) { function Test_CPULoadCriteria_EmptyGetter (line 451) | func Test_CPULoadCriteria_EmptyGetter(t *testing.T) { function Test_CPULoadCriteria_MetricCancelledContext (line 469) | func Test_CPULoadCriteria_MetricCancelledContext(t *testing.T) { FILE: v3/monitor/config.go type Config (line 10) | type Config struct function configDefault (line 66) | func configDefault(config ...Config) Config { FILE: v3/monitor/config_test.go function Test_Config_Default (line 11) | func Test_Config_Default(t *testing.T) { FILE: v3/monitor/index.go type viewBag (line 10) | type viewBag struct function newIndex (line 19) | func newIndex(dat viewBag) string { constant defaultTitle (line 32) | defaultTitle = "Fiber Monitor" constant defaultRefresh (line 34) | defaultRefresh = 3 * time.Second constant timeoutDiff (line 35) | timeoutDiff = 200 constant minRefresh (line 36) | minRefresh = timeoutDiff * time.Millisecond constant defaultFontURL (line 37) | defaultFontURL = `https://fonts.googleapis.com/css2?family=Roboto:wgh... constant defaultChartJSURL (line 38) | defaultChartJSURL = `https://cdn.jsdelivr.net/npm/chart.js@2.9/dist/Char... constant defaultCustomHead (line 39) | defaultCustomHead = `` constant indexHTML (line 42) | indexHTML = ` FILE: v3/monitor/monitor.go type stats (line 18) | type stats struct type statsPID (line 23) | type statsPID struct type statsOS (line 29) | type statsOS struct function New (line 56) | func New(config ...Config) fiber.Handler { function updateStatistics (line 105) | func updateStatistics(p *process.Process, numcpu int) { FILE: v3/monitor/monitor_test.go function Test_Monitor_405 (line 17) | func Test_Monitor_405(t *testing.T) { function Test_Monitor_Html (line 29) | func Test_Monitor_Html(t *testing.T) { function Test_Monitor_Html_CustomCodes (line 66) | func Test_Monitor_Html_CustomCodes(t *testing.T) { function Test_Monitor_JSON (line 114) | func Test_Monitor_JSON(t *testing.T) { function Benchmark_Monitor (line 135) | func Benchmark_Monitor(b *testing.B) { function Test_Monitor_Next (line 163) | func Test_Monitor_Next(t *testing.T) { function Test_Monitor_APIOnly (line 180) | func Test_Monitor_APIOnly(t *testing.T) { FILE: v3/newrelic/fiber.go type contextKey (line 18) | type contextKey constant transactionKey (line 21) | transactionKey contextKey = iota type Config (line 24) | type Config struct function New (line 59) | func New(cfg Config) fiber.Handler { function FromContext (line 124) | func FromContext(ctx any) *newrelic.Transaction { function createTransactionName (line 136) | func createTransactionName(c fiber.Ctx) string { function createWebRequest (line 140) | func createWebRequest(c fiber.Ctx, host, method, scheme string, filter f... function transport (line 167) | func transport(schema string) newrelic.TransportType { function DefaultErrorStatusCodeHandler (line 179) | func DefaultErrorStatusCodeHandler(c fiber.Ctx, err error) int { FILE: v3/newrelic/fiber_test.go function TestNewRelicAppConfig (line 15) | func TestNewRelicAppConfig(t *testing.T) { function TestDefaultErrorStatusCodeHandler (line 355) | func TestDefaultErrorStatusCodeHandler(t *testing.T) { function TestFromContext (line 394) | func TestFromContext(t *testing.T) { function TestCreateWebRequest (line 426) | func TestCreateWebRequest(t *testing.T) { function TestFromContext_PassLocalsToContext (line 469) | func TestFromContext_PassLocalsToContext(t *testing.T) { FILE: v3/opa/fiber.go type InputCreationFunc (line 13) | type InputCreationFunc type Config (line 15) | type Config struct method fillAndValidate (line 80) | func (c *Config) fillAndValidate() error { function New (line 25) | func New(cfg Config) fiber.Handler { function defaultInput (line 100) | func defaultInput(ctx fiber.Ctx) (map[string]interface{}, error) { FILE: v3/opa/fiber_test.go function TestPanicWhenRegoQueryEmpty (line 15) | func TestPanicWhenRegoQueryEmpty(t *testing.T) { function TestDefaultDeniedStatusCode400WhenConfigDeniedStatusCodeEmpty (line 23) | func TestDefaultDeniedStatusCode400WhenConfigDeniedStatusCodeEmpty(t *te... function TestOpaNotAllowedRegoPolicyShouldReturnConfigDeniedStatusCode (line 54) | func TestOpaNotAllowedRegoPolicyShouldReturnConfigDeniedStatusCode(t *te... function TestOpaRequestMethodRegoPolicyShouldReturnConfigDeniedStatusCode (line 86) | func TestOpaRequestMethodRegoPolicyShouldReturnConfigDeniedStatusCode(t ... function TestOpaRequestPathRegoPolicyShouldReturnOK (line 120) | func TestOpaRequestPathRegoPolicyShouldReturnOK(t *testing.T) { function TestOpaQueryStringRegoPolicyShouldReturnOK (line 154) | func TestOpaQueryStringRegoPolicyShouldReturnOK(t *testing.T) { function TestOpaRequestHeadersRegoPolicyShouldReturnOK (line 191) | func TestOpaRequestHeadersRegoPolicyShouldReturnOK(t *testing.T) { function TestOpaRequestWithCustomInput (line 230) | func TestOpaRequestWithCustomInput(t *testing.T) { function TestOpaRequestWithCustomInputError (line 270) | func TestOpaRequestWithCustomInputError(t *testing.T) { function TestFillAndValidate (line 308) | func TestFillAndValidate(t *testing.T) { FILE: v3/otel/config.go type config (line 12) | type config struct type Option (line 26) | type Option interface type optionFunc (line 30) | type optionFunc method apply (line 32) | func (o optionFunc) apply(c *config) { function WithNext (line 38) | func WithNext(f func(ctx fiber.Ctx) bool) Option { function WithPropagators (line 47) | func WithPropagators(propagators propagation.TextMapPropagator) Option { function WithTracerProvider (line 55) | func WithTracerProvider(provider oteltrace.TracerProvider) Option { function WithMeterProvider (line 63) | func WithMeterProvider(provider otelmetric.MeterProvider) Option { function WithSpanNameFormatter (line 71) | func WithSpanNameFormatter(f func(ctx fiber.Ctx) string) Option { function WithPort (line 80) | func WithPort(port int) Option { function WithCustomAttributes (line 88) | func WithCustomAttributes(f func(ctx fiber.Ctx) []attribute.KeyValue) Op... function WithCustomMetricAttributes (line 96) | func WithCustomMetricAttributes(f func(ctx fiber.Ctx) []attribute.KeyVal... function WithClientIP (line 104) | func WithClientIP(collect bool) Option { function WithCollectClientIP (line 112) | func WithCollectClientIP(collect bool) Option { function WithoutMetrics (line 117) | func WithoutMetrics(withoutMetrics bool) Option { FILE: v3/otel/example/server.go function main (line 26) | func main() { function initTracer (line 56) | func initTracer() *sdktrace.TracerProvider { function getUser (line 76) | func getUser(ctx context.Context, id string) string { FILE: v3/otel/fiber.go constant tracerKey (line 26) | tracerKey = "gofiber-contrib-tracer-fiber" constant instrumentationName (line 27) | instrumentationName = "github.com/gofiber/contrib/v3/otel" constant MetricNameHTTPServerRequestDuration (line 29) | MetricNameHTTPServerRequestDuration = "http.server.request.duration" constant MetricNameHTTPServerRequestBodySize (line 30) | MetricNameHTTPServerRequestBodySize = "http.server.request.body.size" constant MetricNameHTTPServerResponseBodySize (line 31) | MetricNameHTTPServerResponseBodySize = "http.server.response.body.size" constant MetricNameHTTPServerActiveRequests (line 32) | MetricNameHTTPServerActiveRequests = "http.server.active_requests" constant UnitDimensionless (line 35) | UnitDimensionless = "1" constant UnitBytes (line 36) | UnitBytes = "By" constant UnitSeconds (line 37) | UnitSeconds = "s" constant MetricNameHttpServerDuration (line 40) | MetricNameHttpServerDuration = MetricNameHTTPServerRequestDuration constant MetricNameHttpServerRequestSize (line 42) | MetricNameHttpServerRequestSize = MetricNameHTTPServerRequestBodySize constant MetricNameHttpServerResponseSize (line 44) | MetricNameHttpServerResponseSize = MetricNameHTTPServerResponseBodySize constant MetricNameHttpServerActiveRequests (line 46) | MetricNameHttpServerActiveRequests = MetricNameHTTPServerActiveRequests constant UnitMilliseconds (line 49) | UnitMilliseconds = "ms" type bodyStreamSizeReader (line 52) | type bodyStreamSizeReader struct method Read (line 59) | func (b *bodyStreamSizeReader) Read(p []byte) (n int, err error) { method Close (line 74) | func (b *bodyStreamSizeReader) Close() error { function detachedMetricContext (line 83) | func detachedMetricContext(ctx context.Context) context.Context { function Middleware (line 98) | func Middleware(opts ...Option) fiber.Handler { function defaultSpanNameFormatter (line 292) | func defaultSpanNameFormatter(ctx fiber.Ctx) string { FILE: v3/otel/fiber_context_test.go function TestMiddleware_StoreTracerInContextWithPassLocalsToContext (line 13) | func TestMiddleware_StoreTracerInContextWithPassLocalsToContext(t *testi... FILE: v3/otel/internal/http.go function SpanStatusFromHTTPStatusCodeAndSpanKind (line 14) | func SpanStatusFromHTTPStatusCodeAndSpanKind(code int, spanKind trace.Sp... function isCode4xx (line 27) | func isCode4xx(code int) bool { FILE: v3/otel/internal/http_test.go function TestIsCode4xxIsNotValid (line 11) | func TestIsCode4xxIsNotValid(t *testing.T) { function TestIsCode4xxIsValid (line 17) | func TestIsCode4xxIsValid(t *testing.T) { function TestStatusErrorWithMessage (line 23) | func TestStatusErrorWithMessage(t *testing.T) { function TestStatusErrorWithMessageForIgnoredHTTPCode (line 30) | func TestStatusErrorWithMessageForIgnoredHTTPCode(t *testing.T) { function TestStatusErrorWhenHTTPCode5xx (line 37) | func TestStatusErrorWhenHTTPCode5xx(t *testing.T) { function TestStatusUnsetWhenServerSpanAndBadRequest (line 44) | func TestStatusUnsetWhenServerSpanAndBadRequest(t *testing.T) { function TestStatusUnset (line 51) | func TestStatusUnset(t *testing.T) { FILE: v3/otel/otel_test/fiber_test.go constant instrumentationName (line 34) | instrumentationName = "github.com/gofiber/contrib/v3/otel" function TestChildSpanFromGlobalTracer (line 36) | func TestChildSpanFromGlobalTracer(t *testing.T) { function TestChildSpanFromCustomTracer (line 55) | func TestChildSpanFromCustomTracer(t *testing.T) { function TestSkipWithNext (line 74) | func TestSkipWithNext(t *testing.T) { function TestTrace200 (line 96) | func TestTrace200(t *testing.T) { function TestError (line 134) | func TestError(t *testing.T) { function TestErrorOnlyHandledOnce (line 164) | func TestErrorOnlyHandledOnce(t *testing.T) { function TestGetSpanNotInstrumented (line 183) | func TestGetSpanNotInstrumented(t *testing.T) { function TestPropagationWithGlobalPropagators (line 201) | func TestPropagationWithGlobalPropagators(t *testing.T) { function TestPropagationWithCustomPropagators (line 232) | func TestPropagationWithCustomPropagators(t *testing.T) { function TestHasBasicAuth (line 261) | func TestHasBasicAuth(t *testing.T) { function TestMetric (line 297) | func TestMetric(t *testing.T) { function assertScopeMetrics (line 341) | func assertScopeMetrics(t *testing.T, sm metricdata.ScopeMetrics, route ... function getHistogram (line 393) | func getHistogram(value float64, attrs []attribute.KeyValue) metricdata.... function TestCustomAttributes (line 427) | func TestCustomAttributes(t *testing.T) { function TestCustomMetricAttributes (line 471) | func TestCustomMetricAttributes(t *testing.T) { function TestOutboundTracingPropagation (line 523) | func TestOutboundTracingPropagation(t *testing.T) { function TestOutboundTracingPropagationWithInboundContext (line 546) | func TestOutboundTracingPropagationWithInboundContext(t *testing.T) { function TestCollectClientIP (line 577) | func TestCollectClientIP(t *testing.T) { function TestMiddlewarePreservesUserContext (line 631) | func TestMiddlewarePreservesUserContext(t *testing.T) { function TestWithoutMetrics (line 664) | func TestWithoutMetrics(t *testing.T) { function TestWithoutMetricsWithStreamResponse (line 694) | func TestWithoutMetricsWithStreamResponse(t *testing.T) { function TestResponseBodySizeWithStream (line 724) | func TestResponseBodySizeWithStream(t *testing.T) { FILE: v3/otel/semconv.go function httpServerMetricAttributesFromRequest (line 20) | func httpServerMetricAttributesFromRequest(c fiber.Ctx, cfg config) []at... function httpServerTraceAttributesFromRequest (line 40) | func httpServerTraceAttributesFromRequest(c fiber.Ctx, cfg config) []att... function httpNetworkProtocolAttributes (line 80) | func httpNetworkProtocolAttributes(c fiber.Ctx) []attribute.KeyValue { function requestScheme (line 88) | func requestScheme(c fiber.Ctx) string { function HasBasicAuth (line 97) | func HasBasicAuth(auth string) (string, bool) { FILE: v3/paseto/config.go type Config (line 18) | type Config struct function defaultErrorHandler (line 70) | func defaultErrorHandler(c fiber.Ctx, err error) error { function defaultValidateFunc (line 79) | func defaultValidateFunc(data []byte) (interface{}, error) { function configDefault (line 99) | func configDefault(authConfigs ...Config) Config { FILE: v3/paseto/config_test.go function assertRecoveryPanic (line 12) | func assertRecoveryPanic(t *testing.T) { function Test_Config_No_SymmetricKey (line 17) | func Test_Config_No_SymmetricKey(t *testing.T) { function Test_Config_Invalid_SymmetricKey (line 24) | func Test_Config_Invalid_SymmetricKey(t *testing.T) { function Test_ConfigDefault (line 31) | func Test_ConfigDefault(t *testing.T) { function Test_ConfigCustomLookup (line 44) | func Test_ConfigCustomLookup(t *testing.T) { FILE: v3/paseto/helpers.go type TokenPurpose (line 11) | type TokenPurpose constant PurposeLocal (line 14) | PurposeLocal TokenPurpose = iota constant PurposePublic (line 15) | PurposePublic type PayloadValidator (line 27) | type PayloadValidator type PayloadCreator (line 30) | type PayloadCreator function CreateToken (line 35) | func CreateToken(key []byte, dataInfo string, duration time.Duration, pu... FILE: v3/paseto/paseto.go type contextKey (line 12) | type contextKey constant payloadKey (line 16) | payloadKey contextKey = iota function New (line 22) | func New(authConfigs ...Config) fiber.Handler { function FromContext (line 67) | func FromContext(ctx any) interface{} { FILE: v3/paseto/paseto_test.go constant testMessage (line 20) | testMessage = "fiber with PASETO middleware!!" constant invalidToken (line 21) | invalidToken = "We are gophers!" constant durationTest (line 22) | durationTest = 10 * time.Minute constant symmetricKey (line 23) | symmetricKey = "go+fiber=love;FiberWithPASETO<3!" constant privateKeySeed (line 24) | privateKeySeed = "e9c67fe2433aa4110caf029eba70df2c822cad226b6300ead3dcae... type customPayload (line 27) | type customPayload struct function createCustomToken (line 33) | func createCustomToken(key []byte, dataInfo string, duration time.Durati... function generateTokenRequest (line 49) | func generateTokenRequest( function getPrivateKey (line 76) | func getPrivateKey() ed25519.PrivateKey { function assertErrorHandler (line 82) | func assertErrorHandler(t *testing.T, toAssert error) fiber.ErrorHandler { function Test_PASETO_LocalToken_MissingToken (line 91) | func Test_PASETO_LocalToken_MissingToken(t *testing.T) { function Test_PASETO_PublicToken_MissingToken (line 104) | func Test_PASETO_PublicToken_MissingToken(t *testing.T) { function Test_PASETO_LocalToken_ErrDataUnmarshal (line 122) | func Test_PASETO_LocalToken_ErrDataUnmarshal(t *testing.T) { function Test_PASETO_PublicToken_ErrDataUnmarshal (line 137) | func Test_PASETO_PublicToken_ErrDataUnmarshal(t *testing.T) { function Test_PASETO_LocalToken_ErrTokenExpired (line 156) | func Test_PASETO_LocalToken_ErrTokenExpired(t *testing.T) { function Test_PASETO_PublicToken_ErrTokenExpired (line 171) | func Test_PASETO_PublicToken_ErrTokenExpired(t *testing.T) { function Test_PASETO_LocalToken_Next (line 191) | func Test_PASETO_LocalToken_Next(t *testing.T) { function Test_PASETO_PublicToken_Next (line 207) | func Test_PASETO_PublicToken_Next(t *testing.T) { function Test_PASETO_LocalTokenDecrypt (line 227) | func Test_PASETO_LocalTokenDecrypt(t *testing.T) { function Test_PASETO_PublicTokenVerify (line 245) | func Test_PASETO_PublicTokenVerify(t *testing.T) { function Test_PASETO_LocalToken_IncorrectBearerToken (line 267) | func Test_PASETO_LocalToken_IncorrectBearerToken(t *testing.T) { function Test_PASETO_PublicToken_IncorrectBearerToken (line 280) | func Test_PASETO_PublicToken_IncorrectBearerToken(t *testing.T) { function Test_PASETO_LocalToken_InvalidToken (line 298) | func Test_PASETO_LocalToken_InvalidToken(t *testing.T) { function Test_PASETO_PublicToken_InvalidToken (line 310) | func Test_PASETO_PublicToken_InvalidToken(t *testing.T) { function Test_PASETO_LocalToken_CustomValidate (line 327) | func Test_PASETO_LocalToken_CustomValidate(t *testing.T) { function Test_PASETO_PublicToken_CustomValidate (line 361) | func Test_PASETO_PublicToken_CustomValidate(t *testing.T) { function Test_PASETO_CustomErrorHandler (line 400) | func Test_PASETO_CustomErrorHandler(t *testing.T) { function Test_PASETO_CustomSuccessHandler (line 425) | func Test_PASETO_CustomSuccessHandler(t *testing.T) { function Test_PASETO_InvalidSymmetricKey (line 454) | func Test_PASETO_InvalidSymmetricKey(t *testing.T) { function Test_PASETO_MissingPublicKey (line 470) | func Test_PASETO_MissingPublicKey(t *testing.T) { function Test_PASETO_MissingPrivateKey (line 488) | func Test_PASETO_MissingPrivateKey(t *testing.T) { function Test_PASETO_BothKeysProvided (line 505) | func Test_PASETO_BothKeysProvided(t *testing.T) { function Test_PASETO_FromContextWithoutToken (line 524) | func Test_PASETO_FromContextWithoutToken(t *testing.T) { function Test_PASETO_CustomValidateError (line 542) | func Test_PASETO_CustomValidateError(t *testing.T) { function Test_PASETO_FromContext_PassLocalsToContext (line 567) | func Test_PASETO_FromContext_PassLocalsToContext(t *testing.T) { FILE: v3/paseto/payload.go constant pasetoTokenAudience (line 11) | pasetoTokenAudience = "gofiber.gophers" constant pasetoTokenSubject (line 12) | pasetoTokenSubject = "user-token" constant pasetoTokenField (line 13) | pasetoTokenField = "data" function NewPayload (line 17) | func NewPayload(userToken string, duration time.Duration) (*paseto.JSONT... FILE: v3/sentry/config.go type contextKey (line 7) | type contextKey constant hubKey (line 10) | hubKey contextKey = iota type Config (line 14) | type Config struct function configDefault (line 40) | func configDefault(config ...Config) Config { FILE: v3/sentry/sentry.go function New (line 13) | func New(config ...Config) fiber.Handler { function MustGetHubFromContext (line 58) | func MustGetHubFromContext(ctx any) *sentry.Hub { function GetHubFromContext (line 69) | func GetHubFromContext(ctx any) *sentry.Hub { FILE: v3/sentry/sentry_test.go type testCase (line 15) | type testCase struct function testCasesBeforeRegister (line 24) | func testCasesBeforeRegister(t *testing.T) []testCase { function Test_Sentry (line 180) | func Test_Sentry(t *testing.T) { function Test_GetHubFromContext_PassLocalsToContext (line 232) | func Test_GetHubFromContext_PassLocalsToContext(t *testing.T) { FILE: v3/socketio/socketio.go constant TextMessage (line 19) | TextMessage = 1 constant BinaryMessage (line 21) | BinaryMessage = 2 constant CloseMessage (line 25) | CloseMessage = 8 constant PingMessage (line 28) | PingMessage = 9 constant PongMessage (line 31) | PongMessage = 10 constant EventMessage (line 37) | EventMessage = "message" constant EventPing (line 40) | EventPing = "ping" constant EventPong (line 41) | EventPong = "pong" constant EventDisconnect (line 46) | EventDisconnect = "disconnect" constant EventConnect (line 48) | EventConnect = "connect" constant EventClose (line 50) | EventClose = "close" constant EventError (line 52) | EventError = "error" type message (line 74) | type message struct type EventPayload (line 86) | type EventPayload struct type ws (line 103) | type ws interface type Websocket (line 127) | type Websocket struct method GetUUID (line 276) | func (kws *Websocket) GetUUID() string { method SetUUID (line 282) | func (kws *Websocket) SetUUID(uuid string) error { method SetAttribute (line 307) | func (kws *Websocket) SetAttribute(key string, attribute interface{}) { method GetAttribute (line 314) | func (kws *Websocket) GetAttribute(key string) interface{} { method GetIntAttribute (line 326) | func (kws *Websocket) GetIntAttribute(key string) int { method GetStringAttribute (line 337) | func (kws *Websocket) GetStringAttribute(key string) string { method EmitToList (line 348) | func (kws *Websocket) EmitToList(uuids []string, message []byte, mType... method EmitTo (line 366) | func (kws *Websocket) EmitTo(uuid string, message []byte, mType ...int... method Broadcast (line 398) | func (kws *Websocket) Broadcast(message []byte, except bool, mType ...... method Fire (line 418) | func (kws *Websocket) Fire(event string, data []byte) { method Emit (line 428) | func (kws *Websocket) Emit(message []byte, mType ...int) { method Close (line 437) | func (kws *Websocket) Close() { method IsAlive (line 442) | func (kws *Websocket) IsAlive() bool { method hasConn (line 448) | func (kws *Websocket) hasConn() bool { method setAlive (line 454) | func (kws *Websocket) setAlive(alive bool) { method queueLength (line 461) | func (kws *Websocket) queueLength() int { method pong (line 468) | func (kws *Websocket) pong(ctx context.Context) { method write (line 482) | func (kws *Websocket) write(messageType int, messageBytes []byte) { method send (line 491) | func (kws *Websocket) send(ctx context.Context) { method run (line 523) | func (kws *Websocket) run() { method read (line 537) | func (kws *Websocket) read(ctx context.Context) { method disconnected (line 580) | func (kws *Websocket) disconnected(err error) { method createUUID (line 602) | func (kws *Websocket) createUUID() string { method randomUUID (line 607) | func (kws *Websocket) randomUUID() string { method fireEvent (line 620) | func (kws *Websocket) fireEvent(event string, data []byte, error error) { type safePool (line 153) | type safePool struct method set (line 164) | func (p *safePool) set(ws ws) { method all (line 170) | func (p *safePool) all() map[string]ws { method get (line 180) | func (p *safePool) get(key string) (ws, error) { method contains (line 190) | func (p *safePool) contains(key string) bool { method delete (line 197) | func (p *safePool) delete(key string) { method reset (line 204) | func (p *safePool) reset() { type safeListeners (line 210) | type safeListeners struct method set (line 215) | func (l *safeListeners) set(event string, callback eventCallback) { method get (line 221) | func (l *safeListeners) get(event string) []eventCallback { function New (line 238) | func New(callback func(kws *Websocket), config ...websocket.Config) func... function EmitToList (line 359) | func EmitToList(uuids []string, message []byte, mType ...int) { function EmitTo (line 382) | func EmitTo(uuid string, message []byte, mType ...int) error { function Broadcast (line 411) | func Broadcast(message []byte, mType ...int) { function Fire (line 423) | func Fire(event string, data []byte) { function fireGlobalEvent (line 612) | func fireGlobalEvent(event string, data []byte, error error) { type eventCallback (line 635) | type eventCallback function On (line 638) | func On(event string, callback eventCallback) { FILE: v3/socketio/socketio_test.go constant numTestConn (line 20) | numTestConn = 10 constant numParallelTestConn (line 21) | numParallelTestConn = 5_000 type HandlerMock (line 23) | type HandlerMock struct method OnCustomEvent (line 77) | func (h *HandlerMock) OnCustomEvent(payload *EventPayload) { type WebsocketMock (line 28) | type WebsocketMock struct method SetUUID (line 43) | func (s *WebsocketMock) SetUUID(uuid string) error { method GetIntAttribute (line 55) | func (s *WebsocketMock) GetIntAttribute(key string) int { method GetStringAttribute (line 67) | func (s *WebsocketMock) GetStringAttribute(key string) string { method Emit (line 82) | func (s *WebsocketMock) Emit(message []byte, _ ...int) { method IsAlive (line 87) | func (s *WebsocketMock) IsAlive() bool { method GetUUID (line 92) | func (s *WebsocketMock) GetUUID() string { method SetAttribute (line 400) | func (s *WebsocketMock) SetAttribute(_ string, _ interface{}) { method GetAttribute (line 404) | func (s *WebsocketMock) GetAttribute(_ string) interface{} { method EmitToList (line 408) | func (s *WebsocketMock) EmitToList(_ []string, _ []byte, _ ...int) { method EmitTo (line 412) | func (s *WebsocketMock) EmitTo(_ string, _ []byte, _ ...int) error { method Broadcast (line 416) | func (s *WebsocketMock) Broadcast(_ []byte, _ bool, _ ...int) { method Fire (line 420) | func (s *WebsocketMock) Fire(_ string, _ []byte) { method Close (line 424) | func (s *WebsocketMock) Close() { method pong (line 428) | func (s *WebsocketMock) pong(_ context.Context) { method write (line 432) | func (s *WebsocketMock) write(_ int, _ []byte) { method run (line 436) | func (s *WebsocketMock) run() { method read (line 440) | func (s *WebsocketMock) read(_ context.Context) { method disconnected (line 444) | func (s *WebsocketMock) disconnected(_ error) { method createUUID (line 448) | func (s *WebsocketMock) createUUID() string { method randomUUID (line 452) | func (s *WebsocketMock) randomUUID() string { method fireEvent (line 456) | func (s *WebsocketMock) fireEvent(_ string, _ []byte, _ error) { function TestParallelConnections (line 96) | func TestParallelConnections(t *testing.T) { function TestGlobalFire (line 170) | func TestGlobalFire(t *testing.T) { function TestGlobalBroadcast (line 198) | func TestGlobalBroadcast(t *testing.T) { function TestGlobalEmitTo (line 222) | func TestGlobalEmitTo(t *testing.T) { function TestGlobalEmitToList (line 259) | func TestGlobalEmitToList(t *testing.T) { function TestWebsocket_GetIntAttribute (line 285) | func TestWebsocket_GetIntAttribute(t *testing.T) { function TestWebsocket_GetStringAttribute (line 303) | func TestWebsocket_GetStringAttribute(t *testing.T) { function TestWebsocket_SetUUIDUpdatesPool (line 319) | func TestWebsocket_SetUUIDUpdatesPool(t *testing.T) { function assertPanic (line 352) | func assertPanic(t *testing.T, f func()) { function createWS (line 361) | func createWS() *Websocket { function upgradeMiddleware (line 386) | func upgradeMiddleware(c fiber.Ctx) error { FILE: v3/swaggerui/swagger.go type Config (line 19) | type Config struct function New (line 81) | func New(config ...Config) fiber.Handler { FILE: v3/swaggerui/swagger_test.go function performRequest (line 20) | func performRequest(method, target string, app *fiber.App) *http.Response { function TestNew (line 26) | func TestNew(t *testing.T) { function TestNewWithFileContent (line 270) | func TestNewWithFileContent(t *testing.T) { FILE: v3/swaggo/config.go type Config (line 8) | type Config struct type FilterConfig (line 188) | type FilterConfig struct method Value (line 193) | func (fc FilterConfig) Value() interface{} { type SyntaxHighlightConfig (line 200) | type SyntaxHighlightConfig struct method Value (line 210) | func (shc SyntaxHighlightConfig) Value() interface{} { type OAuthConfig (line 217) | type OAuthConfig struct function configDefault (line 281) | func configDefault(config ...Config) Config { FILE: v3/swaggo/index.go constant indexTmpl (line 3) | indexTmpl string = ` FILE: v3/swaggo/swagger.go constant defaultDocURL (line 20) | defaultDocURL = "doc.json" constant defaultIndex (line 21) | defaultIndex = "index.html" function New (line 27) | func New(config ...Config) fiber.Handler { function getForwardedPrefix (line 116) | func getForwardedPrefix(c fiber.Ctx) string { FILE: v3/swaggo/swagger_test.go type mockedSwag (line 13) | type mockedSwag struct method ReadDoc (line 15) | func (s *mockedSwag) ReadDoc() string { function Test_Swagger (line 43) | func Test_Swagger(t *testing.T) { function Test_Swagger_Proxy_Redirect (line 128) | func Test_Swagger_Proxy_Redirect(t *testing.T) { FILE: v3/testcontainers/config.go type Config (line 10) | type Config struct function NewModuleConfig (line 35) | func NewModuleConfig[T tc.Container]( function NewContainerConfig (line 59) | func NewContainerConfig(serviceKey string, img string, opts ...tc.Contai... FILE: v3/testcontainers/examples_test.go function ExampleAddService_fromContainer (line 15) | func ExampleAddService_fromContainer() { function ExampleAddService_fromModule (line 51) | func ExampleAddService_fromModule() { FILE: v3/testcontainers/testcontainers.go constant serviceSuffix (line 15) | serviceSuffix = " (using testcontainers-go)" constant fiberContainerLabel (line 18) | fiberContainerLabel = "org.testcontainers.golang.framework" constant fiberContainerLabelValue (line 21) | fiberContainerLabelValue = "Go Fiber" function buildKey (line 43) | func buildKey(key string) string { type ContainerService (line 57) | type ContainerService struct method Key (line 86) | func (c *ContainerService[T]) Key() string { method Container (line 93) | func (c *ContainerService[T]) Container() T { method Start (line 104) | func (c *ContainerService[T]) Start(ctx context.Context) error { method String (line 127) | func (c *ContainerService[T]) String() string { method State (line 133) | func (c *ContainerService[T]) State(ctx context.Context) (string, error) { method Terminate (line 151) | func (c *ContainerService[T]) Terminate(ctx context.Context) error { function AddService (line 181) | func AddService[T tc.Container](cfg *fiber.Config, containerConfig Confi... FILE: v3/testcontainers/testcontainers_test.go constant nginxAlpineImg (line 17) | nginxAlpineImg = "nginx:alpine" constant redisAlpineImg (line 18) | redisAlpineImg = "redis:alpine" constant postgresAlpineImg (line 19) | postgresAlpineImg = "postgres:alpine" function TestAddService_fromContainerConfig (line 22) | func TestAddService_fromContainerConfig(t *testing.T) { function TestAddService_fromModuleConfig (line 63) | func TestAddService_fromModuleConfig(t *testing.T) { function TestContainerService (line 114) | func TestContainerService(t *testing.T) { FILE: v3/testcontainers/testcontainers_unit_test.go function Test_buildKey (line 12) | func Test_buildKey(t *testing.T) { function Test_ContainersService_Start (line 26) | func Test_ContainersService_Start(t *testing.T) { FILE: v3/websocket/websocket.go type Config (line 23) | type Config struct function defaultRecover (line 73) | func defaultRecover(c *Conn) { function New (line 84) | func New(handler func(*Conn), config ...Config) fiber.Handler { type Conn (line 196) | type Conn struct method Locals (line 232) | func (conn *Conn) Locals(key string, value ...interface{}) interface{} { method Params (line 243) | func (conn *Conn) Params(key string, defaultValue ...string) string { method Query (line 254) | func (conn *Conn) Query(key string, defaultValue ...string) string { method Cookies (line 265) | func (conn *Conn) Cookies(key string, defaultValue ...string) string { method Headers (line 277) | func (conn *Conn) Headers(key string, defaultValue ...string) string { method IP (line 290) | func (conn *Conn) IP() string { function acquireConn (line 214) | func acquireConn() *Conn { function releaseConn (line 225) | func releaseConn(conn *Conn) { constant CloseNormalClosure (line 298) | CloseNormalClosure = 1000 constant CloseGoingAway (line 299) | CloseGoingAway = 1001 constant CloseProtocolError (line 300) | CloseProtocolError = 1002 constant CloseUnsupportedData (line 301) | CloseUnsupportedData = 1003 constant CloseNoStatusReceived (line 302) | CloseNoStatusReceived = 1005 constant CloseAbnormalClosure (line 303) | CloseAbnormalClosure = 1006 constant CloseInvalidFramePayloadData (line 304) | CloseInvalidFramePayloadData = 1007 constant ClosePolicyViolation (line 305) | ClosePolicyViolation = 1008 constant CloseMessageTooBig (line 306) | CloseMessageTooBig = 1009 constant CloseMandatoryExtension (line 307) | CloseMandatoryExtension = 1010 constant CloseInternalServerErr (line 308) | CloseInternalServerErr = 1011 constant CloseServiceRestart (line 309) | CloseServiceRestart = 1012 constant CloseTryAgainLater (line 310) | CloseTryAgainLater = 1013 constant CloseTLSHandshake (line 311) | CloseTLSHandshake = 1015 constant TextMessage (line 318) | TextMessage = 1 constant BinaryMessage (line 321) | BinaryMessage = 2 constant CloseMessage (line 326) | CloseMessage = 8 constant PingMessage (line 330) | PingMessage = 9 constant PongMessage (line 334) | PongMessage = 10 function FormatCloseMessage (line 351) | func FormatCloseMessage(closeCode int, text string) []byte { function IsCloseError (line 357) | func IsCloseError(err error, codes ...int) bool { function IsUnexpectedCloseError (line 363) | func IsUnexpectedCloseError(err error, expectedCodes ...int) bool { function IsWebSocketUpgrade (line 369) | func IsWebSocketUpgrade(c fiber.Ctx) bool { function JoinMessages (line 376) | func JoinMessages(c *websocket.Conn, term string) io.Reader { FILE: v3/websocket/websocket_test.go function TestWebSocketMiddlewareDefaultConfig (line 15) | func TestWebSocketMiddlewareDefaultConfig(t *testing.T) { function TestWebSocketMiddlewareConfigOrigin (line 31) | func TestWebSocketMiddlewareConfigOrigin(t *testing.T) { function TestWebSocketMiddlewareBufferSize (line 164) | func TestWebSocketMiddlewareBufferSize(t *testing.T) { function TestWebSocketConnParams (line 183) | func TestWebSocketConnParams(t *testing.T) { function TestWebSocketConnQuery (line 211) | func TestWebSocketConnQuery(t *testing.T) { function TestWebSocketConnHeaders (line 239) | func TestWebSocketConnHeaders(t *testing.T) { function TestWebSocketConnCookies (line 273) | func TestWebSocketConnCookies(t *testing.T) { function TestWebSocketConnLocals (line 305) | func TestWebSocketConnLocals(t *testing.T) { function TestWebSocketConnIP (line 331) | func TestWebSocketConnIP(t *testing.T) { function TestWebSocketConnIPSafeCopy (line 358) | func TestWebSocketConnIPSafeCopy(t *testing.T) { function TestWebSocketCompressionAfterHandlerReturns (line 386) | func TestWebSocketCompressionAfterHandlerReturns(t *testing.T) { function setupTestApp (line 429) | func setupTestApp(cfg Config, h func(c *Conn)) *fiber.App { function TestWebSocketIsCloseError (line 479) | func TestWebSocketIsCloseError(t *testing.T) { function TestWebSocketIsUnexpectedCloseError (line 486) | func TestWebSocketIsUnexpectedCloseError(t *testing.T) { function TestWebSocketFormatCloseMessage (line 493) | func TestWebSocketFormatCloseMessage(t *testing.T) { function TestWebsocketRecoverDefaultHandlerShouldNotPanic (line 499) | func TestWebsocketRecoverDefaultHandlerShouldNotPanic(t *testing.T) { function TestWebsocketRecoverCustomHandlerShouldNotPanic (line 517) | func TestWebsocketRecoverCustomHandlerShouldNotPanic(t *testing.T) { FILE: v3/zap/config.go type Config (line 10) | type Config struct function configDefault (line 87) | func configDefault(config ...Config) Config { FILE: v3/zap/logger.go type LoggerConfig (line 16) | type LoggerConfig struct method WithContext (line 40) | func (l *LoggerConfig) WithContext(ctx context.Context) fiberlog.Commo... method SetOutput (line 130) | func (l *LoggerConfig) SetOutput(w io.Writer) { method SetLevel (line 147) | func (l *LoggerConfig) SetLevel(lv fiberlog.Level) { method Logf (line 180) | func (l *LoggerConfig) Logf(level fiberlog.Level, format string, kvs .... method Trace (line 198) | func (l *LoggerConfig) Trace(v ...interface{}) { method Debug (line 202) | func (l *LoggerConfig) Debug(v ...interface{}) { method Info (line 206) | func (l *LoggerConfig) Info(v ...interface{}) { method Warn (line 210) | func (l *LoggerConfig) Warn(v ...interface{}) { method Error (line 214) | func (l *LoggerConfig) Error(v ...interface{}) { method Fatal (line 218) | func (l *LoggerConfig) Fatal(v ...interface{}) { method Panic (line 222) | func (l *LoggerConfig) Panic(v ...interface{}) { method Tracef (line 226) | func (l *LoggerConfig) Tracef(format string, v ...interface{}) { method Debugf (line 230) | func (l *LoggerConfig) Debugf(format string, v ...interface{}) { method Infof (line 234) | func (l *LoggerConfig) Infof(format string, v ...interface{}) { method Warnf (line 238) | func (l *LoggerConfig) Warnf(format string, v ...interface{}) { method Errorf (line 242) | func (l *LoggerConfig) Errorf(format string, v ...interface{}) { method Fatalf (line 246) | func (l *LoggerConfig) Fatalf(format string, v ...interface{}) { method Panicf (line 250) | func (l *LoggerConfig) Panicf(format string, v ...interface{}) { method Tracew (line 254) | func (l *LoggerConfig) Tracew(msg string, keysAndValues ...interface{}) { method Debugw (line 258) | func (l *LoggerConfig) Debugw(msg string, keysAndValues ...interface{}) { method Infow (line 262) | func (l *LoggerConfig) Infow(msg string, keysAndValues ...interface{}) { method Warnw (line 266) | func (l *LoggerConfig) Warnw(msg string, keysAndValues ...interface{}) { method Errorw (line 270) | func (l *LoggerConfig) Errorw(msg string, keysAndValues ...interface{}) { method Fatalw (line 274) | func (l *LoggerConfig) Fatalw(msg string, keysAndValues ...interface{}) { method Panicw (line 278) | func (l *LoggerConfig) Panicw(msg string, keysAndValues ...interface{}) { method Log (line 282) | func (l *LoggerConfig) Log(level fiberlog.Level, kvs ...interface{}) { method Logw (line 302) | func (l *LoggerConfig) Logw(level fiberlog.Level, msg string, keyvals ... method Sync (line 329) | func (l *LoggerConfig) Sync() error { method Logger (line 334) | func (l *LoggerConfig) Logger() *zap.Logger { type CoreConfig (line 56) | type CoreConfig struct function loggerConfigDefault (line 77) | func loggerConfigDefault(config ...LoggerConfig) LoggerConfig { function NewLogger (line 109) | func NewLogger(config ...LoggerConfig) *LoggerConfig { FILE: v3/zap/logger_test.go function testEncoderConfig (line 20) | func testEncoderConfig() zapcore.EncoderConfig { function humanEncoderConfig (line 37) | func humanEncoderConfig() zapcore.EncoderConfig { function getWriteSyncer (line 45) | func getWriteSyncer(file string) zapcore.WriteSyncer { function TestCoreOption (line 57) | func TestCoreOption(t *testing.T) { function TestCoreConfigs (line 126) | func TestCoreConfigs(t *testing.T) { function TestZapOptions (line 149) | func TestZapOptions(t *testing.T) { function TestWithContextCaller (line 171) | func TestWithContextCaller(t *testing.T) { function TestWithExtraKeys (line 192) | func TestWithExtraKeys(t *testing.T) { function BenchmarkNormal (line 212) | func BenchmarkNormal(b *testing.B) { function BenchmarkWithExtraKeys (line 222) | func BenchmarkWithExtraKeys(b *testing.B) { function TestCustomField (line 234) | func TestCustomField(t *testing.T) { FILE: v3/zap/zap.go function New (line 15) | func New(config ...Config) fiber.Handler { function contains (line 198) | func contains(needle string, slice []string) bool { function sanitizeHeaderValues (line 216) | func sanitizeHeaderValues(header string, values []string) []string { FILE: v3/zap/zap_test.go function setupLogsCapture (line 23) | func setupLogsCapture() (*zap.Logger, *observer.ObservedLogs) { function Test_GetResBody (line 28) | func Test_GetResBody(t *testing.T) { function Test_SkipBody (line 52) | func Test_SkipBody(t *testing.T) { function Test_SkipResBody (line 74) | func Test_SkipResBody(t *testing.T) { function Test_Logger (line 96) | func Test_Logger(t *testing.T) { function Test_Logger_Next (line 116) | func Test_Logger_Next(t *testing.T) { function Test_Logger_All (line 130) | func Test_Logger_All(t *testing.T) { function Test_Query_Params (line 162) | func Test_Query_Params(t *testing.T) { function Test_Response_Body (line 180) | func Test_Response_Body(t *testing.T) { function Test_Logger_AppendUint (line 212) | func Test_Logger_AppendUint(t *testing.T) { function Test_Logger_Data_Race (line 233) | func Test_Logger_Data_Race(t *testing.T) { function Benchmark_Logger (line 266) | func Benchmark_Logger(b *testing.B) { function Test_Request_Id (line 291) | func Test_Request_Id(t *testing.T) { function Test_Skip_URIs (line 312) | func Test_Skip_URIs(t *testing.T) { function Test_Req_Headers (line 332) | func Test_Req_Headers(t *testing.T) { function Test_LoggerLevelsAndMessages (line 361) | func Test_LoggerLevelsAndMessages(t *testing.T) { function Test_LoggerLevelsAndMessagesSingle (line 404) | func Test_LoggerLevelsAndMessagesSingle(t *testing.T) { function Test_Fields_Func (line 447) | func Test_Fields_Func(t *testing.T) { FILE: v3/zerolog/config.go constant FieldReferer (line 12) | FieldReferer = "referer" constant FieldProtocol (line 13) | FieldProtocol = "protocol" constant FieldPID (line 14) | FieldPID = "pid" constant FieldPort (line 15) | FieldPort = "port" constant FieldIP (line 16) | FieldIP = "ip" constant FieldIPs (line 17) | FieldIPs = "ips" constant FieldHost (line 18) | FieldHost = "host" constant FieldPath (line 19) | FieldPath = "path" constant FieldURL (line 20) | FieldURL = "url" constant FieldUserAgent (line 21) | FieldUserAgent = "ua" constant FieldLatency (line 22) | FieldLatency = "latency" constant FieldStatus (line 23) | FieldStatus = "status" constant FieldResBody (line 24) | FieldResBody = "resBody" constant FieldQueryParams (line 25) | FieldQueryParams = "queryParams" constant FieldBody (line 26) | FieldBody = "body" constant FieldBytesReceived (line 27) | FieldBytesReceived = "bytesReceived" constant FieldBytesSent (line 28) | FieldBytesSent = "bytesSent" constant FieldRoute (line 29) | FieldRoute = "route" constant FieldMethod (line 30) | FieldMethod = "method" constant FieldRequestID (line 31) | FieldRequestID = "requestId" constant FieldError (line 32) | FieldError = "error" constant FieldReqHeaders (line 33) | FieldReqHeaders = "reqHeaders" constant FieldResHeaders (line 34) | FieldResHeaders = "resHeaders" constant fieldResBody_ (line 36) | fieldResBody_ = "res_body" constant fieldQueryParams_ (line 37) | fieldQueryParams_ = "query_params" constant fieldBytesReceived_ (line 38) | fieldBytesReceived_ = "bytes_received" constant fieldBytesSent_ (line 39) | fieldBytesSent_ = "bytes_sent" constant fieldRequestID_ (line 40) | fieldRequestID_ = "request_id" constant fieldReqHeaders_ (line 41) | fieldReqHeaders_ = "req_headers" constant fieldResHeaders_ (line 42) | fieldResHeaders_ = "res_headers" type Config (line 46) | type Config struct method loggerCtx (line 123) | func (c *Config) loggerCtx(fc fiber.Ctx) zerolog.Context { method logger (line 131) | func (c *Config) logger(fc fiber.Ctx, latency time.Duration, err error... function configDefault (line 304) | func configDefault(config ...Config) Config { FILE: v3/zerolog/zerolog.go function New (line 11) | func New(config ...Config) fiber.Handler { FILE: v3/zerolog/zerolog_test.go function Test_GetResBody (line 22) | func Test_GetResBody(t *testing.T) { function Test_SkipBody (line 52) | func Test_SkipBody(t *testing.T) { function Test_SkipResBody (line 79) | func Test_SkipResBody(t *testing.T) { function Test_Logger (line 106) | func Test_Logger(t *testing.T) { function Test_Latency (line 132) | func Test_Latency(t *testing.T) { function Test_Logger_Next (line 161) | func Test_Logger_Next(t *testing.T) { function Test_Logger_All (line 176) | func Test_Logger_All(t *testing.T) { function Test_Response_Body (line 240) | func Test_Response_Body(t *testing.T) { function Test_Request_Id (line 267) | func Test_Request_Id(t *testing.T) { function Test_Skip_URIs (line 296) | func Test_Skip_URIs(t *testing.T) { function Test_Req_Headers (line 320) | func Test_Req_Headers(t *testing.T) { function Test_Req_Headers_WrapHeaders (line 358) | func Test_Req_Headers_WrapHeaders(t *testing.T) { function Test_Res_Headers (line 399) | func Test_Res_Headers(t *testing.T) { function Test_Res_Headers_WrapHeaders (line 437) | func Test_Res_Headers_WrapHeaders(t *testing.T) { function Test_FieldsSnakeCase (line 478) | func Test_FieldsSnakeCase(t *testing.T) { function Test_LoggerLevelsAndMessages (line 540) | func Test_LoggerLevelsAndMessages(t *testing.T) { function Test_Logger_FromContext (line 614) | func Test_Logger_FromContext(t *testing.T) { function Test_Logger_WhitelistHeaders (line 638) | func Test_Logger_WhitelistHeaders(t *testing.T) { function Test_WhitelistHeaders_Resp_Headers (line 703) | func Test_WhitelistHeaders_Resp_Headers(t *testing.T) { function Test_Logger_BlacklistHeaders (line 741) | func Test_Logger_BlacklistHeaders(t *testing.T) { function Test_BlacklistHeaders_Resp_Headers (line 782) | func Test_BlacklistHeaders_Resp_Headers(t *testing.T) {