config

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Port                               int    `yaml:"port"`
	RedisAddr                          string `yaml:"redisAddr"`
	RedisPassword                      string `yaml:"redisPassword"`
	IdentityServiceURL                 string `yaml:"identityServiceUrl"`
	IdentityServiceApiKey              string `yaml:"identityServiceApiKey"`
	IdentityJwksURL                    string `yaml:"identityJwksUrl"`
	IdentityIssuer                     string `yaml:"identityIssuer"`
	IdentityAudience                   string `yaml:"identityAudience"`
	Timezone                           string `yaml:"timezone"`
	LogLevel                           string `yaml:"logLevel"`
	LogFormat                          string `yaml:"logFormat"`
	Env                                string `yaml:"env"`
	DefaultLeaseSeconds                int    `yaml:"defaultLeaseSeconds"`
	RequeueInspectLimit                int    `yaml:"requeueInspectLimit"`
	LocalArtifactsDir                  string `yaml:"localArtifactsDir"`
	MaxAttemptsDefault                 int    `yaml:"maxAttemptsDefault"`
	BackoffPolicy                      string `yaml:"backoffPolicy"`
	BackoffBaseSeconds                 int    `yaml:"backoffBaseSeconds"`
	BackoffMaxSeconds                  int    `yaml:"backoffMaxSeconds"`
	WorkerJwksURL                      string `yaml:"workerJwksUrl"`
	WorkerAudience                     string `yaml:"workerAudience"`
	WorkerIssuer                       string `yaml:"workerIssuer"`
	AllowedClockSkewSeconds            int    `yaml:"allowedClockSkewSeconds"`
	AllowProducerAsWorker              bool   `yaml:"allowProducerAsWorker"`
	WebhookHmacSecret                  string `yaml:"webhookHmacSecret"`
	SubscriptionMinIntervalSeconds     int    `yaml:"subscriptionMinIntervalSeconds"`
	SubscriptionCleanupIntervalSeconds int    `yaml:"subscriptionCleanupIntervalSeconds"`
	ResultWebhookMaxAttempts           int    `yaml:"resultWebhookMaxAttempts"`
	ResultWebhookBaseBackoffSeconds    int    `yaml:"resultWebhookBaseBackoffSeconds"`
	ResultWebhookMaxBackoffSeconds     int    `yaml:"resultWebhookMaxBackoffSeconds"`
}

func LoadConfig

func LoadConfig(filePath string) (*Config, error)

func (*Config) Validate

func (c *Config) Validate() error

Jump to

Keyboard shortcuts

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