Documentation ¶
Overview ¶
---------------------------------------------------------------------------------------------- // -- Copyright (c) 2024 Braden Hitchcock - MIT License (https://opensource.org/licenses/MIT) -- // ---------------------------------------------------------------------------------------------- //
---------------------------------------------------------------------------------------------- // -- Copyright (c) 2024 Braden Hitchcock - MIT License (https://opensource.org/licenses/MIT) -- // ---------------------------------------------------------------------------------------------- //
---------------------------------------------------------------------------------------------- // -- Copyright (c) 2024 Braden Hitchcock - MIT License (https://opensource.org/licenses/MIT) -- // ---------------------------------------------------------------------------------------------- //
---------------------------------------------------------------------------------------------- // -- Copyright (c) 2024 Braden Hitchcock - MIT License (https://opensource.org/licenses/MIT) -- // ---------------------------------------------------------------------------------------------- //
---------------------------------------------------------------------------------------------- // -- Copyright (c) 2024 Braden Hitchcock - MIT License (https://opensource.org/licenses/MIT) -- // ---------------------------------------------------------------------------------------------- //
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WriteJsonErr ¶
func WriteJsonErr(w http.ResponseWriter, status int, err error)
Types ¶
type Config ¶
func LoadConfig ¶
type ContextKey ¶
type ContextKey string
type GroupHandler ¶
type GroupHandler struct {
// contains filtered or unexported fields
}
func NewGroupHandler ¶
func NewGroupHandler(gs model.GroupService) GroupHandler
func (*GroupHandler) GetGroupInfo ¶
func (h *GroupHandler) GetGroupInfo(w http.ResponseWriter, r *http.Request)
func (*GroupHandler) InitGroup ¶
func (h *GroupHandler) InitGroup(w http.ResponseWriter, r *http.Request)
type Middleware ¶
type Middleware interface {
Middleware(http.HandlerFunc) http.HandlerFunc
}
type MiddlewareChain ¶
type MiddlewareChain struct {
// contains filtered or unexported fields
}
func NewMiddlewareChain ¶
func NewMiddlewareChain(hs ...Middleware) MiddlewareChain
func (*MiddlewareChain) Finish ¶
func (c *MiddlewareChain) Finish(f http.HandlerFunc) http.HandlerFunc
func (*MiddlewareChain) Then ¶
func (c *MiddlewareChain) Then(n Middleware) *MiddlewareChain
Directories ¶
Path | Synopsis |
---|---|
---------------------------------------------------------------------------------------------- // -- Copyright (c) 2024 Braden Hitchcock - MIT License (https://opensource.org/licenses/MIT) -- // ---------------------------------------------------------------------------------------------- //
|
---------------------------------------------------------------------------------------------- // -- Copyright (c) 2024 Braden Hitchcock - MIT License (https://opensource.org/licenses/MIT) -- // ---------------------------------------------------------------------------------------------- // |