auth

package
v0.0.0-...-62a6041 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthController

type AuthController struct {
}

func New

func New() *AuthController

func (AuthController) CreateToken

func (uc AuthController) CreateToken(w http.ResponseWriter, r *http.Request, p httprouter.Params)

func (AuthController) RegisterRoutes

func (uc AuthController) RegisterRoutes(r *httprouter.Router)

type CreateTokenDTO

type CreateTokenDTO struct {
	Username      string
	InputPassword string
}

type CreateTokenResponse

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

Jump to

Keyboard shortcuts

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