Documentation ¶
Index ¶
- func IsAddrEmptyErr(err error) bool
- type Sona
- func (s *Sona) Broadcast(path string, data []byte)
- func (s *Sona) EnableSSE(ctx context.Context, addr string) *Sona
- func (s *Sona) EnableWS(ctx context.Context, addr string) *Sona
- func (s *Sona) OnConnect(action func(w http.ResponseWriter, r *http.Request)) *Sona
- func (s *Sona) OnDisconnect(action func(w http.ResponseWriter, r *http.Request)) *Sona
- func (s *Sona) OnSend(action func(w http.ResponseWriter, r *http.Request)) *Sona
- func (s *Sona) Run() error
- func (s *Sona) SetTLSFile(certFile, keyFile string) *Sona
- func (s *Sona) Stop()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsAddrEmptyErr ¶
Types ¶
type Sona ¶
type Sona struct {
// contains filtered or unexported fields
}
func (*Sona) OnDisconnect ¶
func (*Sona) SetTLSFile ¶
Click to show internal directories.
Click to hide internal directories.