Documentation ¶
Index ¶
Constants ¶
View Source
const ContentTypeKey = "Content-Type"
Variables ¶
This section is empty.
Functions ¶
func RegisterGlobalStyle ¶ added in v1.4.0
func RegisterGlobalStyle(style string)
func RegisterStyle ¶ added in v1.4.0
func RegisterStyle(name, style string)
Types ¶
type ActionHandler ¶
type ActionHandler interface { GetName() string GetActionType() string GetDefaultState() any Handle(msg Message, res http.ResponseWriter, req *http.Request, messagePool *MessagePool, tools *Tools) }
type ChannelMessage ¶
type Client ¶
type Client struct { ID string ConnectionID string Response http.ResponseWriter Request *http.Request }
func (*Client) SendMessage ¶
func (ctx *Client) SendMessage(msg ChannelMessage)
type MessagePool ¶
type MessagePool struct {
// contains filtered or unexported fields
}
func (*MessagePool) Add ¶
func (ctx *MessagePool) Add(msg ChannelMessage)
func (*MessagePool) Pull ¶
func (ctx *MessagePool) Pull() chan ChannelMessage
type Page ¶ added in v1.4.0
type Page interface { Component Route() string Handlers() []ActionHandler }
type Tools ¶ added in v1.2.0
type Tools struct {
// contains filtered or unexported fields
}
func (*Tools) HasConnections ¶ added in v1.5.0
Source Files ¶
Click to show internal directories.
Click to hide internal directories.