environment

package
v1.2.11-prerelease9 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2024 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_DB_PORT"
	// CassandraDefaultPort Cassandra default port
	CassandraDefaultPort = "9042"
	// CassandraUsername env
	CassandraUsername = "CASSANDRA_DB_USERNAME"
	// CassandraDefaultUsername Cassandra default username
	CassandraDefaultUsername = ""
	// CassandraPassword env
	CassandraPassword = "CASSANDRA_DB_PASSWORD"
	// CassandraDefaultPassword Cassandra default password
	CassandraDefaultPassword = ""
	// CassandraAllowedAuthenticators env
	CassandraAllowedAuthenticators = "CASSANDRA_DB_ALLOWED_AUTHENTICATORS"
	// CassandraProtoVersion env
	CassandraProtoVersion = "CASSANDRA_PROTO_VERSION"
	// CassandraDefaultProtoVersion Cassandra default protocol version
	CassandraDefaultProtoVersion = "4"
	// CassandraDefaultProtoVersionInteger Cassandra default protocol version int version
	CassandraDefaultProtoVersionInteger = 4

	// MySQLSeeds env
	MySQLSeeds = "MYSQL_SEEDS"
	// MySQLPort env
	MySQLPort = "MYSQL_PORT"
	// MySQLDefaultPort is MySQL default port
	MySQLDefaultPort = "3306"
	// MySQLUser env
	MySQLUser = "MYSQL_USER"
	// MySQLDefaultUser is default user
	MySQLDefaultUser = "root"
	// MySQLPassword env
	MySQLPassword = "MYSQL_PASSWORD"
	// MySQLDefaultPassword is default password
	MySQLDefaultPassword = "cadence"

	// MongoSeeds env
	MongoSeeds = "MONGO_SEEDS"
	// MongoPort env
	MongoPort = "MONGO_PORT"
	// MongoDefaultPort is Mongo default port
	MongoDefaultPort = "27017"

	// 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"
	// ESVersion is the ElasticSearch version
	ESVersion = "ES_VERSION"
	// ESDefaultVersion is the default version
	ESDefaultVersion = "v6"

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

	// CLITransportProtocol env
	CLITransportProtocol = "CADENCE_CLI_TRANSPORT_PROTOCOL"
	// DefaultCLITransportProtocol  CLI default channel
	DefaultCLITransportProtocol = "tchannel"
)

Variables

This section is empty.

Functions

func GetCassandraAddress

func GetCassandraAddress() string

GetCassandraAddress return the cassandra address

func GetCassandraAllowedAuthenticators added in v0.24.0

func GetCassandraAllowedAuthenticators() []string

GetCassandraAllowedAuthenticators return the cassandra allowed authenticators

func GetCassandraPassword added in v0.24.0

func GetCassandraPassword() string

GetCassandraPassword return the cassandra password

func GetCassandraPort

func GetCassandraPort() (int, error)

GetCassandraPort return the cassandra port

func GetCassandraProtoVersion added in v0.22.0

func GetCassandraProtoVersion() (int, error)

GetCassandraProtoVersion return the cassandra protocol version

func GetCassandraUsername added in v0.24.0

func GetCassandraUsername() string

GetCassandraUsername return the cassandra username

func GetESVersion added in v0.17.0

func GetESVersion() string

GetESVersion return the ElasticSearch version

func GetMongoAddress added in v0.24.0

func GetMongoAddress() string

GetMongoAddress return the MySQL address

func GetMongoPort added in v0.24.0

func GetMongoPort() (int, error)

GetMongoPort return the MySQL port

func GetMySQLAddress

func GetMySQLAddress() string

GetMySQLAddress return the MySQL address

func GetMySQLPassword added in v0.24.0

func GetMySQLPassword() string

GetMySQLPassword return the MySQL password

func GetMySQLPort

func GetMySQLPort() (int, error)

GetMySQLPort return the MySQL port

func GetMySQLUser added in v0.24.0

func GetMySQLUser() string

GetMySQLUser return the MySQL user

func GetPostgresAddress added in v0.11.0

func GetPostgresAddress() string

GetPostgresAddress return the Postgres address

func GetPostgresPort added in v0.11.0

func GetPostgresPort() (int, error)

GetPostgresPort return the Postgres port

func SetupEnv

func SetupEnv() error

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