Discover Packages
github.com/jdxj/sign
internal
pkg
config
package
Version:
v0.4.1
Opens a new window with list of versions in this module.
Published: Oct 4, 2021
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type APIServer struct {
Host string `yaml:"host"`
Port int `yaml:"port"`
Key string `yaml:"key"`
}
type Bot struct {
Token string `yaml:"token"`
ChatID int64 `yaml:"chat_id"`
}
type DB struct {
User string `yaml:"user"`
Pass string `yaml:"pass"`
Host string `yaml:"host"`
Port int `yaml:"port"`
Dbname string `yaml:"dbname"`
}
type Logger struct {
Path string `yaml:"path"`
Mode string `yaml:"mode"`
}
type RDB struct {
Host string `yaml:"host"`
Port int `yaml:"port"`
Pass string `yaml:"pass"`
DB int `yaml:"db"`
}
type RPC struct {
EtcdAddr string `yaml:"etcd_addr"`
CrontabPort int `yaml:"crontab_port"`
SecretPort int `yaml:"secret_port"`
UserPort int `yaml:"user_port"`
NoticePort int `yaml:"notice_port"`
}
type Rabbit struct {
Host string `yaml:"host"`
Port int `yaml:"port"`
User string `yaml:"user"`
Pass string `yaml:"pass"`
}
type Root struct {
Bot Bot `yaml:"bot"`
Logger Logger `yaml:"logger"`
User []User `yaml:"user"`
APIServer APIServer `yaml:"api_server"`
Storage Storage `yaml:"storage"`
DB DB `yaml:"db"`
RDB RDB `yaml:"rdb"`
RPC RPC `yaml:"rpc"`
Rabbit Rabbit `yaml:"rabbit"`
Secret Secret `yaml:"secret"`
}
type Secret struct {
Key string `yaml:"key"`
}
type Storage struct {
Path string `yaml:"path"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.