Documentation ¶
Index ¶
- Constants
- func GetElasticSearchStatus(es *proto.ESDB, version int32) *status.Status
- func LastConvertSeq(c *proto.ConfigNew) int64
- func LastSeq(host, prefix, id string, version int32, username, password string) int64
- func LastSyncSeq(c *proto.ConfigNew) int64
- type ChainCommonIntMessage
- type ChainCommonStringMessage
- type ChainStatus
- type ChainVersionInfo
- type Health
- type ServerStatus
- type Status
Constants ¶
View Source
const ( MethodChain33Version = "Chain33.Version" MethodChain33GetPushSeqLastNum = "Chain33.GetPushSeqLastNum" MethodChain33GetCoinSymbol = "Chain33.GetCoinSymbol" )
Variables ¶
This section is empty.
Functions ¶
func GetElasticSearchStatus ¶
GetElasticSearchStatus 获取elasticsearch状态信息
Types ¶
type ChainCommonIntMessage ¶
type ChainCommonIntMessage struct {
Data int64 `json:"data"`
}
ChainCommonIntMessage 区块链通用整形消息
type ChainCommonStringMessage ¶
type ChainCommonStringMessage struct {
Data string `json:"data"`
}
ChainCommonStringMessage 区块链通用字符串消息
type ChainStatus ¶
type ChainStatus struct { Status string `json:"status"` PushSeq int64 `json:"push_seq"` // 推送高度 Coin string `json:"coin"` // 主代币信息 Version *ChainVersionInfo `json:"version"` }
ChainStatus 区块链状态信息
func GetChainStatus ¶
func GetChainStatus(host, pushName string) *ChainStatus
GetChainStatus 获取区块链状态信息
type ChainVersionInfo ¶
type ChainVersionInfo struct { Title string `json:"title"` // 区块链名,该节点 chain33.toml 中配置的 title 值 App string `json:"app"` // 应用 app 的版本 Chain33 string `json:"chain33"` // 版本信息,版本号-GitCommit(前八个字符) LocalDB string `json:"localDb"` // localdb 版本号 }
ChainVersionInfo 区块链版本信息
type ServerStatus ¶
type ServerStatus struct { Version string `json:"version"` SyncSeq int64 `json:"sync_seq"` // 同步序列高度 ConvSeq int64 `json:"conv_seq"` // 转换序列高度 Title string `json:"title"` Coin string `json:"coin"` }
ServerStatus 当前服务状态信息
func GetServerStatus ¶
func GetServerStatus(c *proto.ConfigNew) *ServerStatus
GetServerStatus 获取当前服务状态信息
Click to show internal directories.
Click to hide internal directories.