Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // WebPath is path to admin web application to serve. WebPath string // WebFS is custom filesystem to serve as admin web application. WebFS http.FileSystem // Password is an admin password. Password string // Secret is a secret to generate auth token for admin requests. Secret string // Insecure turns on insecure mode for admin endpoints - no auth // required to connect to web interface and requests to admin API. // Protect admin resources with firewall rules in production when // enabling this option. Insecure bool }
Config ...
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler handles admin web interface endpoints.
func NewHandler ¶
func NewHandler(n *centrifuge.Node, c Config) *Handler
NewHandler creates new Handler.
Click to show internal directories.
Click to hide internal directories.