runtime

import "github.com/jbcom/radioactive-ralph/internal/runtime"

Package runtime owns the durable repo service engine and its local process coordination helpers.

Index

type Options

Options configures one repo-scoped runtime instance.

type Options struct {
    RepoPath          string
    TickInterval      time.Duration
    HeartbeatInterval time.Duration
    ShutdownTimeout   time.Duration
    RunnerFactory     RunnerFactory
    SessionMode       plandag.SessionMode
    SessionTransport  plandag.SessionTransport
    VariantFilter     variant.Name
    ExitWhenIdle      bool
}

type RunnerFactory

RunnerFactory resolves a configured provider binding into a runnable backend.

type RunnerFactory func(binding provider.Binding) (provider.Runner, error)

type Service

Service is the durable repo-scoped runtime authority.

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

func NewService

func NewService(opts Options) (*Service, error)

NewService constructs a repo-scoped runtime with validated defaults.

func (*Service) Run

func (s *Service) Run(ctx context.Context) error

Run starts the repo runtime and blocks until shutdown or context cancel.

func (*Service) Shutdown

func (s *Service) Shutdown()

Shutdown asks the service loop to stop gracefully.

Generated by gomarkdoc