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 { ResCode int `json:"resCode"` ResDesc string `json:"resDesc"` Result interface{} `json:"result"` TraceId string `json:"traceId,omitempty"` }
Resp http resp
func (*Resp) SuccessPage ¶
Success display successful result with page info
type ResultPage ¶
type ResultPage struct { Content interface{} `json:"content"` 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"` // 轮询间隔,建议为区块出块间隔 Interval uint64 `query:"interval" validate:"required,gt=0"` }
type TaskDeleteRo ¶
type TaskDeleteRo struct {
Id uint `json:"id" validate:"required,gt=0"`
}
type TaskPauseRo ¶
type TaskUpdateRo ¶
Click to show internal directories.
Click to hide internal directories.