config

package
v0.1.20 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BinanceConfig added in v0.1.7

type BinanceConfig struct {
	APIKey    string
	SecretKey string
}

binance configuration for apikey and secret key

type DeployEnv added in v0.1.2

type DeployEnv struct {
	Dev string
	Prd string
}

Define a custom type for application's deployment environment

var Env DeployEnv = DeployEnv{
	Dev: "development",
	Prd: "production",
}

Create a variable of the struct type to represent the enum

type ElasticConfig

type ElasticConfig struct {
	ElasticHost string
	ElasticPort string
	ElasticUser string
	ElasticPwd  string
}

for Elastic search configurations

type MongoConfig

type MongoConfig struct {
	MongoDBHost string
	MongoDBPort string
	MongoDBUser string
	MongoDBPwd  string
	MongoDBName string
}

for Mongo database configurations

type RDBMSConfig

type RDBMSConfig struct {
	// for relational database configurations
	RdbmsDbDriver   string
	RdbmsDbUser     string
	RdbmsDbPassword string
	RdbmsDbName     string
	RdbmsDbHost     string
	RdbmsDbPort     string

	RdbmsDbSslmode  string
	RdbmsDbTimeZone string

	RdbmsDbMaxIdleConns    int
	RdbmsDbMaxOpenConns    int
	RdbmsDbConnMaxLifetime time.Duration
	RdbmsDbLogLevel        int
}

type RabbitMQConfig

type RabbitMQConfig struct {
	RabbitMQHost string
	RabbitMQPort string
	RabbitMQUser string
	RabbitMQPwd  string
}

type RabbitMQPublisherConfig added in v0.1.8

type RabbitMQPublisherConfig struct {
	RabbitMQPublishAPIHost               string
	RabbitMQPublishAPIPort               string
	RabbitMQPublishAPIEndpointPrefix     string
	RabbitMQPublishAPIEndpointKline      string
	RabbitMQPublishAPIEndpointAggTrade   string
	RabbitMQPublishAPIEndpointPriceDepth string
}

type RedisConfig

type RedisConfig struct {
	RedisHost string
	RedisPort string
	RedisUser string
	RedisPwd  string
}

RedisConfig

type ServerConfig

type ServerConfig struct {
	ServerPort     string // public port of server
	ServerMode     string
	ServerLogLevel uint64
	ServerJWT      struct {
		Key    string
		Expire int
	}
	ServerHashPass struct {
		Memory      uint32
		Iterations  uint32
		Parallelism uint8
		SaltLength  uint32
		KeyLength   uint32
	}
}

ServerConfig

Jump to

Keyboard shortcuts

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