Documentation ¶
Index ¶
- type Entry
- type Store
- func (s *Store) Clear(ctx context.Context) error
- func (s *Store) Create(ctx context.Context, task *scheduler.StoreTask) error
- func (s *Store) Delete(ctx context.Context, slug string) error
- func (s *Store) Get(ctx context.Context, slug string) (*scheduler.StoreTask, error)
- func (s *Store) GetSlugs(ctx context.Context) ([]string, error)
- func (s *Store) Lock(ctx context.Context, task *scheduler.StoreTask) (*scheduler.StoreTask, error)
- func (s *Store) NextRun(ctx context.Context) (*scheduler.StoreTask, error)
- func (s *Store) Reschedule(ctx context.Context, task *scheduler.StoreTask) error
- type StoreOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Entry ¶
type Entry struct { Slug string `firestore:"slug"` Kind string `firestore:"kind"` Payload []byte `firestore:"payload,omitempty"` When time.Time `firestore:"run_at"` Version int64 `firestore:"version"` Retry int `firestore:"retry,omitempty"` Result string `firestore:"result,omitempty"` LockedUntil time.Time `firestore:"locked_until"` }
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store is a firestore task store.
type StoreOption ¶
type StoreOption func(*Store)
func CollectionPathOption ¶
func CollectionPathOption(collectionPath string) StoreOption
Click to show internal directories.
Click to hide internal directories.