Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ControllerMiddleware ¶
Types ¶
type CloseHandler ¶
type CloseHandler func()
type Controller ¶
func NewAssetController ¶
func NewAssetController(fileSystem fs.FS) *Controller
func NewTemplateController ¶
func NewTemplateController(fileSystem fs.FS, data any) *Controller
func (*Controller) Register ¶
func (c *Controller) Register(router chi.Router)
type MessageHandler ¶
type Templater ¶
type Templater struct {
// contains filtered or unexported fields
}
func NewTemplater ¶
type WSClient ¶
type WSClient struct {
// contains filtered or unexported fields
}
func NewWSClient ¶
func NewWSClient(conn *websocket.Conn, onMessage MessageHandler, onClose CloseHandler) *WSClient
func (*WSClient) WriteMessage ¶
Click to show internal directories.
Click to hide internal directories.