conf

package
v1.4.4 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2018 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AppName = "jiacrontab"
	Version = "v1.4.4"
)

Variables

This section is empty.

Functions

func Category

func Category() map[string]interface{}

func LoadAppService

func LoadAppService()

func LoadJwtService

func LoadJwtService()

func LoadMailService

func LoadMailService()

func Reload

func Reload()

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
)

Jump to

Keyboard shortcuts

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