Documentation
¶
Index ¶
- func GetMigrationsFS() (fs.FS, error)
- func Migrations() *persistence.Migrations
- type DispatchModel
- type Store
- func (s *Store) Get(ctx context.Context, dispatchID string) (jobs.DispatchSnapshot, bool, error)
- func (s *Store) GetByOperationKey(ctx context.Context, operationKey string) (jobs.DispatchSnapshot, bool, error)
- func (s *Store) ListBatch(ctx context.Context, batchID string) ([]jobs.DispatchSnapshot, error)
- func (s *Store) Upsert(ctx context.Context, snapshot jobs.DispatchSnapshot) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetMigrationsFS ¶ added in v0.6.0
func Migrations ¶
func Migrations() *persistence.Migrations
Types ¶
type DispatchModel ¶
type DispatchModel struct {
bun.BaseModel `bun:"table:search_job_dispatches,alias:sjd"`
DispatchID string `bun:"dispatch_id,pk"`
Revision int64 `bun:"revision,notnull"`
OperationKey string `bun:"operation_key,unique,notnull"`
BatchID string `bun:"batch_id,nullzero"`
BatchPosition int `bun:"batch_position,notnull"`
State string `bun:"state,notnull"`
UpdatedAt time.Time `bun:"updated_at,notnull"`
Snapshot map[string]any `bun:"snapshot,type:jsonb,notnull"`
}
Click to show internal directories.
Click to hide internal directories.