environment

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2019 License: MIT Imports: 3 Imported by: 3

Documentation

Index

Constants

View Source
const (
	// Localhost default localhost
	Localhost = "127.0.0.1"

	// CassandraSeeds env
	CassandraSeeds = "CASSANDRA_SEEDS"
	// CassandraPort env
	CassandraPort = "CASSANDRA_PORT"
	// CassandraDefaultPort Cassandra default port
	CassandraDefaultPort = "9042"

	// MySQLSeeds env
	MySQLSeeds = "MYSQL_SEEDS"
	// MySQLPort env
	MySQLPort = "MYSQL_PORT"
	// MySQLDefaultPort MySQL default port
	MySQLDefaultPort = "3306"

	// KafkaSeeds env
	KafkaSeeds = "KAFKA_SEEDS"
	// KafkaPort env
	KafkaPort = "KAFKA_PORT"
	// KafkaDefaultPort Kafka default port
	KafkaDefaultPort = "9092"

	// ESSeeds env
	ESSeeds = "ES_SEEDS"
	// ESPort env
	ESPort = "ES_PORT"
	// ESDefaultPort ES default port
	ESDefaultPort = "9200"
)

Variables

This section is empty.

Functions

func GetCassandraAddress

func GetCassandraAddress() string

GetCassandraAddress return the cassandra address

func GetCassandraPort

func GetCassandraPort() int

GetCassandraPort return the cassandra port

func GetESAddress

func GetESAddress() string

GetESAddress return the kafka address

func GetESPort

func GetESPort() int

GetESPort return the Kafka port

func GetKafkaAddress

func GetKafkaAddress() string

GetKafkaAddress return the kafka address

func GetKafkaPort

func GetKafkaPort() int

GetKafkaPort return the Kafka port

func GetMySQLAddress

func GetMySQLAddress() string

GetMySQLAddress return the cassandra address

func GetMySQLPort

func GetMySQLPort() int

GetMySQLPort return the MySQL port

func SetupEnv

func SetupEnv()

SetupEnv setup the necessary env

Types

This section is empty.

Jump to

Keyboard shortcuts

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