middleware

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const KeyRequestInit = "request_init"
View Source
const KeyRequestValidate = "request_validate"

Variables

This section is empty.

Functions

This section is empty.

Types

type Middleware

type Middleware interface {
	Execute(*requests.Request) (int32, string)
	SetNext(Middleware)
	// contains filtered or unexported methods
}

type RequestCheck

type RequestCheck struct {
	// contains filtered or unexported fields
}

func (*RequestCheck) Execute

func (r *RequestCheck) Execute(_ *requests.Request) (int32, string)

func (*RequestCheck) SetNext

func (r *RequestCheck) SetNext(next Middleware)

type RequestInit

type RequestInit struct {
	// contains filtered or unexported fields
}

func NewRequestInit

func NewRequestInit(r *http.Request) *RequestInit

func (*RequestInit) Execute

func (r *RequestInit) Execute(req *requests.Request) (int32, string)

func (*RequestInit) SetNext

func (r *RequestInit) SetNext(next Middleware)

type RequestValidate

type RequestValidate struct {
	// contains filtered or unexported fields
}

func (*RequestValidate) Execute

func (r *RequestValidate) Execute(req *requests.Request) (int32, string)

func (*RequestValidate) SetNext

func (r *RequestValidate) SetNext(next Middleware)

Jump to

Keyboard shortcuts

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