connect

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrConnectionClosed = errors.New("connection has been closed")
View Source
var ErrWrongMsgType = errors.New("wrong message type")

Functions

This section is empty.

Types

type Connection

type Connection interface {
	Send(data interface{}) error
	Receive() ([]byte, error)
	Close() error
}

type Connector

type Connector struct {
	http.Header
	// contains filtered or unexported fields
}

func NewConnector

func NewConnector(cfg config.Target, clientName string) *Connector

func (*Connector) Connect

func (c *Connector) Connect(ctx context.Context, gameId int) (Connection, error)

Jump to

Keyboard shortcuts

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