rest

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2022 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UsernameClaimKey    = "username"
	AuthoritiesClaimKey = "authorities"
)

Variables

View Source
var (
	ClaimsCtxKey = &contextKey{"Claims"}
)

Context keys

Functions

func PrintRoutes

func PrintRoutes(router *chi.Mux)

func Routes

func Routes(cfg config.IConfiguration, serviceFactory model.IServiceFactory) *chi.Mux

Types

type AuthRequest

type AuthRequest struct {
	Username string `json:"username"`
	Password string `json:"password"`
}

type AuthToken

type AuthToken struct {
	Token string `json:"token"`
}

Jump to

Keyboard shortcuts

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