auth

package
v0.0.0-...-78c2119 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2023 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthUser

type AuthUser struct {
	Username string `form:"username" binding:"required"`
	Password string `form:"password" binding:"required"`
}

type Authenticator

type Authenticator interface {
	Register(user string, password string) error
	Login(user AuthUser) error
}

type NullAuth

type NullAuth struct {
}

func (*NullAuth) Login

func (l *NullAuth) Login(user AuthUser) error

func (*NullAuth) Register

func (l *NullAuth) Register(user string, password string) error

Jump to

Keyboard shortcuts

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