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 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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