agentruntime

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: May 20, 2026 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsLoopbackAddr

func IsLoopbackAddr(addr string) bool

func NewFramework

func NewFramework(config Config, tokenWriter io.Writer) (*agentflow.Framework, error)

func NewProductionHandler

func NewProductionHandler(config Config, fw *agentflow.Framework, queue asyncpkg.Queue) (http.Handler, error)

func NewQueue

func NewQueue(config Config, db **sql.DB) (asyncpkg.Queue, error)

func NewWorker

func NewWorker(config Config, queue asyncpkg.Queue, fw *agentflow.Framework) (*asyncpkg.Worker, error)

Types

type Config

type Config struct {
	ScenarioFile  string
	StateDir      string
	TokenSecret   string
	TokenTTL      time.Duration
	HTTPAddr      string
	QueueKind     string
	PostgresDSN   string
	APIKey        string
	TenantID      string
	PrincipalID   string
	AuditFile     string
	Version       string
	WorkerID      string
	Concurrency   int
	LeaseTTL      time.Duration
	RenewInterval time.Duration
	JobTimeout    time.Duration
	PollInterval  time.Duration
}

func LoadConfigFromEnv

func LoadConfigFromEnv() (Config, error)

Jump to

Keyboard shortcuts

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