comm

package
v1.6.2 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2023 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitRouter

func InitRouter(router gin.IRouter, cfg *proto.ConfigNew)

InitRouter 初始化proofrpc接口的router路由表

Types

type Comm

type Comm struct {
	SyncEs    *proto.ESDB
	ConvertEs *proto.ESDB
	ConvertID string
	Version   int32
	Config    *proto.ConfigNew
}

Comm Comm

func (*Comm) GetHealth

func (comm *Comm) GetHealth(c *gin.Context)

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

func (comm *Comm) GetStatus(c *gin.Context)

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

func (comm *Comm) LastSeq(c *gin.Context)

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]

Jump to

Keyboard shortcuts

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