context

package
v0.0.0-...-5bd5591 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CurrentUser

func CurrentUser(req *http.Request) *entities.User

func InitParams

func InitParams(req *http.Request) error

func SetCurrentUser

func SetCurrentUser(req *http.Request, user *entities.User)

Types

type RequestParam

type RequestParam struct {
	Request *http.Request
}

func Params

func Params(req *http.Request) *RequestParam

func (*RequestParam) Get

func (rp *RequestParam) Get(param string) string

func (*RequestParam) GetInt

func (rp *RequestParam) GetInt(param string) (int, error)

Jump to

Keyboard shortcuts

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