middleware

package
v0.4.0-rc.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 7, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

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 CreateAuthMiddleware(cfg *config.Auth, logger log.Logger) (AuthMiddleware, error)

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL