config

package
v0.0.0-...-ae0d72a Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2024 License: Apache-2.0, MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AdminSchedulerConfig

type AdminSchedulerConfig struct {
	Enable  bool
	Address string
	Token   string
}

type Config

type Config struct {
	Mode                     string
	ApiListen                string
	DatabaseURL              string
	QuestDatabaseURL         string
	SecretKey                string
	RedisAddr                string
	RedisPassword            string
	FilecoinRPCServerAddress string
	EtcdAddresses            []string
	EligibleOnlineMinutes    int
	ResourcePath             string
	Statistic                StatisticsConfig
	Emails                   []EmailConfig
	IpDataCloud              IpDataCloudConfig
	Epoch                    EpochConfig
	SpecifyCandidate         SpecifyCandidateConfig
	URL                      URLConfig
	Oss                      OssConfig
	Locators                 []string
	BaseURL                  string
}
var Cfg Config

type EmailConfig

type EmailConfig struct {
	From     string
	Nickname string
	SMTPHost string
	SMTPPort string
	Username string
	Password string
}

type EpochConfig

type EpochConfig struct {
	Token string
}

type IpDataCloudConfig

type IpDataCloudConfig struct {
	Url string
	Key string
}

type OssConfig

type OssConfig struct {
	EndPoint  string
	AccessId  string
	AccessKey string
	Bucket    string
	Host      string
}

type SpecifyCandidateConfig

type SpecifyCandidateConfig struct {
	Disable bool
	AreaId  string
}

type StatisticsConfig

type StatisticsConfig struct {
	Disable bool
	Crontab string
}

type URLConfig

type URLConfig struct {
	Discord string
}

Jump to

Keyboard shortcuts

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