config

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Env indicates the environment name
	Env = config.GetEnv("ENV", "development")
	// NatsURL is the Nats instance used for publishing
	NatsURL = config.GetEnv("NATS_URL", nats.DefaultURL)
	// PublishInterval is the interval between publications
	PublishInterval = time.Duration(config.GetIntEnv("PUBLISH_INTERVAL_MS", 500)) * time.Millisecond
	// NumPublishers is the number of trade publishers
	NumPublishers = config.GetIntEnv("NUM_PUBLISHERS", 4)
	// Subject is the subject for publishing trades
	Subject = config.GetEnv("SUBJECT", "trades")
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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