Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var HttpHandlers = []interface{}{
nodeHandlers,
nodeExitNodeHandlers,
gwHandlers,
userHandlers,
networkHandlers,
dnsHandlers,
fileHandlers,
serverHandlers,
extClientHandlers,
ipHandlers,
loggerHandlers,
hostHandlers,
enrollmentKeyHandlers,
aclHandlers,
deviceHandlers,
egressHandlers,
internetGatewayHandlers,
orgHandlers,
}
HttpHandlers - handler functions for REST interactions
View Source
var HttpMiddlewares = []mux.MiddlewareFunc{ middleware.DB, userMiddleWare, }
HttpMiddlewares - middleware functions for REST interactions
View Source
var ListRoles = listRoles
Functions ¶
func AuthorizeHost ¶ added in v1.5.1
func AuthorizeHost( next http.Handler, ) http.HandlerFunc
AuthorizeHost - middleware that authenticates a host via JWT and ensures the host is only operating on its own resources (matched by hostid/nodeid path params).
Types ¶
type RateLimiter ¶ added in v1.6.0
type RateLimiter struct {
// contains filtered or unexported fields
}
func NewRateLimiter ¶ added in v1.6.0
func (*RateLimiter) Middleware ¶ added in v1.6.0
func (rl *RateLimiter) Middleware(next http.Handler) http.Handler
Click to show internal directories.
Click to hide internal directories.