Documentation
¶
Index ¶
- Constants
- type HeaderModifications
- type MessageHandler
- type SSEClient
- type SSEHub
- type SSEServer
- type SSESocket
- func (se *SSESocket) ID() nxid.ID
- func (se *SSESocket) LocalAddr() net.Addr
- func (se *SSESocket) RemoteAddr() net.Addr
- func (se *SSESocket) Send(msg []byte, meta sabuhp.MessageMeta, timeout time.Duration) error
- func (se *SSESocket) SendRead(msg *sabuhp.Message, timeout time.Duration) error
- func (se *SSESocket) SendWriter(msgWriter io.WriterTo, meta sabuhp.MessageMeta, timeout time.Duration) sabuhp.ErrorWaiter
- func (se *SSESocket) Start() error
- func (se *SSESocket) Stat() sabuhp.SocketStat
- func (se *SSESocket) Stop()
- func (se *SSESocket) Wait()
Constants ¶
View Source
const ( MinClientIdLength = 7 ClientIdentificationHeader = "X-SSE-Client-Id" LastEventIdListHeader = "X-SSE-Last-Event-Ids" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HeaderModifications ¶
type SSEClient ¶
type SSEClient struct {
// contains filtered or unexported fields
}
func NewSSEClient ¶
func (*SSEClient) Close ¶
Close closes client's request and response cycle and waits till managing goroutine is closed.
type SSEHub ¶
type SSEHub struct {
// contains filtered or unexported fields
}
type SSEServer ¶
type SSEServer struct {
// contains filtered or unexported fields
}
func ManagedSSEServer ¶
type SSESocket ¶
type SSESocket struct {
// contains filtered or unexported fields
}
func NewSSESocket ¶
func (*SSESocket) RemoteAddr ¶
func (*SSESocket) SendWriter ¶
func (se *SSESocket) SendWriter(msgWriter io.WriterTo, meta sabuhp.MessageMeta, timeout time.Duration) sabuhp.ErrorWaiter
func (*SSESocket) Stat ¶
func (se *SSESocket) Stat() sabuhp.SocketStat
Click to show internal directories.
Click to hide internal directories.