Documentation
¶
Index ¶
- Variables
- func DefineComponent(ctx context.Context, srv *datly.Service) (*repository.Component, error)
- type Handler
- type Input
- type Output
- type Schedule
- func (m *Schedule) SetAgentRef(v string)
- func (m *Schedule) SetCreatedAt(v time.Time)
- func (m *Schedule) SetCronExpr(v string)
- func (m *Schedule) SetDescription(v string)
- func (m *Schedule) SetEnabled(v bool)
- func (m *Schedule) SetEndAt(v time.Time)
- func (m *Schedule) SetId(v string)
- func (m *Schedule) SetIntervalSeconds(v int)
- func (m *Schedule) SetLastError(v string)
- func (m *Schedule) SetLastRunAt(v time.Time)
- func (m *Schedule) SetLastStatus(v string)
- func (m *Schedule) SetModelOverride(v string)
- func (m *Schedule) SetName(v string)
- func (m *Schedule) SetNextRunAt(v time.Time)
- func (m *Schedule) SetScheduleType(v string)
- func (m *Schedule) SetStartAt(v time.Time)
- func (m *Schedule) SetTaskPrompt(v string)
- func (m *Schedule) SetTaskPromptUri(v string)
- func (m *Schedule) SetTimezone(v string)
- func (m *Schedule) SetUpdatedAt(v time.Time)
- type ScheduleHas
- type Schedules
Constants ¶
This section is empty.
Variables ¶
View Source
var FS embed.FS
View Source
var PackageName = "scheduler/schedule/write"
View Source
var PathURI = "/v1/api/agently/schedule"
Functions ¶
func DefineComponent ¶
Types ¶
type Input ¶
type Input struct {
Schedules []*Schedule `parameter:",kind=body,in=data"`
CurSchedulesId *struct{ Values []string } `` /* 126-byte string literal not displayed */
CurSchedule []*Schedule `parameter:",kind=view,in=CurSchedule" view:"CurSchedule" sql:"uri=sql/cur_schedule.sql"`
CurScheduleById map[string]*Schedule
}
type Schedule ¶
type Schedule struct {
Id string `sqlx:"id,primaryKey" validate:"required"`
Name string `sqlx:"name" validate:"required"`
Description *string `sqlx:"description" json:",omitempty"`
AgentRef string `sqlx:"agent_ref" validate:"required"`
ModelOverride *string `sqlx:"model_override" json:",omitempty"`
Enabled bool `sqlx:"enabled" `
StartAt *time.Time `sqlx:"start_at" json:",omitempty"`
EndAt *time.Time `sqlx:"end_at" json:",omitempty"`
ScheduleType string `sqlx:"schedule_type" validate:"required"`
CronExpr *string `sqlx:"cron_expr" json:",omitempty"`
IntervalSeconds *int `sqlx:"interval_seconds" json:",omitempty"`
Timezone string `sqlx:"timezone" validate:"required"`
TaskPromptUri *string `sqlx:"task_prompt_uri" json:",omitempty"`
TaskPrompt *string `sqlx:"task_prompt" json:",omitempty"`
NextRunAt *time.Time `sqlx:"next_run_at" json:",omitempty"`
LastRunAt *time.Time `sqlx:"last_run_at" json:",omitempty"`
LastStatus *string `sqlx:"last_status" json:",omitempty"`
LastError *string `sqlx:"last_error" json:",omitempty"`
CreatedAt *time.Time `sqlx:"created_at" json:",omitempty"`
UpdatedAt *time.Time `sqlx:"updated_at" json:",omitempty"`
Has *ScheduleHas `setMarker:"true" format:"-" sqlx:"-" diff:"-" json:"-"`
}
func (*Schedule) SetAgentRef ¶
func (*Schedule) SetCreatedAt ¶
func (*Schedule) SetCronExpr ¶
func (*Schedule) SetDescription ¶
func (*Schedule) SetEnabled ¶
func (*Schedule) SetIntervalSeconds ¶
func (*Schedule) SetLastError ¶
func (*Schedule) SetLastRunAt ¶
func (*Schedule) SetLastStatus ¶
func (*Schedule) SetModelOverride ¶
func (*Schedule) SetNextRunAt ¶
func (*Schedule) SetScheduleType ¶
func (*Schedule) SetStartAt ¶
func (*Schedule) SetTaskPrompt ¶
func (*Schedule) SetTaskPromptUri ¶
func (*Schedule) SetTimezone ¶
func (*Schedule) SetUpdatedAt ¶
type ScheduleHas ¶
type ScheduleHas struct {
Id bool
Name bool
Description bool
AgentRef bool
ModelOverride bool
Enabled bool
StartAt bool
EndAt bool
ScheduleType bool
CronExpr bool
IntervalSeconds bool
Timezone bool
TaskPromptUri bool
TaskPrompt bool
NextRunAt bool
LastRunAt bool
LastStatus bool
LastError bool
CreatedAt bool
UpdatedAt bool
}
Click to show internal directories.
Click to hide internal directories.