server

package
v0.0.0-...-85a0464 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 5, 2022 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Connected

func Connected(conn *protocol.Conn, info *protocol.AuthInfo) *models.User

Types

type Message

type Message struct {
	Message string `json:"message"`
}

type Network

type Network interface {
	Serve() error
}

Network is interface of all kinds of network.

type Tcp

type Tcp struct {
	// contains filtered or unexported fields
}

func NewTcpServer

func NewTcpServer(addr string) Tcp

func (Tcp) Serve

func (t Tcp) Serve() error

type Web

type Web struct {
	// contains filtered or unexported fields
}

func NewWebServer

func NewWebServer(addr string) Web

func (Web) Serve

func (w Web) Serve() error

type Websocket

type Websocket struct {
	// contains filtered or unexported fields
}

func NewWebsocketServer

func NewWebsocketServer(addr string) Websocket

func (Websocket) Serve

func (w Websocket) Serve() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL