Documentation ¶
Overview ¶
Package 'ui' -server -handler -router -routes
-html/ -images/ -pages/ -scripts/ -style/
Package 'ui' -server -handler -router -routes
-html/ -images/ -pages/ -scripts/ -style/
Package 'ui' -server -handler -router -routes
-html/ -images/ -pages/ -scripts/ -style/
Package 'ui' -server -handler -router -routes
-html/ -images/ -pages/ -scripts/ -style/
Index ¶
- func Index(w http.ResponseWriter, r *http.Request, u *UI) error
- func SSE(w http.ResponseWriter, r *http.Request, u *UI) error
- func WebUI(w http.ResponseWriter, r *http.Request, u *UI) error
- type Route
- type UI
- func (u *UI) AddRoute(route *Route)
- func (u *UI) AddRoutes(routes []*Route)
- func (u *UI) GenerateRoutes()
- func (u *UI) GetClientStormControlPeriod() int
- func (u *UI) GetInputChannel() chan []byte
- func (u *UI) GetListenaddr() string
- func (u *UI) GetRouter() *mux.Router
- func (u *UI) GetTemplates() *template.Template
- func (u *UI) SayHi()
- func (u *UI) SetClientStormControlPeriod(t int)
- func (u *UI) SetInputChannel(i chan []byte)
- func (u *UI) SetListenaddr(l string)
- func (u *UI) SetRouter(r *mux.Router)
- func (u *UI) SetTemplates(t *template.Template)
- func (u *UI) StartReceiver() error
- func (u *UI) StartUI()
- func (u *UI) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Route ¶
type Route struct { Name string Method string Pattern string HandlerFunc http.HandlerFunc }
func GenerateRoute ¶
type UI ¶
type UI struct { Listenaddr string ClientStormControlPeriod int // contains filtered or unexported fields }
func (*UI) GenerateRoutes ¶
func (u *UI) GenerateRoutes()
GenerateAPIRoutes: generate a set of routes to serve ¶
func (*UI) GetClientStormControlPeriod ¶
GetClientStormControlPeriod ¶
func (*UI) SayHi ¶
func (u *UI) SayHi()
# # Specific methods #---------------------------------------------------------------------
SayHi: do nothing ¶
func (*UI) SetClientStormControlPeriod ¶
SetClientStormControlPeriod ¶
func (*UI) StartReceiver ¶
StartReceiver: method prepare engine to receive []byte to be sent to client ¶
Click to show internal directories.
Click to hide internal directories.