runtime

package
v0.10.2 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 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 Config

type Config struct {
	DSN        string
	Workers    int
	IdleTime   time.Duration
	ReserveFor time.Duration
	Logger     logger.Logger
}

type Runtime

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

func Open

func Open(ctx context.Context, config Config) (*Runtime, error)

func (*Runtime) BeginDrain

func (r *Runtime) BeginDrain()

func (*Runtime) Client

func (r *Runtime) Client() sqlite.Client

func (*Runtime) Close

func (r *Runtime) Close() error

func (*Runtime) DatabaseReadiness

func (r *Runtime) DatabaseReadiness(ctx context.Context) error

func (*Runtime) FailedJobs

func (r *Runtime) FailedJobs() *jobsfailedrepo.Repo

func (*Runtime) Jobs

func (r *Runtime) Jobs() *jobsrepo.Repo

func (*Runtime) Readiness

func (r *Runtime) Readiness(ctx context.Context) error

func (*Runtime) Run

func (r *Runtime) Run(ctx context.Context) error

func (*Runtime) Service

func (r *Runtime) Service() *coreoutbox.Service

func (*Runtime) Transactor

func (r *Runtime) Transactor() *sqlitetx.Manager

Jump to

Keyboard shortcuts

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