auth

package
v0.0.0-...-40c89de Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service interface {
	Register(username, password string) error
	Authenticate(username, password string) (user *User, authToken *token, err error)
	Validate(token string) (*User, error)
}

func NewService

func NewService() Service

type User

type User struct {
	ID       uuid.UUID
	Username string
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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