valid

package
v0.0.0-...-1079267 Latest Latest
Warning

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

Go to latest
Published: May 8, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NotAuthorized = fmt.Errorf("not authorized")

Functions

This section is empty.

Types

type Validator

type Validator interface {
	Login(context.Context, shared.UUID, string) (*http.Cookie, int)
	Logout(context.Context, string) (*http.Cookie, int)
	Valid(context.Context, string) (*http.Cookie, int)
	OTP(context.Context, shared.UUID, string, string) (string, int)
	LoginOTP(context.Context, string) (string, int)
	CompleteOTP(context.Context, string) (shared.UUID, int)
}

func NewValidator

func NewValidator(client authn, cfg *config.Config, logger *logrus.Entry) Validator

Jump to

Keyboard shortcuts

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