Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MatchRoute ¶
MatchRoute compare an route with an topic
func Patch ¶ added in v2.2.0
func Patch(newConfig ConfigStruct)
func Set ¶ added in v2.2.0
func Set(newConfig ConfigStruct)
Types ¶
type ConfigStruct ¶
func Get ¶ added in v2.2.0
func Get() (currentConfig ConfigStruct)
func (*ConfigStruct) MarshalZerologObject ¶ added in v2.2.0
func (c *ConfigStruct) MarshalZerologObject(e *zerolog.Event)
type Middleware ¶
type Middleware struct {
// contains filtered or unexported fields
}
func (*Middleware) Get ¶ added in v2.2.0
func (mdw *Middleware) Get() (currentConfig ConfigStruct)
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) Patch ¶ added in v2.2.0
func (mdw *Middleware) Patch(newConfig ConfigStruct)
func (*Middleware) Set ¶ added in v2.2.0
func (mdw *Middleware) Set(newConfig ConfigStruct)
Click to show internal directories.
Click to hide internal directories.