Documentation ¶
Index ¶
- Constants
- func NewTaskHandler(cfg *config.Config, log *xlog.XLog) taskapi.TaskApiInterface
- type Server
- func (s *Server) Error(c *gin.Context, path string, err string)
- func (s *Server) ExistNodeId(blockChainCode int64, nodeId string) bool
- func (s *Server) PushBlockTask(c *gin.Context)
- func (s *Server) PushReceiptTask(c *gin.Context)
- func (s *Server) PushReceiptsTask(c *gin.Context)
- func (s *Server) PushTxTask(c *gin.Context)
- func (s *Server) PushTxsTask(c *gin.Context)
- func (s *Server) Success(c *gin.Context, resp interface{}, path string)
- type TaskHandler
Constants ¶
View Source
const ( SUCCESS = 0 FAIL = 1 )
View Source
const (
NodeKey = "nodeKey_%v"
)
Variables ¶
This section is empty.
Functions ¶
func NewTaskHandler ¶
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) PushBlockTask ¶
func (*Server) PushReceiptTask ¶
func (*Server) PushReceiptsTask ¶
func (*Server) PushTxTask ¶
func (*Server) PushTxsTask ¶
type TaskHandler ¶
type TaskHandler struct {
// contains filtered or unexported fields
}
func (*TaskHandler) SendNodeTask ¶
func (m *TaskHandler) SendNodeTask(task *taskapi.NodeTask) error
Click to show internal directories.
Click to hide internal directories.