Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OracleRequestFormat ¶
type Publisher ¶
type Publisher struct {
// contains filtered or unexported fields
}
Chat server.
func (*Publisher) Add ¶
func (p *Publisher) Add(s *Subscriber)
type RedisConfiguration ¶
type Request ¶
type Request struct { OracleRequestFormat // contains filtered or unexported fields }
type Subscriber ¶
type Subscriber struct {
// contains filtered or unexported fields
}
Chat Subscriber.
func NewSubscriber ¶
func NewSubscriber(conn *websocket.Conn, readCh chan *Request, closeCh chan string) *Subscriber
Create new chat Subscriber.
func (*Subscriber) Conn ¶
func (s *Subscriber) Conn() *websocket.Conn
func (*Subscriber) Del ¶
func (s *Subscriber) Del()
func (*Subscriber) Write ¶
func (s *Subscriber) Write(r *Response)
Click to show internal directories.
Click to hide internal directories.