code

package
v0.0.0-...-afa1830 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2021 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateAsRawJSON

func GenerateAsRawJSON() (ret types.JSON, err error)

GenerateAsRawJSON a code cryptographically: a code with secure pseudorandom number generated.

Types

type Metadata

type Metadata struct {
	Code string `json:"code"`
}

Metadata ...

func ToMetadata

func ToMetadata(msg json.Marshaler) (ret Metadata, err error)

ToMetadata code conversion from a RawJSON message

func (Metadata) Matches

func (c Metadata) Matches(input Metadata) bool

Matches checks whether an input code the current code matches

Jump to

Keyboard shortcuts

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