Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthMiddleware ¶
type AuthMiddleware interface {
NewAuthMiddleware() middleware.Middleware
}
func CreateAuthMiddleware ¶
func NewNoAuth ¶
func NewNoAuth() AuthMiddleware
NewNoAuth returns a no auth middleware It doesn't require any token
func NewStaticTokenAuth ¶
func NewStaticTokenAuth(token string) AuthMiddleware
NewStaticTokenAuth returns a simple token auth middleware We pass the static token and use it to auth
Click to show internal directories.
Click to hide internal directories.