mirror of
https://github.com/lwch/natpass
synced 2025-10-07 06:10:51 +08:00
修复golint
This commit is contained in:
@@ -16,6 +16,7 @@ type Dashboard struct {
|
||||
Version string
|
||||
}
|
||||
|
||||
// New create dashboard object
|
||||
func New(cfg *global.Configure, pl *pool.Pool, mgr *tunnel.Mgr, version string) *Dashboard {
|
||||
return &Dashboard{
|
||||
cfg: cfg,
|
||||
@@ -25,6 +26,7 @@ func New(cfg *global.Configure, pl *pool.Pool, mgr *tunnel.Mgr, version string)
|
||||
}
|
||||
}
|
||||
|
||||
// ListenAndServe listen and serve http handler
|
||||
func (db *Dashboard) ListenAndServe(addr string, port uint16) error {
|
||||
mux := http.NewServeMux()
|
||||
mux.HandleFunc("/api/info", db.Info)
|
||||
|
Reference in New Issue
Block a user