config

package
v0.0.0-...-b602686 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2024 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var C config

Functions

func LoadLoggerConfig

func LoadLoggerConfig(ctx context.Context) *zap.Config

func LoadTempoConfig

func LoadTempoConfig(ctx context.Context) map[string]TempoConfig

func ReadConfig

func ReadConfig()

Types

type Namespace

type Namespace struct {
	Name                             string        `json:"namespace"`
	WorkflowExecutionRetentionPeriod time.Duration `json:"workflowExecutionRetentionPeriod"` // seconds
}

type SecretSuite

type SecretSuite struct {
	SecretName string
	Region     string
}

type TempoConfig

type TempoConfig struct {
	HostPort  string     `json:"hostPort"`
	Namespace *Namespace `json:"namespace"`
	Workflow  *Workflow  `json:"workflow"`
}

type Workflow

type Workflow struct {
	TaskQueueName          string                 `json:"taskQueueName"`
	SearchAttributes       map[string]interface{} `json:"searchAttributes"`
	ExecutionTimeout       time.Duration          `json:"executionTimeout"`       // seconds
	RunTimeout             time.Duration          `json:"runTimeout"`             // seconds
	TaskTimeout            time.Duration          `json:"taskTimeout"`            // seconds
	ScheduleToCloseTimeout time.Duration          `json:"scheduleToCloseTimeout"` // seconds
	StartToCloseTimeout    time.Duration          `json:"startToCloseTimeout"`    // seconds
	HeartbeatTimeout       time.Duration          `json:"heartbeatTimeout"`       // seconds
	WaitForCancellation    bool                   `json:"waitForCancellation"`    // seconds
}

Jump to

Keyboard shortcuts

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