Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HandlerFn ¶
type HandlerFn func(w http.ResponseWriter, r *http.Request) error
HandlerFn is a custom handler wrapper function type. It is used to wrap handler function to make it easier handling errors from handler function. Also help handler code to be more readable without to many early return statement. Every handler function should use this function signature.
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func InitServer ¶
Server Initialization function, also bootstraping dependency
Click to show internal directories.
Click to hide internal directories.