runner

package module
v0.0.0-...-0842df6 Latest Latest
Warning

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

Go to latest
Published: May 8, 2026 License: MIT Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HLSServer

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

func NewHLSServer

func NewHLSServer(liveDir string, log *slog.Logger, version string) *HLSServer

func (*HLSServer) ServeHTTP

func (h *HLSServer) ServeHTTP(w http.ResponseWriter, r *http.Request)

func (*HLSServer) Start

func (h *HLSServer) Start() error

type Runner

type Runner struct {
	JobCount chan int

	StartTime time.Time
	protobuf.UnimplementedRunnerServiceServer

	Metrics *metrics.Broker
	Version string
	// contains filtered or unexported fields
}

func NewRunner

func NewRunner(v string) *Runner

func (*Runner) Cleanup

func (r *Runner) Cleanup()

Cleanup is called on force shutdown while actions are still running. it cancels all running actions

func (*Runner) Drain

func (r *Runner) Drain()

func (*Runner) InitApiGrpc

func (r *Runner) InitApiGrpc()

func (*Runner) RegisterWithGocast

func (r *Runner) RegisterWithGocast(retries int)

func (*Runner) RequestStream

func (r *Runner) RequestStream(_ context.Context, req *protobuf.StreamRequest) (*protobuf.StreamResponse, error)

func (*Runner) RequestStreamEnd

func (*Runner) Run

func (r *Runner) Run(ctx context.Context)

func (*Runner) RunAction

func (r *Runner) RunAction(a []actions.Action, data map[string]any, logger *slog.Logger) string

Directories

Path Synopsis
cmd
runner command
pkg
metrics
Package metrics provides Prometheus compatible monitoring.
Package metrics provides Prometheus compatible monitoring.
ptr

Jump to

Keyboard shortcuts

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