Documentation
¶
Index ¶
Constants ¶
View Source
const ( AppName = "jiacrontab" Version = "v1.4.4" )
Variables ¶
This section is empty.
Functions ¶
func LoadAppService ¶
func LoadAppService()
func LoadJwtService ¶
func LoadJwtService()
func LoadMailService ¶
func LoadMailService()
Types ¶
type App ¶
type App struct { Debug bool `json:"debug"` HttpListenAddr string `json:"http_listen_addr"` StaticDir string `json:"static_dir"` DataFile string `json:"data_file"` RpcListenAddr string `json:"rpc_listen_addr"` ServerStartTime time.Time `json:"-"` TplDir string `json:"tpl_dir"` TplExt string `json:"tpl_ext"` User string `json:"user"` Passwd string `json:"-"` AllowCommands []string `json:"allow_commands"` }
var (
AppService *App
)
type Jwt ¶
type Jwt struct { JWTSigningKey string TokenCookieName string TokenExpires int64 TokenCookieMaxAge int64 }
var JwtService *Jwt
type Mailer ¶
type Mailer struct { Enabled bool `json:"enabled"` QueueLength int `json:"queue_length"` SubjectPrefix string `json:"subject_Prefix"` Host string `json:"host"` From string `json:"from"` FromEmail string `json:"from_email"` User string `json:"user"` Passwd string `json:"passwd"` DisableHelo bool `json:"disable_helo"` HeloHostname string `json:"helo_hostname"` SkipVerify bool `json:"skip_verify"` UseCertificate bool `json:"use_certificate"` CertFile string `json:"cert_file"` KeyFile string `json:"key_file"` UsePlainText bool `json:"use_plain_text"` }
var (
MailService *Mailer
)
Click to show internal directories.
Click to hide internal directories.