Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type QuicServer ¶
type QuicServer struct {
// contains filtered or unexported fields
}
func NewQuicServer ¶
func NewQuicServer(ctx context.Context, address string) *QuicServer
func (*QuicServer) GetConnections ¶
func (qs *QuicServer) GetConnections() map[string]net.Conn
func (*QuicServer) OnMessageReceived ¶
func (qs *QuicServer) OnMessageReceived(handler func([]byte))
func (*QuicServer) Shutdown ¶
func (qs *QuicServer) Shutdown()
func (*QuicServer) Start ¶
func (qs *QuicServer) Start(ctx context.Context)
type Server ¶
type TcpServer ¶
type TcpServer struct {
// contains filtered or unexported fields
}
func NewTcpServer ¶
func (*TcpServer) OnMessageReceived ¶
type WsServer ¶
type WsServer struct {
// contains filtered or unexported fields
}
func NewWsServerWithCerts ¶
func (*WsServer) OnMessageReceived ¶
Click to show internal directories.
Click to hide internal directories.