Documentation
¶
Index ¶
Constants ¶
View Source
const ( UPDATE_QUEUE_SIZE = 10 POLLING_TIMEOUT = 30 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AttributeSet ¶
type AttributeSet struct {
// contains filtered or unexported fields
}
func NewAttributeSet ¶
func NewAttributeSet() *AttributeSet
func (*AttributeSet) Add ¶
func (attrs *AttributeSet) Add(id, name, value string)
type RequestContext ¶
type RequestContext struct {
Request *api.WidgetRequest
// contains filtered or unexported fields
}
func (*RequestContext) SendResponse ¶
func (r *RequestContext) SendResponse(layout *string, attrs *AttributeSet, final bool) error
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) Handle ¶
func (s *Server) Handle(widgetName string, handler WidgetHandler)
func (*Server) ListenAndServe ¶
type WidgetHandler ¶
type WidgetHandler func(ctx *RequestContext) error
Click to show internal directories.
Click to hide internal directories.