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 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
func PortTypeString ¶
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 ¶
IsAPortType returns "true" if the value is listed in the enum definition. "false" otherwise
func (PortType) MarshalJSON ¶
MarshalJSON implements the json.Marshaler interface for PortType
func (*PortType) UnmarshalJSON ¶
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" )
type Status ¶
type Status string