Documentation ¶
Index ¶
- Constants
- func AuthMiddleware(next http.Handler) http.Handler
- func CorsMiddleware(next http.Handler) http.Handler
- func IsTempusValid(encrypted string) bool
- func NewEndpointPing(w *Web) *registry.Endpoint
- func NewEndpointStatic(w *Web) *registry.Endpoint
- func NewTempusToken() string
- type AuthPermission
- type Mutex
- type ServerClose
- type Web
- type WebOpt
- type WebServeOpts
Constants ¶
View Source
const DarkstatAPISock = "/tmp/darkstat/api.sock"
View Source
const URLPing core_types.Url = "/ping"
View Source
const UrlStatic core_types.Url = "/"
Variables ¶
This section is empty.
Functions ¶
func IsTempusValid ¶
func NewEndpointPing ¶
func NewEndpointStatic ¶
func NewTempusToken ¶
func NewTempusToken() string
Types ¶
type AuthPermission ¶
type ServerClose ¶ added in v1.63.0
type ServerClose struct {
// contains filtered or unexported fields
}
func (ServerClose) Close ¶ added in v1.63.0
func (s ServerClose) Close()
type Web ¶
type Web struct { AppDataMutex Mutex // contains filtered or unexported fields }
func (*Web) Serve ¶
func (w *Web) Serve(opts WebServeOpts) ServerClose
type WebServeOpts ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.