Documentation
¶
Index ¶
- Constants
- func Authorization(r *chi.Mux, method, path string, h http.HandlerFunc, ...) *chi.Mux
- func DeleteApiGatewayById(id, method, path string)
- func GetRoutes() map[string]et.Json
- func Protect(r *chi.Mux, method, path string, h http.HandlerFunc, ...) *chi.Mux
- func Public(r *chi.Mux, method, path string, h http.HandlerFunc, ...) *chi.Mux
- func PushApiGateway(id, method, path, resolve string, header et.Json, tpHeader TpHeader, ...)
- func With(r *chi.Mux, method, path string, middlewares []func(http.Handler) http.Handler, ...) *chi.Mux
- type Routes
- type TpHeader
- type TypeRoute
Constants ¶
const ( Get = "GET" Post = "POST" Put = "PUT" Patch = "PATCH" Delete = "DELETE" Head = "HEAD" Options = "OPTIONS" HandlerFunc = "HandlerFunc" )
const ( APIGATEWAY_SET = "apigateway/set/resolve" APIGATEWAY_DELETE = "apigateway/delete/resolve" APIGATEWAY_RESET = "apigateway/reset" )
Variables ¶
This section is empty.
Functions ¶
func Authorization ¶
func Authorization(r *chi.Mux, method, path string, h http.HandlerFunc, packageName, packagePath, host string) *chi.Mux
* * Authorization * @param r *chi.Mux, method string, path string, h http.HandlerFunc, packageName string, packagePath string, host string * @return *chi.Mux *
func DeleteApiGatewayById ¶
func DeleteApiGatewayById(id, method, path string)
* * DeleteApiGatewayById * @param id, method, path string *
func Protect ¶
func Protect(r *chi.Mux, method, path string, h http.HandlerFunc, packageName, packagePath, host string) *chi.Mux
* * Protect * @param r *chi.Mux, method string, path string, h http.HandlerFunc, packageName string, packagePath string, host string * @return *chi.Mux *
func Public ¶
func Public(r *chi.Mux, method, path string, h http.HandlerFunc, packageName, packagePath, host string) *chi.Mux
* * Public * @param r *chi.Mux, method string, path string, h http.HandlerFunc, packageName string, packagePath string, host string * @return *chi.Mux *
func PushApiGateway ¶
func PushApiGateway(id, method, path, resolve string, header et.Json, tpHeader TpHeader, excludeHeader []string, private bool, packageName string)
* * PushApiGateway * @param id, method, path, resolve string, header et.Json, tpHeader TpHeader, excludeHeader []string, private bool, packageName string *
func With ¶
func With(r *chi.Mux, method, path string, middlewares []func(http.Handler) http.Handler, h http.HandlerFunc, packageName, packagePath, host string) *chi.Mux
* * With * @param r *chi.Mux, method string, path string, middlewares []func(http.Handler) http.Handler, h http.HandlerFunc, packageName string, packagePath string, host string * @return *chi.Mux *
Types ¶
type TpHeader ¶
type TpHeader int
func IntToTpHeader ¶
* * IntToTpHeader * @param tp int * @return TpHeader *
func ToTpHeader ¶
* * ToTpHeader * @param str string * @return TpHeader *