Documentation ¶
Index ¶
- func ApiPanicHandler(w http.ResponseWriter, err any)
- func GetGlobalCORS() (bool, []string)
- func IsTrustedRequest(r *http.Request, checkForward bool, trustedNets ...net.IPNet) bool
- func MatchPreferredLanguage(r *http.Request) *message.Printer
- func RawPanicHandler(w http.ResponseWriter, err any)
- func RawReply(code int) *reply
- func Register(a API, mx ...*http.ServeMux)
- func Reply(code int) *reply
- func SetGlobalCORS(enable bool, origin ...string)
- func WithGlobalActions(as ...Action)
- func WithLangSpecifier(lang string)
- type API
- type Action
- type ApiSpec
- type PanicHandler
- type ParamSpec
- type ReplyDesc
- type ReplySpec
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApiPanicHandler ¶
func ApiPanicHandler(w http.ResponseWriter, err any)
func IsTrustedRequest ¶
func RawPanicHandler ¶
func RawPanicHandler(w http.ResponseWriter, err any)
Types ¶
type Action ¶
type ApiSpec ¶
type PanicHandler ¶
type PanicHandler func(http.ResponseWriter, any)
type ParamSpec ¶
type ReplyDesc ¶
type ReplySpec ¶
type ReplySpec = *reply
Source Files ¶
Click to show internal directories.
Click to hide internal directories.