typex

package
v0.5.16 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2024 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CollectibleTypeStrings

func CollectibleTypeStrings() []string

CollectibleTypeStrings returns a slice of all String values of the enum

func ExchangeTypeStrings

func ExchangeTypeStrings() []string

ExchangeTypeStrings returns a slice of all String values of the enum

func GovernanceTypeStrings added in v0.5.6

func GovernanceTypeStrings() []string

GovernanceTypeStrings returns a slice of all String values of the enum

func MetaverseTypeStrings

func MetaverseTypeStrings() []string

MetaverseTypeStrings returns a slice of all String values of the enum

func RSSTypeStrings

func RSSTypeStrings() []string

RSSTypeStrings returns a slice of all String values of the enum

func SocialTypeStrings

func SocialTypeStrings() []string

SocialTypeStrings returns a slice of all String values of the enum

func TransactionTypeStrings

func TransactionTypeStrings() []string

TransactionTypeStrings returns a slice of all String values of the enum

func UnknownTypeStrings

func UnknownTypeStrings() []string

UnknownTypeStrings returns a slice of all String values of the enum

Types

type CollectibleType

type CollectibleType uint64
const (
	CollectibleApproval CollectibleType = iota + 1
	CollectibleBurn
	CollectibleMint
	CollectibleTrade
	CollectibleTransfer
	CollectibleAuction
)

func CollectibleTypeString

func CollectibleTypeString(s string) (CollectibleType, error)

CollectibleTypeString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.

func CollectibleTypeValues

func CollectibleTypeValues() []CollectibleType

CollectibleTypeValues returns all values of the enum

func (CollectibleType) IsACollectibleType

func (i CollectibleType) IsACollectibleType() bool

IsACollectibleType returns "true" if the value is listed in the enum definition. "false" otherwise

func (CollectibleType) MarshalJSON

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

MarshalJSON implements the json.Marshaler interface for CollectibleType

func (CollectibleType) Name

func (i CollectibleType) Name() string

func (*CollectibleType) Scan

func (i *CollectibleType) Scan(value interface{}) error

func (CollectibleType) String

func (i CollectibleType) String() string

func (CollectibleType) Tag

func (i CollectibleType) Tag() tag.Tag

func (*CollectibleType) UnmarshalJSON

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

UnmarshalJSON implements the json.Unmarshaler interface for CollectibleType

func (CollectibleType) Value

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

func (CollectibleType) Values

func (CollectibleType) Values() []string

type ExchangeType

type ExchangeType uint64
const (
	ExchangeLiquidity ExchangeType = iota + 1
	ExchangeStaking
	ExchangeSwap
	ExchangeLoan
)

func ExchangeTypeString

func ExchangeTypeString(s string) (ExchangeType, error)

ExchangeTypeString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.

func ExchangeTypeValues

func ExchangeTypeValues() []ExchangeType

ExchangeTypeValues returns all values of the enum

func (ExchangeType) IsAExchangeType

func (i ExchangeType) IsAExchangeType() bool

IsAExchangeType returns "true" if the value is listed in the enum definition. "false" otherwise

func (ExchangeType) MarshalJSON

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

MarshalJSON implements the json.Marshaler interface for ExchangeType

func (ExchangeType) Name

func (i ExchangeType) Name() string

func (*ExchangeType) Scan

func (i *ExchangeType) Scan(value interface{}) error

func (ExchangeType) String

func (i ExchangeType) String() string

func (ExchangeType) Tag

func (i ExchangeType) Tag() tag.Tag

func (*ExchangeType) UnmarshalJSON

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

UnmarshalJSON implements the json.Unmarshaler interface for ExchangeType

func (ExchangeType) Value

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

func (ExchangeType) Values

func (ExchangeType) Values() []string

type GovernanceType added in v0.5.6

type GovernanceType uint64
const (
	GovernanceProposal GovernanceType = iota + 1 // proposal
	GovernanceVote                               // vote
)

func GovernanceTypeString added in v0.5.6

func GovernanceTypeString(s string) (GovernanceType, error)

GovernanceTypeString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.

func GovernanceTypeValues added in v0.5.6

func GovernanceTypeValues() []GovernanceType

GovernanceTypeValues returns all values of the enum

func (GovernanceType) IsAGovernanceType added in v0.5.6

func (i GovernanceType) IsAGovernanceType() bool

IsAGovernanceType returns "true" if the value is listed in the enum definition. "false" otherwise

func (GovernanceType) MarshalJSON added in v0.5.6

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

MarshalJSON implements the json.Marshaler interface for GovernanceType

func (GovernanceType) Name added in v0.5.6

func (i GovernanceType) Name() string

func (*GovernanceType) Scan added in v0.5.6

func (i *GovernanceType) Scan(value interface{}) error

func (GovernanceType) String added in v0.5.6

func (i GovernanceType) String() string

func (GovernanceType) Tag added in v0.5.6

func (i GovernanceType) Tag() tag.Tag

func (*GovernanceType) UnmarshalJSON added in v0.5.6

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

UnmarshalJSON implements the json.Unmarshaler interface for GovernanceType

func (GovernanceType) Value added in v0.5.6

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

func (GovernanceType) Values added in v0.5.6

func (GovernanceType) Values() []string

type MetaverseType

type MetaverseType uint64
const (
	MetaverseBurn MetaverseType = iota + 1
	MetaverseMint
	MetaverseTrade
	MetaverseTransfer
)

func MetaverseTypeString

func MetaverseTypeString(s string) (MetaverseType, error)

MetaverseTypeString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.

func MetaverseTypeValues

