config

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DirName        = "revchat"
	ConfigFileName = "config.toml"

	DefaultOTLPEndpoint = "https://localhost:4318"
	DefaultOTLPTimeout  = 10000 // 10 seconds.

	DefaultThrippyGRPCAddress = "localhost:14460"

	DefaultRevChatTaskQueue = "revchat"
	DefaultTimpaniTaskQueue = "timpani"

	ScheduleToStartTimeout = time.Minute
	StartToCloseTimeout    = 10 * time.Second
	MaxRetryAttempts       = 5

	DefaultChannelNamePrefix    = "_pr"
	DefaultChannelNameMaxLength = 50 // Slack's hard limit = 80, but that's still too long.
)

Variables

This section is empty.

Functions

func Flags

func Flags() []cli.Flag

Flags defines CLI flags to configure a Temporal worker. These flags are usually set using environment variables or the application's configuration file.

func KVSliceToMap added in v1.0.0

func KVSliceToMap(pairs []string) map[string]string

KVSliceToMap converts a slice of "key=value" strings into a map. Invalid entries are logged and skipped.

Types

This section is empty.

Jump to

Keyboard shortcuts

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