Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct { // all clients registered by mesg server. pb.EventClient pb.ExecutionClient pb.InstanceClient pb.ServiceClient // instance hash that could be used in api calls. InstanceHash []byte }
Client is a client to connect to all mesg exposed API.
func (*Client) TaskRunner ¶
func (c *Client) TaskRunner() *TaskRunner
TaskRunner returns runner that could process execution without direct access to MESG api.
type TaskRunner ¶
type TaskRunner struct {
// contains filtered or unexported fields
}
TaskRunner handles running task in a loop.
func (*TaskRunner) Add ¶
func (r *TaskRunner) Add(name string, fn TaskFn)
Add sets new task handler. It overwrites previous one.
func (*TaskRunner) Run ¶
func (r *TaskRunner) Run() error
Run recives executions and runs dedicated task for them.
Click to show internal directories.
Click to hide internal directories.