Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventListRo ¶
type EventListRo struct { TaskId uint `query:"taskId" json:"taskId" validate:"required,gt=0"` Event string `query:"event" json:"event" validate:"required,gt=0"` Cols []string `query:"cols" json:"cols" validate:"omitempty"` Wheres [][]Where `query:"wheres" json:"wheres" validate:"omitempty"` BlockRo *BlockRo `query:"blockRo" json:"blockRo" validate:"omitempty"` TxRo *TxRo `query:"txRo" json:"txRo" validate:"omitempty"` TimeRo *TimeRo `query:"timeRo" json:"timeRo" validate:"omitempty"` OrderRo *OrderRo `query:"orderRo" json:"orderRo" validate:"omitempty"` PageRo *PageRo `query:"pageRo" json:"pageRo" validate:"omitempty"` }
type Resp ¶
type Resp struct { Code int `json:"code"` Msg string `json:"msg"` Data interface{} `json:"data"` TraceId string `json:"traceId,omitempty"` }
Resp http resp
func (*Resp) SuccessPage ¶
SuccessPage display successful result with page info
type ResultPage ¶
type ResultPage struct { Items interface{} `json:"items"` Total int64 `json:"total"` }
ResultPage result with page info
type TaskAddRo ¶
type TaskAddRo struct { Contract string `query:"contract" validate:"required,len=42,startswith=0x"` Abi string `query:"abi" validate:"required"` ChainId uint64 `query:"chainId" validate:"required,gt=0"` Rpc string `query:"rpc" validate:"required"` // 开始区块,建议是合约部署时区块号 Start uint64 `query:"start" validate:"required,gt=0"` // 轮询间隔,建议为区块出块间隔,例如:ethereum 12sec,BSC 3sec Interval uint64 `query:"interval" validate:"required,gt=0"` }
type TaskDeleteRo ¶
type TaskDeleteRo struct {
Id uint `json:"id" validate:"required,gt=0"`
}
type TaskListRo ¶ added in v0.3.1
type TaskPauseRo ¶
type TaskUpdateRo ¶
Click to show internal directories.
Click to hide internal directories.