configs

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Allowedlist

type Allowedlist struct {
	PERMISSIONS []Permission `toml:"PERMISSIONS"`
}
var ALLOWEDLIST Allowedlist

type CacheConfig

type CacheConfig struct {
	HOST            string `toml:"HOST"`
	PORT            int    `toml:"PORT"`
	PASSWORD        string `toml:"PASSWORD"`
	EXPIRATION      int    `toml:"EXPIRATION"`
	EXPIRATION_UNIT string `toml:"EXPIRATION_UNIT"`
}
var CACHE_CONFIG CacheConfig

type DBConfig

type DBConfig struct {
	HOST    string `toml:"HOST"`
	PORT    int    `toml:"PORT"`
	USER    string `toml:"USER"`
	PWD     string `toml:"PWD"`
	DB_NAME string `toml:"DB_NAME"`
}
var DB_CONFIG DBConfig

type Permission

type Permission struct {
	NAME  string `toml:"NAME"`
	TOKEN string `toml:"TOKEN"`
}

type ServerConfig

type ServerConfig struct {
	ALLOWED_IPs                []string      `toml:"ALLOWED_IPs"`
	USE_RUNTIME_CODE           bool          `toml:"USE_RUNTIME_CODE"`
	RUNTIME_CODE_LENGTH        int           `toml:"RUNTIME_CODE_LENGTH"`
	CLIENT_AUTH_TOKEN          []string      `toml:"CLIENT_AUTH_TOKEN"`
	PORT                       string        `toml:"PORT"`
	KEEP_ALIVE_TIMEOUT         time.Duration `toml:"KEEP_ALIVE_TIMEOUT"`
	KEEP_ALIVE_TIMEOUT_UNIT    string        `toml:"KEEP_ALIVE_TIMEOUT_UNIT"`
	USE_TLS                    bool          `toml:"USE_TLS"`
	TLS_CERT_PATH              string        `toml:"TLS_CERT_PATH"`
	TLS_KEY_PATH               string        `toml:"TLS_KEY_PATH"`
	TLS_PORT                   string        `toml:"TLS_PORT"`
	TEMPORARY_PERMIT_TIME      int           `toml:"TEMPORARY_PERMIT_TIME"`
	TEMPORARY_PERMIT_TIME_UNIT string        `toml:"TEMPORARY_PERMIT_TIME_UNIT"`
	HASHING_METHOD             string        `toml:"HASHING_METHOD"`
	LOG_TEST_MODE              bool          `toml:"LOG_TEST_MODE"`
	LOG_TIME_UNIT              string        `toml:"LOG_TIME_UNIT"`
	LOG_MAX_AGE                int           `toml:"LOG_MAX_AGE"`
	LOG_ROTATION_TIME          int           `toml:"LOG_ROTATION_TIME"`
	LOG_FORMATTER              string        `toml:"LOG_FORMATTER"`
}
var SERVER_CONFIG ServerConfig

Jump to

Keyboard shortcuts

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