basic

package
v2.19.0 Latest Latest
Warning

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

Go to latest
Published: May 28, 2024 License: MIT Imports: 10 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider added in v2.4.0

type Provider interface {
	Login(ctx context.Context, login, password string) (model.User, error)
}

type Service added in v2.16.0

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

func New

func New(provider Provider, realm string) Service

func (Service) GetUser added in v2.16.0

func (s Service) GetUser(ctx context.Context, content string) (model.User, error)

func (Service) IsMatching added in v2.16.0

func (s Service) IsMatching(content string) bool

func (Service) OnError added in v2.16.0

func (s Service) OnError(w http.ResponseWriter, r *http.Request, err error)

Jump to

Keyboard shortcuts

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