environment

package
v1.23.0-rc7 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// LocalhostIP default localhost
	LocalhostIP = "LOCALHOST_IP"
	// Localhost default hostname
	LocalhostIPDefault = "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

	// ESSeeds env
	ESSeeds = "ES_SEEDS"
	// ESPort env
	ESPort = "ES_PORT"
	// ESDefaultPort ES default port
	ESDefaultPort = 9200
	// ESVersion is the ElasticSearch version
	ESVersion = "ES_VERSION"
	// ESDefaultVersion is the default version
	ESDefaultVersion = "v7"

	// PostgresSeeds env
	PostgresSeeds = "POSTGRES_SEEDS"
	// PostgresPort env
	PostgresPort = "POSTGRES_PORT"
	// PostgresDefaultPort Postgres default port
	PostgresDefaultPort = 5432
)

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 GetLocalhostIP added in v1.23.0

func GetLocalhostIP() string

GetLocalhostIP returns the ip address of the localhost domain

func GetMySQLAddress

func GetMySQLAddress() string

GetMySQLAddress return the cassandra address

func GetMySQLPort

func GetMySQLPort() int

GetMySQLPort return the MySQL port

func GetPostgreSQLAddress added in v1.1.0

func GetPostgreSQLAddress() string

GetPostgreSQLAddress return the cassandra address

func GetPostgreSQLPort added in v1.1.0

func GetPostgreSQLPort() int

GetPostgreSQLPort return the Postgres 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