config

package
v0.1.0-alpha.4 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Namespace = "Outpost"
)

Variables

View Source
var (
	ErrMismatchedServiceType = errors.New("service type mismatch")
)

Functions

This section is empty.

Types

type Config

type Config struct {
	Service          ServiceType
	Port             int
	Hostname         string
	APIKey           string
	JWTSecret        string
	EncryptionSecret string
	PortalProxyURL   string
	Topics           []string

	Redis                           *redis.RedisConfig
	ClickHouse                      *clickhouse.ClickHouseConfig
	OpenTelemetry                   *otel.OpenTelemetryConfig
	PublishQueueConfig              *mqs.QueueConfig
	DeliveryQueueConfig             *mqs.QueueConfig
	LogQueueConfig                  *mqs.QueueConfig
	PublishMaxConcurrency           int
	DeliveryMaxConcurrency          int
	LogMaxConcurrency               int
	RetryIntervalSeconds            int
	RetryMaxCount                   int
	LogBatcherDelayThresholdSeconds int
	LogBatcherItemCountThreshold    int
	DestinationMetadataPath         string
}

func Parse

func Parse(flags Flags) (*Config, error)

type Flags

type Flags struct {
	Service string
	Config  string // Config file path
}

func ParseFlags

func ParseFlags() Flags

type ServiceType

type ServiceType int
const (
	ServiceTypeSingular ServiceType = iota
	ServiceTypeAPI
	ServiceTypeLog
	ServiceTypeDelivery
)

func ServiceTypeFromString

func ServiceTypeFromString(s string) (ServiceType, error)

func (ServiceType) String

func (s ServiceType) String() string

Jump to

Keyboard shortcuts

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