auth

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2020 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Token

type Token struct {
	Token string
}

func (*Token) Authenticate

func (t *Token) Authenticate(r *http.Request)

type Unauthenticated

type Unauthenticated struct{}

func (*Unauthenticated) Authenticate

func (n *Unauthenticated) Authenticate(_ *http.Request)

type User

type User struct {
	Username string `json:"-"`
	Password string `json:"password"`
	*api.Record
}

func (*User) Authenticate

func (u *User) Authenticate(r *http.Request)

func (*User) Put

func (u *User) Put() string

Jump to

Keyboard shortcuts

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