net

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const Timeout = 10 * time.Second

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

type ErrorMessage

type ErrorMessage struct {
	Message string `json:"message"`
	// contains filtered or unexported fields
}

type Message

type Message struct {
	*ErrorMessage
}

func (Message) MarshalJSON

func (message Message) MarshalJSON() ([]byte, error)

func (*Message) UnmarshalJSON

func (message *Message) UnmarshalJSON(data []byte) error

type Pool

type Pool struct {
	Broadcast chan []byte
	// contains filtered or unexported fields
}

func Serve

func Serve(port int, clientConfig *cli.ClientConfig) *Pool

Jump to

Keyboard shortcuts

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