Documentation ¶
Index ¶
- func Add(router *mux.Router, switcher Switcher)
- func GetData(r *http.Request, v interface{}) error
- func GetQueryOne(req *http.Request, name string) string
- func NewWorkerSchema(s Switcher) schema.Worker
- func ResponseJson(w http.ResponseWriter, v interface{})
- func ResponseMsg(w http.ResponseWriter, code int, message string)
- func ResponseYaml(w http.ResponseWriter, v interface{})
- type Config
- type Device
- type Esp
- type EspPolicy
- type EspState
- type Lease
- type Link
- type Log
- type Neighbor
- type Network
- type OnLine
- type PProf
- type Point
- type Server
- type Switcher
- type User
- func (h User) Add(w http.ResponseWriter, r *http.Request)
- func (h User) Check(w http.ResponseWriter, r *http.Request)
- func (h User) Del(w http.ResponseWriter, r *http.Request)
- func (h User) Get(w http.ResponseWriter, r *http.Request)
- func (h User) List(w http.ResponseWriter, r *http.Request)
- func (h User) Router(router *mux.Router)
- type VPNClient
- type Version
- type VxLAN
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewWorkerSchema ¶
func ResponseJson ¶
func ResponseJson(w http.ResponseWriter, v interface{})
func ResponseMsg ¶
func ResponseMsg(w http.ResponseWriter, code int, message string)
func ResponseYaml ¶
func ResponseYaml(w http.ResponseWriter, v interface{})
Types ¶
Click to show internal directories.
Click to hide internal directories.