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