Documentation
¶
Index ¶
- Constants
- func TemplateBody(data map[string]any, VARIABLES any) (map[string]any, bool, error)
- func TemplatePath(reqUrl *url.URL, VARIABLES any) (string, bool, error)
- func TemplateQuery(reqUrl *url.URL, data map[string]any, VARIABLES any) (string, map[string]any, bool, error)
- type AuthMiddleware
- type BodyMiddleware
- type Context
- type EndpointsMiddleware
- type LogMiddleware
- type TemplateMiddleware
Constants ¶
View Source
const ( Bearer authType = "Bearer" Basic authType = "Basic" Query authType = "Query" None authType = "None" )
Variables ¶
This section is empty.
Functions ¶
func TemplateBody ¶ added in v1.1.7
func TemplatePath ¶ added in v1.1.7
Types ¶
type AuthMiddleware ¶
func (AuthMiddleware) Use ¶
func (data AuthMiddleware) Use() http.Handler
type BodyMiddleware ¶
func (BodyMiddleware) Use ¶
func (data BodyMiddleware) Use() http.Handler
type EndpointsMiddleware ¶
func (EndpointsMiddleware) Use ¶
func (data EndpointsMiddleware) Use() http.Handler
type LogMiddleware ¶
func (LogMiddleware) Use ¶
func (data LogMiddleware) Use() http.Handler
type TemplateMiddleware ¶
func (TemplateMiddleware) Use ¶
func (data TemplateMiddleware) Use() http.Handler
Click to show internal directories.
Click to hide internal directories.