http

package
v1.2.2-0...-4b8647b Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2024 License: AGPL-3.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Logging

func Logging(log *zerolog.Logger) middleware.Middleware

func RequestMetadataOAS

func RequestMetadataOAS(
	req middleware.Request,
	next func(req middleware.Request) (middleware.Response, error),
) (middleware.Response, error)

func Serve

func Serve(ctx context.Context, wg *sync.WaitGroup, log *zerolog.Logger, addr string, auth authentication.Interface)

Types

type AuthenticationServer

type AuthenticationServer struct {
	Addr           string
	Authentication authentication.Interface

	Log *zerolog.Logger
	WG  *sync.WaitGroup
	// contains filtered or unexported fields
}

func (*AuthenticationServer) Callback

func (*AuthenticationServer) Check

func (*AuthenticationServer) Logout

func (*AuthenticationServer) Providers

func (*AuthenticationServer) Renew

type SecurityHandler

type SecurityHandler struct{}

func (SecurityHandler) HandleBearerAuth

func (SecurityHandler) HandleBearerAuth(ctx context.Context, operationName string, t oasAuthentication.BearerAuth) (context.Context, error)

Jump to

Keyboard shortcuts

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