Documentation
¶
Overview ¶
Package vxchrono is the resource module for VxChrono — the autonomous goal executor and scheduler. Create goals, attach cron/interval schedules, launch runs, and drive run lifecycle.
Endpoints (all on the per-tenant node):
POST /api/v2/vxchrono/init
GET /api/v2/vxchrono/goals
POST /api/v2/vxchrono/goals
GET /api/v2/vxchrono/goals/{id}
PATCH /api/v2/vxchrono/goals/{id}
DELETE /api/v2/vxchrono/goals/{id}
POST /api/v2/vxchrono/goals/{id}/schedule
POST /api/v2/vxchrono/goals/{id}/run
GET /api/v2/vxchrono/runs/{id}
POST /api/v2/vxchrono/runs/{id}/pause|resume|stop
POST /api/v2/vxchrono/scheduler/dispatch
Index ¶
- type Client
- func (c *Client) CreateGoal(ctx context.Context, goal map[string]interface{}) (Result, error)
- func (c *Client) DeleteGoal(ctx context.Context, goalID string) (Result, error)
- func (c *Client) DispatchScheduler(ctx context.Context) (Result, error)
- func (c *Client) GetGoal(ctx context.Context, goalID string) (Result, error)
- func (c *Client) GetRun(ctx context.Context, runID string) (Result, error)
- func (c *Client) Init(ctx context.Context) (Result, error)
- func (c *Client) LaunchRun(ctx context.Context, goalID string, payload map[string]interface{}) (Result, error)
- func (c *Client) ListGoals(ctx context.Context) (Result, error)
- func (c *Client) PauseRun(ctx context.Context, runID string) (Result, error)
- func (c *Client) ResumeRun(ctx context.Context, runID string) (Result, error)
- func (c *Client) Schedule(ctx context.Context, goalID string, schedule map[string]interface{}) (Result, error)
- func (c *Client) StopRun(ctx context.Context, runID string) (Result, error)
- func (c *Client) UpdateGoal(ctx context.Context, goalID string, patch map[string]interface{}) (Result, error)
- type Result
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client is the entry point. Construct via c.VxChrono().
func (*Client) CreateGoal ¶
CreateGoal creates a new autonomous goal.
func (*Client) DeleteGoal ¶
DeleteGoal deletes a goal.
func (*Client) DispatchScheduler ¶
DispatchScheduler ticks the scheduler once — fires any goals whose next_run_at has elapsed.
func (*Client) LaunchRun ¶
func (c *Client) LaunchRun(ctx context.Context, goalID string, payload map[string]interface{}) (Result, error)
LaunchRun launches a run for a goal. payload may be nil.
func (*Client) Schedule ¶
func (c *Client) Schedule(ctx context.Context, goalID string, schedule map[string]interface{}) (Result, error)
Schedule attaches a cron/interval schedule to a goal.
Click to show internal directories.
Click to hide internal directories.