Documentation
¶
Index ¶
- func IsLoopbackAddr(addr string) bool
- func NewFramework(config Config, tokenWriter io.Writer) (*agentflow.Framework, error)
- func NewProductionHandler(config Config, fw *agentflow.Framework, queue asyncpkg.Queue) (http.Handler, error)
- func NewQueue(config Config, db **sql.DB) (asyncpkg.Queue, error)
- func NewWorker(config Config, queue asyncpkg.Queue, fw *agentflow.Framework) (*asyncpkg.Worker, error)
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsLoopbackAddr ¶
func NewFramework ¶
func NewProductionHandler ¶
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 ¶
Click to show internal directories.
Click to hide internal directories.