basic

package
v2.20.0 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 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 LoginProvider added in v2.20.0

type LoginProvider 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 LoginProvider, 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