anonymous

package
v1.24.10 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client for anonymous access

func New

func New(cfg config.Config) *Client

New anonymous access client. Client.Middleware can be used as a regular golang http-middleware

func (*Client) Middleware

func (c *Client) Middleware(next http.Handler) http.Handler

Middleware will fail unauthenticated requests if anonymous access is disabled. This middleware should run after all previous middlewares.

Jump to

Keyboard shortcuts

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