hooks

package
v0.0.0-...-f9eaf4d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 11, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitHooks

func InitHooks()

InitHooks manual import hooks packages and do init.

func LimitHandler

func LimitHandler(maxConn int, refreshRate float64) gin.HandlerFunc

LimitHandler registried a middle ware to use.

Types

type CORS

type CORS struct {
	urltrie.Hook
}

CORS implement urltrie.Hook.

func (*CORS) AfterRun

func (h *CORS) AfterRun(c *gin.Context)

AfterRun EDIT THIS TO YOUR OWN HOOK AFTER RUN, DO NOT NEED USE Next() FUNCTION.

func (*CORS) BeforeRun

func (h *CORS) BeforeRun(c *gin.Context)

BeforeRun EDIT THIS TO YOUR OWN HOOK BEFORE RUN, DO NOT NEED USE Next() FUNCTION.

func (*CORS) Patterns

func (h *CORS) Patterns() []string

Patterns EDIT THIS TO YOUR OWN HOOK PATTERN.

func (*CORS) Priority

func (h *CORS) Priority() int64

Priority EDIT THIS TO YOUR OWN HOOK PRIORITY.

type GlobalHook

type GlobalHook struct {
	urltrie.Hook
}

GlobalHook implement urltrie.Hook.

func (*GlobalHook) AfterRun

func (h *GlobalHook) AfterRun(c *gin.Context)

AfterRun do something after controller run.

func (*GlobalHook) BeforeRun

func (h *GlobalHook) BeforeRun(c *gin.Context)

BeforeRun do something before controller run.

func (*GlobalHook) Patterns

func (h *GlobalHook) Patterns() []string

Patterns return pattern.

func (*GlobalHook) Priority

func (h *GlobalHook) Priority() int64

Priority return priority.

type JWT

type JWT struct {
	urltrie.Hook
}

JWT implement urltrie.Hook.

func (*JWT) AfterRun

func (h *JWT) AfterRun(c *gin.Context)

AfterRun EDIT THIS TO YOUR OWN HOOK AFTER RUN, DO NOT NEED USE Next() FUNCTION.

func (*JWT) BeforeRun

func (h *JWT) BeforeRun(c *gin.Context)

BeforeRun EDIT THIS TO YOUR OWN HOOK BEFORE RUN, DO NOT NEED USE Next() FUNCTION.

func (*JWT) Patterns

func (h *JWT) Patterns() []string

Patterns EDIT THIS TO YOUR OWN HOOK PATTERN.

func (*JWT) Priority

func (h *JWT) Priority() int64

Priority EDIT THIS TO YOUR OWN HOOK PRIORITY.

type MailHook

type MailHook struct {
	urltrie.Hook
}

MailHook implement urltrie.Hook.

func (*MailHook) AfterRun

func (h *MailHook) AfterRun(c *gin.Context)

AfterRun do something after controller run.

func (*MailHook) BeforeRun

func (h *MailHook) BeforeRun(c *gin.Context)

BeforeRun do something before controller run.

func (*MailHook) Patterns

func (h *MailHook) Patterns() []string

Patterns return pattern.

func (*MailHook) Priority

func (h *MailHook) Priority() int64

Priority return priority.

type RATE

type RATE struct {
	urltrie.Hook
}

RATE implement urltrie.Hook.

func (*RATE) AfterRun

func (h *RATE) AfterRun(c *gin.Context)

AfterRun EDIT THIS TO YOUR OWN HOOK AFTER RUN, DO NOT NEED USE Next() FUNCTION.

func (*RATE) BeforeRun

func (h *RATE) BeforeRun(c *gin.Context)

BeforeRun EDIT THIS TO YOUR OWN HOOK BEFORE RUN, DO NOT NEED USE Next() FUNCTION.

func (*RATE) Patterns

func (h *RATE) Patterns() []string

Patterns EDIT THIS TO YOUR OWN HOOK PATTERN.

func (*RATE) Priority

func (h *RATE) Priority() int64

Priority EDIT THIS TO YOUR OWN HOOK PRIORITY.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL