auth

package
v0.0.0-...-c46d5a2 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: GPL-3.0 Imports: 7 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 NewController

func NewController() *AuthController

func (AuthController) CreateToken

func (ac AuthController) CreateToken(w http.ResponseWriter, r *http.Request)

func (AuthController) RegisterRoutes

func (ac AuthController) RegisterRoutes(r *http.ServeMux)

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