router

package
v1.0.42 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Get         = "GET"
	Post        = "POST"
	Put         = "PUT"
	Patch       = "PATCH"
	Delete      = "DELETE"
	Head        = "HEAD"
	Options     = "OPTIONS"
	HandlerFunc = "HandlerFunc"
)

Variables

This section is empty.

Functions

func PopApiGatewayById added in v1.0.36

func PopApiGatewayById(id string)

* * PopApiGatewayById * @param id string *

func ProtectRoute

func ProtectRoute(r *chi.Mux, method, path string, h http.HandlerFunc, packageName, packagePath, host string) *chi.Mux

func PublicRoute

func PublicRoute(r *chi.Mux, method, path string, h http.HandlerFunc, packageName, packagePath, host string) *chi.Mux

func PushApiGateway added in v1.0.36

func PushApiGateway(method, path, resolve, host, packageName string, private bool)

* * PushApiGateway * @param method string * @param path string * @param resolve string * @param host string * @param packageName string * @param private bool *

Types

type TpHeader added in v1.0.8

type TpHeader int
const (
	TpKeepHeader TpHeader = iota
	TpJoinHeader
	TpReplaceHeader
)

func IntToTpHeader added in v1.0.23

func IntToTpHeader(tp int) TpHeader

* * IntToTpHeader * @param tp int * @return TpHeader *

func ToTpHeader added in v1.0.11

func ToTpHeader(tp int) TpHeader

* * ToTpHeader * @param str string * @return TpHeader *

func (TpHeader) String added in v1.0.8

func (t TpHeader) String() string

* * String * @return string *

type TypeRoute added in v0.0.177

type TypeRoute int
const (
	HTTP TypeRoute = iota
	REST
)

Jump to

Keyboard shortcuts

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