Documentation ¶
Index ¶
Constants ¶
View Source
const ConfigFileName = "config.json"
Variables ¶
View Source
var DefaultConfigJsonByte []byte
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Port string `json:"port"` Debug bool `json:"debug"` NotAllowedDeleteLog bool `json:"notAllowedDeleteLog"` RpcAddress []*Address `json:"rpcAddress"` CorsConfig *CorsConfig `json:"corsConfig"` StorageConfig *StorageConfig `json:"storageConfig"` MaxRoomNumber int `json:"maxRoomNumber"` // max log file size, unit is mb MaxLogFileSizeOfMB int64 `json:"maxLogFileSizeOfMB"` // max log file size, unit is day MaxLogLifeTimeOfHour int64 `json:"maxLogLifeTimeOfHour"` }
func LoadConfig ¶
func (*Config) GetMaxLogFileSizeOfMB ¶
func (*Config) GetMaxLogLifeTimeOfHour ¶
func (*Config) GetMaxRoomNumber ¶
func (*Config) IsRemoteStorage ¶
type CorsConfig ¶
type StaticConfig ¶
type StorageConfig ¶
type StorageConfig struct { LogDirName string `json:"logDir"` BaseDir string `json:"baseDir"` KeyId string `json:"keyId"` Secret string `json:"secret"` Region string `json:"region"` Endpoint string `json:"endpoint"` Bucket string `json:"bucket"` }
func (*StorageConfig) GetLogDir ¶ added in v1.7.2
func (s *StorageConfig) GetLogDir() string
Click to show internal directories.
Click to hide internal directories.