config

package
v0.0.0-...-bbe9343 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package config defines the environment variable and command-line flags supported by this service and includes default values for particular fields.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	BrokerAddr             []string `env:"KAFKA_BROKER_ADDR"                 flag:"broker-addr"                       flagDesc:"Kafka broker address"`
	SchemaRegistryURL      string   `env:"SCHEMA_REGISTRY_URL"               flag:"schema-registry-url"               flagDesc:"Schema registry url"`
	ZookeeperChroot        string   `env:"KAFKA_ZOOKEEPER_CHROOT"            flag:"zookeeper-chroot"                  flagDesc:"Zookeeper chroot"`
	ZookeeperURL           string   `env:"KAFKA_ZOOKEEPER_ADDR"              flag:"zookeeper-addr"                    flagDesc:"Zookeeper address"`
	ConsumerGroupName      string   `env:"REFUND_REQUEST_GROUP_NAME"         flag:"refund-request-group-name"         flagDesc:"Refund Request Group Name"`
	ConsumerRetryGroupName string   `env:"REFUND_REQUEST_RETRY_GROUP_NAME"   flag:"refund-request-retry-group-name"   flagDesc:"Refund Request retry Group Name"`
	ConsumerTopic          string   `env:"REFUND_REQUEST_TOPIC"              flag:"refund-request-topic"              flagDesc:"Refund Request topic"`
	ConsumerTopicOffset    int64    `env:"REFUND_REQUEST_TOPIC_OFFSET"       flag:"refund-request-topic-offset"       flagDesc:"Refund Request topic offset value"`
	RetryTopicOffset       int64    `` /* 131-byte string literal not displayed */
	RetryThrottleRate      int      `env:"RETRY_THROTTLE_RATE_SECONDS"       flag:"retry-throttle-rate-seconds"       flagDesc:"Retry throttle rate seconds"`
	MaxRetryAttempts       int      `env:"MAXIMUM_RETRY_ATTEMPTS"            flag:"max-retry-attempts"                flagDesc:"Maximum retry attempts"`
	IsErrorConsumer        bool     `` /* 138-byte string literal not displayed */
	PaymentsAPIURL         string   `` /* 128-byte string literal not displayed */
	ChsAPIKey              string   `env:"REFUNDS_API_KEY"                   flag:"refunds-api-key"                   flagDesc:"API access key"`
	// contains filtered or unexported fields
}

Config is the filing processed tx updater config.

func Get

func Get() (*Config, error)

Get configures the application and returns the configuration.

func (*Config) Namespace

func (c *Config) Namespace() string

Namespace implements service.Config.Namespace.

Jump to

Keyboard shortcuts

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