tokens

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2024 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(
	jctx *lib.JournalistContext,
	fiberRouter *fiber.Router,
)

Types

type TokenCreateModel

type TokenCreateModel struct {
	Name string `json:"name" validate:"required,alphanum,max=32"`
}

type TokenCreateResponse

type TokenCreateResponse struct {
	Success bool            `json:"success"`
	Token   *TokenShowModel `json:"token"`
	Message string          `json:"message"`
}

type TokenShowModel

type TokenShowModel struct {
	ID    string `json:"id"`
	Type  string `json:"type"`
	Name  string `json:"tokenname"`
	Token string `json:"token"`
}

Jump to

Keyboard shortcuts

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