mtid

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2024 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 MOMID

type MOMID struct {
	MTID
}

MOMID is a type for the mom-id (manage-other-mytokens)-id

func (MOMID) MarshalJSON

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

MarshalJSON implements the json.Marshaler interface

func (*MOMID) UnmarshalJSON

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

UnmarshalJSON implements the json.Unmarshaler interface

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, error)

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