Help us shape the future of Go! Take the 2026 Go Developer Survey

schedule

package
v0.1.58 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 26, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const SchedulePathListRunDueURI = "/v1/api/agently/scheduler/schedule/_internal/rundue"
View Source
const SchedulePathListURI = "/v1/api/agently/scheduler/"

Variables

View Source
var SchedulePathURI = "/v1/api/agently/scheduler/schedule/{id}"

Functions

This section is empty.

Types

type Schedule

type Schedule struct {
	Id              string       `sqlx:"id,primaryKey" validate:"required"`
	Name            string       `sqlx:"name" validate:"required"`
	Description     *string      `sqlx:"description" json:",omitempty"`
	CreatedByUserID *string      `sqlx:"created_by_user_id" json:",omitempty"`
	Visibility      string       `sqlx:"visibility"`
	Internal        *bool        `sqlx:"internal" json:",omitempty"`
	ConversationID  *string      `sqlx:"conversation_id" json:",omitempty"`
	GoalID          *string      `sqlx:"goal_id" json:",omitempty"`
	AgentRef        string       `sqlx:"agent_ref" validate:"required"`
	ModelOverride   *string      `sqlx:"model_override" json:",omitempty"`
	UserCredURL     *string      `sqlx:"user_cred_url" 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"`
	TimeoutSeconds  int          `sqlx:"timeout_seconds"`
	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"`
	LeaseOwner      *string      `sqlx:"lease_owner" json:",omitempty"`
	LeaseUntil      *time.Time   `sqlx:"lease_until" 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 (m *Schedule) SetAgentRef(v string)

func (*Schedule) SetConversationID

func (m *Schedule) SetConversationID(v string)

func (*Schedule) SetCreatedAt

func (m *Schedule) SetCreatedAt(v time.Time)

func (*Schedule) SetCreatedByUserID

func (m *Schedule) SetCreatedByUserID(v string)

func (*Schedule) SetCronExpr

func (m *Schedule) SetCronExpr(v string)

func (*Schedule) SetDescription

func (m *Schedule) SetDescription(v string)

func (*Schedule) SetEnabled

func (m *Schedule) SetEnabled(v bool)

func (*Schedule) SetEndAt

func (m *Schedule) SetEndAt(v time.Time)

func (*Schedule) SetGoalID

func (m *Schedule) SetGoalID(v string)

func (*Schedule) SetId

func (m *Schedule) SetId(v string)

func (*Schedule) SetInternal

func (m *Schedule) SetInternal(v bool)

func (*Schedule) SetIntervalSeconds

func (m *Schedule) SetIntervalSeconds(v int)

func (*Schedule) SetLastError

func (m *Schedule) SetLastError(v string)

func (*Schedule) SetLastRunAt

func (m *Schedule) SetLastRunAt(v time.Time)

func (*Schedule) SetLastStatus

func (m *Schedule) SetLastStatus(v string)

func (*Schedule) SetLeaseOwner

func (m *Schedule) SetLeaseOwner(v string)

func (*Schedule) SetLeaseUntil

func (m *Schedule) SetLeaseUntil(v time.Time)

func (*Schedule) SetModelOverride

func (m *Schedule) SetModelOverride(v string)

func (*Schedule) SetName

func (m *Schedule) SetName(v string)

func (*Schedule) SetNextRunAt

func (m *Schedule) SetNextRunAt(v time.Time)

func (*Schedule) SetScheduleType

func (m *Schedule) SetScheduleType(v string)

func (*Schedule) SetStartAt

func (m *Schedule) SetStartAt(v time.Time)

func (*Schedule) SetTaskPrompt

func (m *Schedule) SetTaskPrompt(v string)

func (*Schedule) SetTaskPromptUri

func (m *Schedule) SetTaskPromptUri(v string)

func (*Schedule) SetTimeoutSeconds

func (m *Schedule) SetTimeoutSeconds(v int)

func (*Schedule) SetTimezone

func (m *Schedule) SetTimezone(v string)

func (*Schedule) SetUpdatedAt

func (m *Schedule) SetUpdatedAt(v time.Time)

func (*Schedule) SetUserCredURL

func (m *Schedule) SetUserCredURL(v string)

func (*Schedule) SetVisibility

func (m *Schedule) SetVisibility(v string)

type ScheduleHas

type ScheduleHas struct {
	Id              bool
	Name            bool
	Description     bool
	CreatedByUserID bool
	Visibility      bool
	Internal        bool
	ConversationID  bool
	GoalID          bool
	AgentRef        bool
	ModelOverride   bool
	UserCredURL     bool
	Enabled         bool
	StartAt         bool
	EndAt           bool
	ScheduleType    bool
	CronExpr        bool
	IntervalSeconds bool
	Timezone        bool
	TimeoutSeconds  bool
	TaskPromptUri   bool
	TaskPrompt      bool
	NextRunAt       bool
	LastRunAt       bool
	LastStatus      bool
	LastError       bool
	LeaseOwner      bool
	LeaseUntil      bool
	CreatedAt       bool
	UpdatedAt       bool
}

type ScheduleInput

type ScheduleInput struct {
	Id               string            `parameter:",kind=path,in=id" predicate:"equal,group=0,t,id"`
	DefaultPredicate string            `parameter:",kind=const,in=value" predicate:"handler,group=0,*schedule.Filter" value:"0"`
	Has              *ScheduleInputHas `setMarker:"true" format:"-" sqlx:"-" diff:"-" json:"-"`
}

type ScheduleInputHas

type ScheduleInputHas struct {
	Id               bool
	DefaultPredicate bool
}

type ScheduleListInput

type ScheduleListInput struct {
	DefaultPredicate string `parameter:",kind=const,in=value" predicate:"handler,group=0,*schedule.Filter" value:"0"`
}

type ScheduleOutput

type ScheduleOutput struct {
	response.Status `parameter:",kind=output,in=status" json:",omitempty"`
	Data            []*ScheduleView  `parameter:",kind=output,in=view" view:"schedule,batch=10000,relationalConcurrency=1"`
	Metrics         response.Metrics `parameter:",kind=output,in=metrics"`
}

type ScheduleRunDueListInput

type ScheduleRunDueListInput struct{}

ScheduleRunDueListInput is used by scheduler internals to list all schedules without user-visibility filtering.

type ScheduleView

type ScheduleView = read.ScheduleView

type Schedules

type Schedules []Schedule

Schedules is a helper slice type referenced by datly `dataType` tags to drive structql markers for the Schedules collection in Input.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL