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(id, method, path, resolve string, header et.Json, tpHeader TpHeader, ...)
- type TpHeader
- type TypeRoute
Constants ¶
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
* * ProtectRoute * @param r *chi.Mux * @param method string * @param path string * @param h http.HandlerFunc * @param packageName string * @param packagePath string * @param host string * @return *chi.Mux *
func PublicRoute ¶
func PublicRoute(r *chi.Mux, method, path string, h http.HandlerFunc, packageName, packagePath, host string) *chi.Mux
* * PublicRoute * @param r *chi.Mux * @param method string * @param path string * @param h http.HandlerFunc * @param packageName string * @param packagePath string * @param host string * @return *chi.Mux *
func PushApiGateway ¶ added in v1.0.36
func PushApiGateway(id, method, path, resolve string, header et.Json, tpHeader TpHeader, private bool, packageName string)
* * PushApiGateway * @param method string * @param path string * @param resolve string * @params header et.Json * @param tpHeader TpHeader * @param private bool * @param packageName string *
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 *