Documentation
¶
Index ¶
- Variables
- func DD(input any) error
- func Flags() *flags
- func HttpAccepted(rw http.ResponseWriter, body any)
- func HttpBadRequest(rw http.ResponseWriter, body any)
- func HttpConflict(rw http.ResponseWriter, body any)
- func HttpCreated(rw http.ResponseWriter, body any)
- func HttpForbidden(rw http.ResponseWriter)
- func HttpInternalServerError(rw http.ResponseWriter, body any)
- func HttpNoContent(rw http.ResponseWriter)
- func HttpNotFound(rw http.ResponseWriter)
- func HttpOk(rw http.ResponseWriter, body any)
- func HttpUnauthorized(rw http.ResponseWriter)
- func Must[T any](res T, err error) T
- func Run(config ...any)
- func Shutdown()
- func ToPtr[T any](v T) *T
- type ConfigureFunc
- type Password
- type Project
Constants ¶
This section is empty.
Variables ¶
View Source
var Async = &_async{}
View Source
var CMD = &_cmd{ Command: &cobra.Command{}, }
View Source
var Config = &config.Config{}
View Source
var Hash = _hash{}
View Source
var Health = _health{ // contains filtered or unexported fields }
View Source
var Hooks = &_hooks{&runtime.Hooks{}}
View Source
var Net = &_net{ handler: func(l net.Conn) {}, }
View Source
var SQL = _sql{ // contains filtered or unexported fields }
View Source
var Web = &_web{ HttpServeMux: ngamux.NewHttpServeMux(), Server: &http.Server{}, Handler: &_webHandler{}, Response: &_webResponse{}, Request: &_webRequest{}, Resource: &_webResource{}, }
Functions ¶
func HttpAccepted ¶
func HttpAccepted(rw http.ResponseWriter, body any)
func HttpBadRequest ¶
func HttpBadRequest(rw http.ResponseWriter, body any)
func HttpConflict ¶
func HttpConflict(rw http.ResponseWriter, body any)
func HttpCreated ¶
func HttpCreated(rw http.ResponseWriter, body any)
func HttpForbidden ¶
func HttpForbidden(rw http.ResponseWriter)
func HttpInternalServerError ¶
func HttpInternalServerError(rw http.ResponseWriter, body any)
func HttpNoContent ¶
func HttpNoContent(rw http.ResponseWriter)
func HttpNotFound ¶
func HttpNotFound(rw http.ResponseWriter)
func HttpOk ¶
func HttpOk(rw http.ResponseWriter, body any)
func HttpUnauthorized ¶
func HttpUnauthorized(rw http.ResponseWriter)
Types ¶
type ConfigureFunc ¶
type ConfigureFunc func()
type Project ¶
type Project struct {
// contains filtered or unexported fields
}
func Configures ¶ added in v0.3.94
func Configures(configures ...ConfigureFunc) *Project
Source Files
¶
Click to show internal directories.
Click to hide internal directories.