network

package
v0.0.0-...-783ac1f Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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 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