func MetaverseTypeValues() []MetaverseType

MetaverseTypeValues returns all values of the enum

func (MetaverseType) IsAMetaverseType

func (i MetaverseType) IsAMetaverseType() bool

IsAMetaverseType returns "true" if the value is listed in the enum definition. "false" otherwise

func (MetaverseType) MarshalJSON

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

MarshalJSON implements the json.Marshaler interface for MetaverseType

func (MetaverseType) Name

func (i MetaverseType) Name() string

func (*MetaverseType) Scan

func (i *MetaverseType) Scan(value interface{}) error

func (MetaverseType) String

func (i MetaverseType) String() string

func (MetaverseType) Tag

func (i MetaverseType) Tag() tag.Tag

func (*MetaverseType) UnmarshalJSON

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

UnmarshalJSON implements the json.Unmarshaler interface for MetaverseType

func (MetaverseType) Value

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

func (MetaverseType) Values

func (MetaverseType) Values() []string

type RSSType

type RSSType uint64
const (
	RSSFeed RSSType = iota + 1
)

func RSSTypeString

func RSSTypeString(s string) (RSSType, error)

RSSTypeString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.

func RSSTypeValues

func RSSTypeValues() []RSSType

RSSTypeValues returns all values of the enum

func (RSSType) IsARSSType

func (i RSSType) IsARSSType() bool

IsARSSType returns "true" if the value is listed in the enum definition. "false" otherwise

func (RSSType) MarshalJSON

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

MarshalJSON implements the json.Marshaler interface for RSSType

func (RSSType) Name

func (r RSSType) Name() string

func (*RSSType) Scan

func (i *RSSType) Scan(value interface{}) error

func (RSSType) String

func (i RSSType) String() string

func (RSSType) Tag

func (r RSSType) Tag() tag.Tag

func (*RSSType) UnmarshalJSON

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

UnmarshalJSON implements the json.Unmarshaler interface for RSSType

func (RSSType) Value

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

func (RSSType) Values

func (RSSType) Values() []string

type SocialType

type SocialType uint64
const (
	SocialComment SocialType = iota + 1
	SocialDelete
	SocialMint
	SocialPost
	SocialProfile
	SocialProxy
	SocialRevise
	SocialReward
	SocialShare
	SocialLike
)

func SocialTypeString

func SocialTypeString(s string) (SocialType, error)

SocialTypeString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.

func SocialTypeValues

func SocialTypeValues() []SocialType

SocialTypeValues returns all values of the enum

func (SocialType) IsASocialType

func (i SocialType) IsASocialType() bool

IsASocialType returns "true" if the value is listed in the enum definition. "false" otherwise

func (SocialType) MarshalJSON

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

MarshalJSON implements the json.Marshaler interface for SocialType

func (SocialType) Name

func (i SocialType) Name() string

func (*SocialType) Scan

func (i *SocialType) Scan(value interface{}) error

func (SocialType) String

func (i SocialType) String() string

func (SocialType) Tag

func (i SocialType) Tag() tag.Tag

func (*SocialType) UnmarshalJSON

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

UnmarshalJSON implements the json.Unmarshaler interface for SocialType

func (SocialType) Value

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

func (SocialType) Values

func (SocialType) Values() []string

type TransactionType

type TransactionType uint64
const (
	TransactionApproval TransactionType = iota + 1
	TransactionBridge
	TransactionBurn
	TransactionMint
	TransactionTransfer
)

func TransactionTypeString

func TransactionTypeString(s string) (TransactionType, error)

TransactionTypeString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.

func TransactionTypeValues

func TransactionTypeValues() []TransactionType

TransactionTypeValues returns all values of the enum

func (TransactionType) IsATransactionType

func (i TransactionType) IsATransactionType() bool

IsATransactionType returns "true" if the value is listed in the enum definition. "false" otherwise

func (TransactionType) MarshalJSON

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

MarshalJSON implements the json.Marshaler interface for TransactionType

func (TransactionType) Name

func (i TransactionType) Name() string

func (*TransactionType) Scan

func (i *TransactionType) Scan(value interface{}) error

func (TransactionType) String

func (i TransactionType) String() string

func (TransactionType) Tag

func (i TransactionType) Tag() tag.Tag

func (*TransactionType) UnmarshalJSON

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

UnmarshalJSON implements the json.Unmarshaler interface for TransactionType

func (TransactionType) Value

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

func (TransactionType) Values

func (TransactionType) Values() []string

type UnknownType

type UnknownType uint64
const (
	Unknown UnknownType = iota
)

func UnknownTypeString

func UnknownTypeString(s string) (UnknownType, error)

UnknownTypeString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.

func UnknownTypeValues

func UnknownTypeValues() []UnknownType

UnknownTypeValues returns all values of the enum

func (UnknownType) IsAUnknownType

func (i UnknownType) IsAUnknownType() bool

IsAUnknownType returns "true" if the value is listed in the enum definition. "false" otherwise

func (UnknownType) MarshalJSON

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

MarshalJSON implements the json.Marshaler interface for UnknownType

func (UnknownType) Name

func (i UnknownType) Name() string

func (*UnknownType) Scan

func (i *UnknownType) Scan(value interface{}) error

func (UnknownType) String

func (i UnknownType) String() string

func (UnknownType) Tag

func (i UnknownType) Tag() tag.Tag

func (*UnknownType) UnmarshalJSON

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

UnmarshalJSON implements the json.Unmarshaler interface for UnknownType

func (UnknownType) Value

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

func (UnknownType) Values

func (UnknownType) Values() []string

Jump to

Keyboard shortcuts

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