Documentation
¶
Index ¶
Constants ¶
View Source
const (
Version = "1.0.1"
)
Variables ¶
View Source
var ( Logger *log.Logger Ipaddr string )
View Source
var (
ConfigFile string
)
Functions ¶
func ParseConfig ¶
func ParseConfig(cfg string)
Types ¶
type GlobalConfig ¶
type GlobalConfig struct { Debug bool `json:"debug"` LogFile string `json:"logfile"` LogMaxAge int `json:"logmaxage"` LogRotateAge int `json:"logrotateage"` Http *HttpConfig `json:"http"` }
func Config ¶
func Config() *GlobalConfig
type HttpConfig ¶
type HttpPingRequest ¶
type HttpPingRequest struct {
Ipaddr string `json:"ipaddr"`
}
type HttpPingResponse ¶
Click to show internal directories.
Click to hide internal directories.