config

package
v0.0.0-...-95992dc Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	BrokerAddr                     []string `` /* 151-byte string literal not displayed */
	PaymentReconciliationGroupName string   `` /* 157-byte string literal not displayed */
	PaymentProcessedTopic          string   `` /* 138-byte string literal not displayed */
	ZookeeperChroot                string   `` /* 139-byte string literal not displayed */
	ZookeeperURL                   string   `` /* 140-byte string literal not displayed */
	RetryThrottleRate              int      `` /* 142-byte string literal not displayed */
	MaxRetryAttempts               int      `` /* 137-byte string literal not displayed */
	IsErrorConsumer                bool     `` /* 161-byte string literal not displayed */
	ChsAPIKey                      string   `` /* 129-byte string literal not displayed */
	SchemaRegistryURL              string   `` /* 134-byte string literal not displayed */
	PaymentsAPIURL                 string   `` /* 151-byte string literal not displayed */
	MongoDBURL                     string   `` /* 133-byte string literal not displayed */
	Database                       string   `` /* 140-byte string literal not displayed */
	TransactionsCollection         string   `` /* 163-byte string literal not displayed */
	ProductsCollection             string   `` /* 159-byte string literal not displayed */
	RefundsCollection              string   `` /* 150-byte string literal not displayed */
	SkipGoneResource               bool     `` /* 204-byte string literal not displayed */
	SkipGoneResourceId             string   `` /* 234-byte string literal not displayed */
	// contains filtered or unexported fields
}

Config is the payment reconciliation consumer 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

type ProductMap

type ProductMap struct {
	Codes map[string]int `yaml:"product_code"`
}

ProductMap contains a map of product codes

func GetProductMap

func GetProductMap() (*ProductMap, error)

GetProductMap fetches a map of product codes

Jump to

Keyboard shortcuts

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