runner

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2026 License: Apache-2.0 Imports: 4 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package runner carries what the runner handed this app process, through contexts.

Index

Constants

This section is empty.

Variables

View Source
var ErrNoRunner = errs.New("E-RUN-004", "this context does not carry the app's runner",
	"pass the context of a request, or the one app.Options.OnStart receives")

ErrNoRunner is returned by building blocks called with a context that does not come from the app.

Functions

func With

func With(ctx context.Context, s *Session) context.Context

With returns a copy of ctx carrying s.

Types

type Session

type Session struct {
	App, Env, Version string
	Settings          map[string]string
	CSRFKey           []byte
	// Dir is the runner's folder of sockets.
	Dir      string
	Secrets  runnerv1connect.SecretsServiceClient
	Files    runnerv1connect.FilesServiceClient
	Mail     runnerv1connect.MailServiceClient
	Rpc      runnerv1connect.RpcServiceClient
	Outbound runnerv1connect.OutboundServiceClient
	Export   func(*runnerv1.Span) // never blocks
}

Session is what the runner handed the process at start-up.

func From

func From(ctx context.Context) *Session

From returns the session carried by ctx, or nil.

Jump to

Keyboard shortcuts

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