Discover Packages
github.com/eviltomorrow/rogue
app
email
conf
package
Version:
v0.0.0-...-d2b7790
Opens a new window with list of versions in this module.
Published: Jan 25, 2023
License: Apache-2.0
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
View Source
var Global = Config {
ServiceName: "rogue-email",
App : App {
GrpcHost: "",
GrpcPort: 0,
},
Etcd : Etcd {
Endpoints: []string {"127.0.0.1:2379"},
},
Log : Log {
DisableTimestamp: false ,
Level: "info",
Format: "text",
MaxSize: 20,
Dir: "../log",
},
SMTPFile: "smtp.json",
}
type App struct {
GrpcHost string `json:"grpc-host" toml:"grpc-host"`
GrpcPort int `json:"grpc-port" toml:"grpc-port"`
}
type Config struct {
Path string `json:"path" toml:"-"`
App App `json:"app" toml:"app"`
ServiceName string `json:"service-name" toml:"service-name"`
Etcd Etcd `json:"etcd" toml:"etcd"`
Log Log `json:"log" toml:"log"`
SMTPFile string `json:"smtp-file" toml:"smtp-file"`
}
type Etcd struct {
Endpoints []string `json:"endpoints" toml:"endpoints"`
}
type Log struct {
DisableTimestamp bool `json:"disable-timestamp" toml:"disable-timestamp"`
Level string `json:"level" toml:"level"`
Format string `json:"format" toml:"format"`
MaxSize int `json:"maxsize" toml:"maxsize"`
Dir string `json:"dir" toml:"dir"`
}
type SMTP struct {
Server string `json:"server"`
Port int `json:"port"`
Username string `json:"username"`
Password string `json:"password"`
Alias string `json:"alias"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.