mtid

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2021 License: MIT Imports: 5 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

func (*MTID) HashValid

func (i *MTID) HashValid() bool

func (MTID) MarshalJSON

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

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

func (*MTID) Valid

func (i *MTID) Valid() bool

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