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 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
Types ¶
type TpHeader ¶ added in v1.0.8
type TpHeader int
func ToTpHeader ¶ added in v1.0.11
* * ToTpHeader * @param str string * @return TpHeader *
Click to show internal directories.
Click to hide internal directories.