config

package
v0.0.0-...-8421483 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package config contains application configuration logic

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PostgresConnString

func PostgresConnString() (string, error)

PostgresConnString returns postgres connection string

Types

type PostgresCfg

type PostgresCfg struct {
	ConnString string `env:"POSTGRES_URL"`
}

PostgresCfg is a configuration for postgres

type RabbitConfig

type RabbitConfig struct {
	ConnString string `env:"RABBITMQ_CONN_STRING"`
	Exchange   string `env:"RABBITMQ_EXCHANGE_NAME" envDefault:"messages-exchange"`
	Queue      string `env:"RABBITMQ_QUEUE_NAME" envDefault:"messages-queue"`
}

RabbitConfig is a configuration for rabbitmq

func Rabbit

func Rabbit() (*RabbitConfig, error)

Rabbit builds config for rabbitmq

Jump to

Keyboard shortcuts

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