Documentation ¶
Index ¶
- Constants
- func Dial(addr *net.UDPAddr, config *Config) (conn net.Conn, err error)
- func Listen(addr *net.UDPAddr, config *Config) (net.Listener, error)
- func ReadInt32(buf []byte) (v int32)
- func ReadInt64(buf []byte) (v int64)
- func ReadUint16(buf []byte) (v uint16)
- func WriteInt32(buf []byte, v int32)
- func WriteInt64(buf []byte, v int64)
- func WriteUint16(buf []byte, v uint16)
- type Config
- type Instrument
Constants ¶
View Source
const ( HELLO messageType = iota ACK DATA CLOSE )
View Source
const (
RTT messageFlag = 1
)
Variables ¶
This section is empty.
Functions ¶
func ReadUint16 ¶
func WriteInt32 ¶
func WriteInt64 ¶
func WriteUint16 ¶
Types ¶
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
func NewDefaultConfig ¶
func NewDefaultConfig() *Config
type Instrument ¶
type Instrument interface {
// contains filtered or unexported methods
}
func NewInstrument ¶
func NewInstrument(name string, config map[string]interface{}) (i Instrument, err error)
Click to show internal directories.
Click to hide internal directories.