Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MatchRoute ¶
MatchRoute compare an route with an topic
func PatchConfigFromJson ¶
APPEND rules in the config to existing config ( or create if user not exist )
func SetConfigFromJson ¶
OVERWRITE the whole config use this usualy in a PUT-Request
Types ¶
type ConfigStruct ¶
type Middleware ¶
type Middleware struct {
// contains filtered or unexported fields
}
func (Middleware) HasAccess ¶
func (mdw Middleware) HasAccess(username string, route string) (hasAccess bool)
HasAccess check if the given user has access to this route
func (*Middleware) Init ¶
func (mdw *Middleware) Init()
func (*Middleware) PatchConfigFromJson ¶
func (mdw *Middleware) PatchConfigFromJson(jsondata []byte) (err error)
func (*Middleware) SetConfigFromJson ¶
func (mdw *Middleware) SetConfigFromJson(jsondata []byte) (err error)
Click to show internal directories.
Click to hide internal directories.