config

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: Apache-2.0, MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigData

type ConfigData struct {
	// do not change - do not edit next line.
	Status string `json:"status" default:"success"`

	StatEngine string `json:"stat_engine" default:"memory"` // memory, file, redis

	StatFileLocaiton string `json:"stat_file_location" default:"./data/stat.json"`

	// Redis Connection Info
	RedisConnectHost string `json:"redis_host" default:"$ENV$REDIS_HOST"`
	RedisConnectAuth string `json:"redis_auth" default:"$ENV$REDIS_AUTH"`
	RedisConnectPort string `json:"redis_port" default:"6379"`
	RedisCluster     string `json:"redis_cluster" default:"no"`
}

func LoadTestConfig

func LoadTestConfig() (rv *ConfigData)

Jump to

Keyboard shortcuts

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