auth

package
v0.0.0-...-2d2b994 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2022 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultKeyName = "Default"

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct{}

func (Handler) Whoami

func (Handler) Whoami(_ api.Context, u api.User) (User, error)

type Registration

type Registration struct {
	User      db.User
	ApiKey    db.ApiKey
	Plaintext apikey.Plaintext
}

func RegisterUser

func RegisterUser(ctx context.Context, tx db.DBTX, email string) (*Registration, error)

type User

type User struct {
	ID string `json:"id"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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