Documentation ¶
Index ¶
- func Serve(cfg *config.Config)
- type Controller
- type Processor
- type Server
- func (p *Server) CreateTask(ctx context.Context, req *pb.CreateTaskRequest) (*pb.CreateTaskResponse, error)
- func (p *Server) DescribeTasks(ctx context.Context, req *pb.DescribeTasksRequest) (*pb.DescribeTasksResponse, error)
- func (p *Server) RetryTasks(ctx context.Context, req *pb.RetryTasksRequest) (*pb.RetryTasksResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Controller ¶
func NewController ¶
func NewController(pi *pi.Pi, hostname string) *Controller
func (*Controller) ExtractTasks ¶
func (c *Controller) ExtractTasks()
func (*Controller) GetTaskLength ¶
func (c *Controller) GetTaskLength() uint32
func (*Controller) HandleTask ¶
func (c *Controller) HandleTask(taskId string, cb func()) error
func (*Controller) HandleTasks ¶
func (c *Controller) HandleTasks()
func (*Controller) IsRunningExceed ¶
func (c *Controller) IsRunningExceed() bool
func (*Controller) Serve ¶
func (c *Controller) Serve()
type Server ¶
func (*Server) CreateTask ¶
func (p *Server) CreateTask(ctx context.Context, req *pb.CreateTaskRequest) (*pb.CreateTaskResponse, error)
func (*Server) DescribeTasks ¶
func (p *Server) DescribeTasks(ctx context.Context, req *pb.DescribeTasksRequest) (*pb.DescribeTasksResponse, error)
func (*Server) RetryTasks ¶
func (p *Server) RetryTasks(ctx context.Context, req *pb.RetryTasksRequest) (*pb.RetryTasksResponse, error)
Click to show internal directories.
Click to hide internal directories.