http

package
v0.0.0-...-6b2a69b Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2020 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendRoutes

func AppendRoutes(router *httprouter.Router, key *ecdsa.PrivateKey, dependencies Dependencies)

AppendRoutes populates the router with all the endpoints related to accounts.

Types

type Dependencies

type Dependencies interface {
	accounts.Store
	email.Emailer
}

type JWT

type JWT struct {
	UserID int64 `json:"userId"`
}

JWT is the contract class for our auth objects

Jump to

Keyboard shortcuts

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