Documentation ¶
Index ¶
- func AddRoutes(mux *goji.Mux, data *AdminData)
- func Assets() http.HandlerFunc
- func ForTemplate(page string, adminData *AdminData) http.HandlerFunc
- func Redirect() http.HandlerFunc
- type AdminData
- func (a *AdminData) ConnectionClosed(id, alias string, d time.Duration)
- func (*AdminData) ConnectionClosedDownstream(id, alias string)
- func (*AdminData) ConnectionClosedUpstream(id, alias string)
- func (a *AdminData) ConnectionCompleted(id, alias, direction string, transferredBytes int, duration time.Duration)
- func (a *AdminData) ConnectionDelayed(id, alias string, direction string, delay time.Duration)
- func (a *AdminData) ConnectionOpened(id, alias, typ string)
- func (a *AdminData) ConnectionProgressed(id, alias string, direction string, transferredBytes int)
- func (a *AdminData) ConnectionScheduledClose(id, alias string, delay time.Duration)
- func (a *AdminData) RLock()
- func (a *AdminData) RUnlock()
- type ConnData
- type MenuItem
- type Ui
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Assets ¶
func Assets() http.HandlerFunc
func ForTemplate ¶
func ForTemplate(page string, adminData *AdminData) http.HandlerFunc
func Redirect ¶
func Redirect() http.HandlerFunc
Types ¶
type AdminData ¶
type AdminData struct { Version string Config config.Config ConnectionsActive int32 ConnectionsTotal int32 Connections map[string]ConnData // contains filtered or unexported fields }
func NewAdminData ¶
func NewAdminData() *AdminData
func (*AdminData) ConnectionClosed ¶
func (*AdminData) ConnectionClosedDownstream ¶
func (*AdminData) ConnectionClosedUpstream ¶
func (*AdminData) ConnectionCompleted ¶
func (*AdminData) ConnectionDelayed ¶
func (*AdminData) ConnectionOpened ¶
func (*AdminData) ConnectionProgressed ¶
func (*AdminData) ConnectionScheduledClose ¶
Click to show internal directories.
Click to hide internal directories.