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 NewOauthAccept(w *Web) *registry.Endpoint
- func NewOauthStart(w *Web) *registry.Endpoint
- func NewTempusToken() string
- type AuthPermission
- type Mutex
- type OauthAnswer
- type ServerClose
- type Web
- type WebOpt
- type WebServeOpts
Constants ¶
View Source
const DarkstatAPISock = "/tmp/darkstat/api.sock"
View Source
const URLPing core_types.Url = "GET /ping"
View Source
const UrlStatic core_types.Url = "/"
Variables ¶
This section is empty.
Functions ¶
func IsTempusValid ¶
func NewEndpointPing ¶
func NewEndpointStatic ¶
func NewOauthAccept ¶ added in v1.70.0
for local testing, manually replace incoming incoming redirect to http://localhost:8000
func NewOauthStart ¶ added in v1.70.0
func NewTempusToken ¶
func NewTempusToken() string
Types ¶
type AuthPermission ¶
type OauthAnswer ¶ added in v1.70.0
I return either {"error": "nope"} or {"access_token": "yes they're a dev"}
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.