handler

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: May 15, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Authenticated added in v0.3.1

func Authenticated(ctx context.Context) (uuid.UUID, bool)

Types

type Authentication

type Authentication struct {
	*sql.DB
}

func (*Authentication) BeginTx

func (middleware *Authentication) BeginTx(parent context.Context, options *sql.TxOptions) (*sql.Tx, error)

func (*Authentication) Wrap

func (middleware *Authentication) Wrap(route http.HandlerFunc) http.HandlerFunc

type Session

type Session struct {
	*sql.DB
}

func (*Session) Create

func (handler *Session) Create(w http.ResponseWriter, r *http.Request)

func (*Session) Delete

func (handler *Session) Delete(w http.ResponseWriter, r *http.Request)

func (*Session) Revoke

func (handler *Session) Revoke(w http.ResponseWriter, r *http.Request)

type User

type User struct {
	*sql.DB
}

func (*User) Create

func (handler *User) Create(w http.ResponseWriter, r *http.Request)

func (*User) Delete

func (handler *User) Delete(w http.ResponseWriter, r *http.Request)

func (*User) Lookup

func (handler *User) Lookup(w http.ResponseWriter, r *http.Request)

func (*User) Verify

func (handler *User) Verify(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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