Documentation ¶
Index ¶
- Variables
- func ID() string
- func RenderTag(tag string, attrs map[string]string, content string) (string, error)
- type LiveViewChannel
- func (c *LiveViewChannel) Handle(session *melody.Session, m *channel.Message) (interface{}, error)
- func (c *LiveViewChannel) Join(session *melody.Session, m *channel.Message) (interface{}, error)
- func (c *LiveViewChannel) Leave(session *melody.Session) error
- func (c *LiveViewChannel) RegisterView(view View)
- func (c *LiveViewChannel) SpawnInstance(id string, view View) (*session, error)
- type Server
- type Session
- type SessionClaims
- type View
Constants ¶
This section is empty.
Variables ¶
View Source
var Static embed.FS
View Source
var StaticHandler = http.FileServer(http.FS(Static))
Functions ¶
Types ¶
type LiveViewChannel ¶
type LiveViewChannel struct { Views map[string]View Secret []byte Sessions map[string]*session // contains filtered or unexported fields }
func (*LiveViewChannel) RegisterView ¶
func (c *LiveViewChannel) RegisterView(view View)
func (*LiveViewChannel) SpawnInstance ¶
func (c *LiveViewChannel) SpawnInstance(id string, view View) (*session, error)
type SessionClaims ¶
func (*SessionClaims) Valid ¶
func (s *SessionClaims) Valid() error
Click to show internal directories.
Click to hide internal directories.