config

package
v0.0.0-...-debf52e Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2022 License: MIT Imports: 5 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 {
	RunAddress  string `env:"RUN_ADDRESS" envDefault:":8080"`
	DatabaseURI string `env:"DATABASE_URI" envDefault:"postgres://postgres:password@localhost:5432/postgres"`
	Stan        Stan
}

func New

func New(ctx context.Context) *Config

type Stan

type Stan struct {
	ClusterID string `env:"STAN_CLUSTER_ID" envDefault:"test-cluster"`
	Subject   string `env:"STAN_SUBJECT" envDefault:"test-subject"`
}

Jump to

Keyboard shortcuts

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