enums

package
v0.0.0-...-1ccb659 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddressTypeStrings

func AddressTypeStrings() []string

AddressTypeStrings returns a slice of all String values of the enum

func PortTypeStrings

func PortTypeStrings() []string

PortTypeStrings returns a slice of all String values of the enum

Types

type AddressType

type AddressType int
const (
	AddressTypeIP AddressType = iota
	AddressTypeDomain
)

func AddressTypeString

func AddressTypeString(s string) (AddressType, error)

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

func AddressTypeValues

func AddressTypeValues() []AddressType

AddressTypeValues returns all values of the enum

func (AddressType) IsAAddressType

func (i AddressType) IsAAddressType() bool

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

func (AddressType) MarshalJSON

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

MarshalJSON implements the json.Marshaler interface for AddressType

func (AddressType) String

func (i AddressType) String() string

func (*AddressType) UnmarshalJSON

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

UnmarshalJSON implements the json.Unmarshaler interface for AddressType

type Color

type Color string
const (
	ColorRed    Color = "\u001b[31m"
	ColorGreen  Color = "\u001b[32m"
	ColorYellow Color = "\u001b[33m"
	ColorReset  Color = "\u001b[0m"
)

type ColorTable

type ColorTable string
const (
	ColorTableWhite ColorTable = "WHITE"
	ColorTableDark  ColorTable = "DARK"
	ColorTableColor ColorTable = "COLOR"
)

func ColorTableFromString

func ColorTableFromString(value string) ColorTable

func (ColorTable) String

func (e ColorTable) String() string

type MetricType

type MetricType string
const (
	MetricTypeUndefined               MetricType = "UNDEFINED"
	MetricTypeUptime                  MetricType = "UPTIME"
	MetricTypeVersion                 MetricType = "VERSION"
	MetricTypeCommit                  MetricType = "COMMIT"
	MetricTypeHighestSyncedCheckpoint MetricType = "HIGHEST_SYNCED_CHECKPOINT"
	MetricTypeSuiNetworkPeers         MetricType = "SUI_NETWORK_PEERS"
	MetricTypeTransactionsPerSecond   MetricType = "TRANSACTIONS_PER_SECOND"
	MetricTypeTotalTransactionsNumber MetricType = "TOTAL_TRANSACTIONS_NUMBER"
	MetricTypeLatestCheckpoint        MetricType = "LATEST_CHECKPOINT"
	MetricTypeTxSyncProgress          MetricType = "TX_SYNC_PROGRESS"
	MetricTypeCheckSyncProgress       MetricType = "CHECK_SYNC_PROGRESS"
	MetricTypeCurrentEpoch            MetricType = "CURRENT_EPOCH"
	MetricTypeTimeTillNextEpoch       MetricType = "TIME_TILL_NEXT_EPOCH"
	MetricTypeCheckpointsPerSecond    MetricType = "CHECKPOINTS_PER_SECOND"
)

func MetricTypeFromString

func MetricTypeFromString(value string) (MetricType, error)

func (MetricType) ToString

func (e MetricType) ToString() string

type NetworkType

type NetworkType string
const (
	NetworkTypeUndefined NetworkType = "UNDEFINED"
	NetworkTypeDevnet    NetworkType = "DEVNET"
	NetworkTypeTestnet   NetworkType = "TESTNET"
)

func NetworkTypeFromString

func NetworkTypeFromString(value string) (NetworkType, error)

func (NetworkType) String

func (i NetworkType) String() string

func (NetworkType) ToRPC

func (i NetworkType) ToRPC() string

type PortType

type PortType int
const (
	PortTypeUndefined PortType = iota
	PortTypeRPC
	PortTypeMetrics
	PortTypePeer
)

func PortTypeString

func PortTypeString(s string) (PortType, error)

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

func PortTypeValues

func PortTypeValues() []PortType

PortTypeValues returns all values of the enum

func (PortType) IsAPortType

func (i PortType) IsAPortType() bool

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

func (PortType) MarshalJSON

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

MarshalJSON implements the json.Marshaler interface for PortType

func (PortType) String

func (i PortType) String() string

func (*PortType) UnmarshalJSON

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

UnmarshalJSON implements the json.Unmarshaler interface for PortType

type RPCMethod

type RPCMethod string
const (
	RPCMethodGetTotalTransactionNumber         RPCMethod = "sui_getTotalTransactionNumber"
	RPCMethodGetSuiSystemState                 RPCMethod = "sui_getSuiSystemState"
	RPCMethodGetLatestCheckpointSequenceNumber RPCMethod = "sui_getLatestCheckpointSequenceNumber"
	RPCMethodGetCheckpointSummary              RPCMethod = "sui_getCheckpointSummary"
)

func (RPCMethod) String

func (e RPCMethod) String() string

type Status

type Status string
const (
	StatusGreen  Status = "\U0001F7E9"
	StatusYellow Status = "\U0001F7E8"
	StatusRed    Status = "\U0001F7E5"
	StatusGrey   Status = "\U0001F7E4"
)

func (Status) ColorStatus

func (i Status) ColorStatus() string

func (Status) DashboardStatus

func (i Status) DashboardStatus() string

func (Status) StatusToPlaceholder

func (i Status) StatusToPlaceholder() string

type TableType

type TableType string
const (
	TableTypeRPC   TableType = "REMOTE RPC"
	TableTypeNode  TableType = "YOUR NODE"
	TableTypePeers TableType = "PEERS"
)

Jump to

Keyboard shortcuts

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