helpers

package
v0.0.0-...-2a96f56 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetJSON

func GetJSON(jsonFile string) ([]byte, error)

GetJSON - Get JSON from file

func ReadEnvFromFile

func ReadEnvFromFile(path string) error

ReadEnvFromFile reads environment variables from a .env file and sets them as environmentvariables on the host

Types

type Config

type Config struct {
	ServiceName          string `env:"SERVICE_NAME"`
	FhirVersion          string `env:"FHIR_VERSION"`
	KafkaBootstrapServer string `env:"KAFKA_BOOTSTRAO"`

	// KafkaConsumer
	KafkaEnableAutoCommit     string `env:"KAFKA_ENABLE_AUTO_COMMIT"`
	KafkaAutoCommitIntervalMS string `env:"KAFKA_AUTO_COMMIT_INTERVAL_MS"`
	KafkaSessionTimeoutMS     string `env:"KAFKA_SESSION_TIMEOUT_MS"`
	KafkaGroupID              string `env:"KAFKA_GROUP_ID"`

	// KafkaProducer
	KafkaAcks    string `env:"KAFKA_ACKS"`
	KafkaRetries string `env:"KAFKA_RETRIES"`

	// Consumer health
	EnableHealth     string `env:"ENABLE_HEALTH"`
	HealthFilePath   string `env:"HEALTH_FILE_PATH"`
	HealthIntervalMS string `env:"HEALTH_INTERVAL_MS"`
}

Jump to

Keyboard shortcuts

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