westworld2

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2020 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HELLO messageType = iota
	ACK
	DATA
	CLOSE
)
View Source
const (
	RTT messageFlag = 1
)

Variables

This section is empty.

Functions

func Dial

func Dial(addr *net.UDPAddr, config *Config) (conn net.Conn, err error)

func Listen

func Listen(addr *net.UDPAddr, config *Config) (net.Listener, error)

func ReadInt32

func ReadInt32(buf []byte) (v int32)

func ReadInt64

func ReadInt64(buf []byte) (v int64)

func ReadUint16

func ReadUint16(buf []byte) (v uint16)

func WriteInt32

func WriteInt32(buf []byte, v int32)

func WriteInt64

func WriteInt64(buf []byte, v int64)

func WriteUint16

func WriteUint16(buf []byte, v uint16)

Types

type Config

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

func NewDefaultConfig

func NewDefaultConfig() *Config

func (*Config) Dump

func (self *Config) Dump() string

func (*Config) Load

func (self *Config) Load(data map[interface{}]interface{}) error

type Instrument

type Instrument interface {
	// contains filtered or unexported methods
}

func NewInstrument

func NewInstrument(name string, config map[string]interface{}) (i Instrument, err error)

Jump to

Keyboard shortcuts

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