schedule

package
v0.14.3 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateInput

type CreateInput struct {
	Natural   string
	Title     string
	Prompt    string
	Schedule  string
	ProjectID string
	Timezone  string
}

type Item

type Item struct {
	ID        string    `json:"id"`
	Title     string    `json:"title"`
	Prompt    string    `json:"prompt,omitempty"`
	Natural   string    `json:"natural,omitempty"`
	Schedule  string    `json:"schedule"`
	Status    string    `json:"status"`
	ProjectID string    `json:"project_id,omitempty"`
	CronJobID string    `json:"cron_job_id,omitempty"`
	Timezone  string    `json:"timezone,omitempty"`
	CreatedAt time.Time `json:"created_at"`
	UpdatedAt time.Time `json:"updated_at"`
}

type Options

type Options struct {
	Now      func() time.Time
	Timezone string
}

type Store

type Store struct {
	// contains filtered or unexported fields
}

func NewStore

func NewStore(workspaceDir string, cronStore *cron.Store, opts Options) *Store

func (*Store) Complete

func (s *Store) Complete(id string) (Item, error)

func (*Store) Create

func (s *Store) Create(input CreateInput) (Item, error)

func (*Store) Delete

func (s *Store) Delete(id string) error

func (*Store) Get

func (s *Store) Get(id string) (Item, error)

func (*Store) List

func (s *Store) List() ([]Item, error)

func (*Store) Update

func (s *Store) Update(id string, input UpdateInput) (Item, error)

type UpdateInput

type UpdateInput struct {
	Title     *string
	Prompt    *string
	Schedule  *string
	Status    *string
	ProjectID *string
	Timezone  *string
}

Jump to

Keyboard shortcuts

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