mtid

package
v0.6.1-c Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MTID

type MTID struct {
	uuid.UUID
	// contains filtered or unexported fields
}

MTID is a type for the mytoken id

func New

func New() MTID

New creates a new MTID

func (*MTID) Hash

func (i *MTID) Hash() string

Hash returns the MTID's hash

func (*MTID) HashValid

func (i *MTID) HashValid() bool

HashValid checks if the MTID hash is valid

func (MTID) MarshalJSON

func (i MTID) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaler interface

func (*MTID) Scan

func (i *MTID) Scan(src interface{}) error

Scan implements the sql.Scanner interface

func (*MTID) UnmarshalJSON

func (i *MTID) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaler interface

func (*MTID) Valid

func (i *MTID) Valid() bool

Valid checks if the MTID is valid

func (MTID) Value

func (i MTID) Value() (driver.Value, error)

Value implements the driver.Valuer interface

Jump to

Keyboard shortcuts

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