Documentation
¶
Index ¶
- func NewClient(id, name string, options *ClientOptions) dal.Client
- func NewServer(listen string, service nameing.ServerRegistration) dal.Server
- type Client
- type ClientOptions
- type Frame
- type Server
- func (s *Server) Push(s2 string, bytes []byte) error
- func (s *Server) SetAcceptor(acceptor dal.Acceptor)
- func (s *Server) SetChannelMap(channelMap dal.ChannelMap)
- func (s *Server) SetMessageListener(listener dal.MessageListener)
- func (s *Server) SetReadWait(duration time.Duration)
- func (s *Server) SetStateListener(listener dal.StateListener)
- func (s *Server) Shutdown(ctx context.Context) error
- func (s *Server) Start() error
- type ServerOptions
- type WsConn
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ClientOptions ¶
type Frame ¶
type Frame struct {
// contains filtered or unexported fields
}
func (*Frame) GetPayload ¶
func (*Frame) SetPayload ¶
type Server ¶
type Server struct { nameing.ServerRegistration dal.ChannelMap dal.Acceptor dal.MessageListener dal.StateListener // contains filtered or unexported fields }
func (*Server) SetAcceptor ¶
func (*Server) SetChannelMap ¶
func (s *Server) SetChannelMap(channelMap dal.ChannelMap)
func (*Server) SetMessageListener ¶
func (s *Server) SetMessageListener(listener dal.MessageListener)
func (*Server) SetReadWait ¶
func (*Server) SetStateListener ¶
func (s *Server) SetStateListener(listener dal.StateListener)
type ServerOptions ¶
type ServerOptions struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.