Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Comm ¶
type Comm struct { SyncEs *proto.ESDB ConvertEs *proto.ESDB ConvertID string Version int32 Config *proto.ConfigNew }
Comm Comm
func (*Comm) GetHealth ¶
GetHealth 获取服务运行状态和版本 @Summary 获取服务运行状态和版本 @Description get server running state and version(这是一个说明) @Tags Comm @Produce json @Param input body swagger.ClientRequestNil true "INPUT" @Success 200 {object} swagger.ServerResponse{result=swagger.Health} @Failure 400 {object} swagger.ServerResponse{error=string} @Router /v1/health [post]
func (*Comm) GetStatus ¶
GetStatus 获取服务详细状态信息 @Summary 获取服务详细状态信息 @Description get server status in detail @Tags Comm @Produce json @Param input body swagger.ClientRequestNil true "INPUT" @Success 200 {object} swagger.ServerResponse{result=swagger.Status} @Failure 400 {object} swagger.ServerResponse{error=string} @Router /v1/status [post]
func (*Comm) LastSeq ¶
LastSeq 获取当前最新同步以及解析的区块序列号 @Summary 获取当前最新同步以及解析的区块序列号 @Description get last sequence @Tags Comm @Produce json @Param input body swagger.ClientRequestNil true "INPUT" @Success 200 {object} swagger.ServerResponse{result=rpcutils.RepLastSeq} @Failure 400 {object} swagger.ServerResponse{error=string} @Router /v1/LastSeq [post]