mirror of
https://github.com/Li4n0/revsuit.git
synced 2026-09-21 22:30:46 +08:00
36 lines
924 B
Go
36 lines
924 B
Go
package server
|
|
|
|
import (
|
|
"github.com/li4n0/revsuit/internal/ipinfo"
|
|
"github.com/li4n0/revsuit/pkg/dns"
|
|
"github.com/li4n0/revsuit/pkg/ftp"
|
|
"github.com/li4n0/revsuit/pkg/mysql"
|
|
"github.com/li4n0/revsuit/pkg/rhttp"
|
|
"github.com/li4n0/revsuit/pkg/rmi"
|
|
)
|
|
|
|
type noticeConfig struct {
|
|
DingTalk string
|
|
Lark string
|
|
WeiXin string
|
|
Slack string
|
|
}
|
|
|
|
type Config struct {
|
|
Version float64
|
|
Addr string
|
|
Token string
|
|
Domain string
|
|
ExternalIP string `yaml:"external_ip"`
|
|
AdminPathPrefix string `yaml:"admin_path_prefix"`
|
|
Database string
|
|
LogLevel string `yaml:"log_level"`
|
|
IpLocationDatabase ipinfo.Config `yaml:"ip_location_database"`
|
|
Notice noticeConfig
|
|
HTTP rhttp.Config
|
|
DNS dns.Config
|
|
MySQL mysql.Config
|
|
RMI rmi.Config
|
|
FTP ftp.Config
|
|
}
|