Documentation ¶
Index ¶
- type WebServer
- func (s *WebServer) Auth(ctx *fasthttp.RequestCtx) (*config.APIKey, error)
- func (s *WebServer) Close() error
- func (s *WebServer) Cors(ctx *fasthttp.RequestCtx)
- func (s *WebServer) NodeList(ctx *fasthttp.RequestCtx)
- func (s *WebServer) NotFound(ctx *fasthttp.RequestCtx)
- func (s *WebServer) Proxy(ctx *fasthttp.RequestCtx)
- func (s *WebServer) Run() error
- func (s *WebServer) StartHealthChecker()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WebServer ¶
type WebServer struct {
// contains filtered or unexported fields
}
WebServer main web service (handler)
func (*WebServer) Auth ¶
Auth check authentication first TODO: can that be a lightweight middleware please?
func (*WebServer) Cors ¶
func (s *WebServer) Cors(ctx *fasthttp.RequestCtx)
Cors respond an OPTIONS request (main auth)
func (*WebServer) NodeList ¶
func (s *WebServer) NodeList(ctx *fasthttp.RequestCtx)
NodeList list the nodes and general availability
func (*WebServer) NotFound ¶
func (s *WebServer) NotFound(ctx *fasthttp.RequestCtx)
NotFound url handler, can't we handle all here?
func (*WebServer) Proxy ¶
func (s *WebServer) Proxy(ctx *fasthttp.RequestCtx)
Proxy process the actual request
func (*WebServer) StartHealthChecker ¶
func (s *WebServer) StartHealthChecker()
StartHealthChecker starts the health check cron
Click to show internal directories.
Click to hide internal directories.