client

package
v0.0.0-...-f176c07 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2019 License: MIT Imports: 33 Imported by: 0

Documentation

Index

Constants

View Source
const CACHE_SIZE = 256

Variables

View Source
var ConfigGlobal = &config{
	LogLevel: "INFO",
}

Functions

This section is empty.

Types

type Client

type Client struct {
}

func NewClient

func NewClient(_version string) *Client

func (*Client) Run

func (client *Client) Run()

type EventType

type EventType uint16

type OperationType

type OperationType uint16

type Router

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

type WSClient

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

Client is a middleman between the websocket connection and the hub.

type WSHub

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

hub maintains the set of active clients and broadcasts messages to the clients.

Jump to

Keyboard shortcuts

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