wialonips

package
v0.0.0-...-baa17e1 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Proto = "wialonips"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Adapter

type Adapter struct {
	Packet *wialonips.Packet
}

Adapter is a common adapter for the WialonIPS struct.

func (Adapter) GenericPositions

func (w Adapter) GenericPositions() (pos []common.Position)

GenericPositions implements the common.Adapter interface.

type WialonIPS

type WialonIPS struct {
}

WialonIPS is a WialonIPS protocol struct.

func NewWialonIPS

func NewWialonIPS() *WialonIPS

NewWialonIPS creates a new WialonIPS struct instance.

func (*WialonIPS) Name

func (w *WialonIPS) Name() string

Name returns the name of the WialonIPS protocol.

func (*WialonIPS) NewFrameSplitter

func (w *WialonIPS) NewFrameSplitter() common.FrameSplitter

NewFrameSplitter returns a new instance of the split function for the WialonIPS protocol.

func (*WialonIPS) Respond

func (w *WialonIPS) Respond(s *internal.Session, bytes []byte) (res tcp.Result, err error)

Respond returns the result of parsing the WialonIPS data.

Jump to

Keyboard shortcuts

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