Documentation ¶
Index ¶
- Constants
- func PopApiGatewayById(id string)
- func ProtectRoute(r *chi.Mux, method, path string, h http.HandlerFunc, ...) *chi.Mux
- func PublicRoute(r *chi.Mux, method, path string, h http.HandlerFunc, ...) *chi.Mux
- func PushApiGateway(method, path, resolve, host, packageName string, private bool)
- type TpHeader
- type TypeRoute
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
* * 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
func IntToTpHeader ¶ added in v1.0.23
* * IntToTpHeader * @param tp int * @return TpHeader *
func ToTpHeader ¶ added in v1.0.11
* * ToTpHeader * @param str string * @return TpHeader *
Click to show internal directories.
Click to hide internal directories.