tokens

package
v0.0.0-...-68d433b Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2024 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const CurrentVersion = "v1"

Variables

This section is empty.

Functions

This section is empty.

Types

type Token

type Token struct {
	Version string `db:"token_version"`
	Public  string `db:"token_public"`
	Secret  string `db:"token_secret"`
	Salt    string `db:"token_salt"`
}

func Parse

func Parse(incomingToken string) (Token, error)

Parse converts a string containing a token into the Token type

func (Token) String

func (t Token) String() string

String converts a Token object to a string

Jump to

Keyboard shortcuts

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