echocontext

package
v0.0.0-...-1b34132 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const KeyBody = "body"
View Source
const KeyContext = "ctx"
View Source
const KeyQuery = "query"
View Source
const KeyUserID = "user_id"

Variables

This section is empty.

Functions

func GetAuthorizationToken

func GetAuthorizationToken(c echo.Context) string

GetAuthorizationToken ...

func GetBody

func GetBody(c echo.Context) interface{}

GetBody ...

func GetContext

func GetContext(c echo.Context) *appcontext.AppContext

GetContext ...

func GetIP

func GetIP(c echo.Context) string

GetIP ...

func GetQuery

func GetQuery(c echo.Context) interface{}

GetQuery ...

func GetUserID

func GetUserID(c echo.Context) string

GetUserID ...

func SetBody

func SetBody(c echo.Context, value interface{})

SetBody ...

func SetContext

func SetContext(c echo.Context, value interface{})

SetContext ...

func SetQuery

func SetQuery(c echo.Context, value interface{})

SetQuery ...

func SetUserID

func SetUserID(c echo.Context, value interface{})

SetUserID ...

Types

type PageToken

type PageToken struct {
	Page      int64
	Timestamp time.Time
	Order     int
}

PageToken ...

func PageTokenDecode

func PageTokenDecode(s string) PageToken

PageTokenDecode decode page token from query

Jump to

Keyboard shortcuts

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