client

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CLIENTIPData

type CLIENTIPData struct {
	ClientIP string
}

type CONFData

type CONFData struct {
	SubscriptionID int
	MaxFrequency   float64
	Filtered       bool
}

type CONOKData

type CONOKData struct {
	SessionID     string
	ControlLink   string
	RequestLimit  int
	KeepAliveTime int
}

type CONSData

type CONSData struct {
	Bandwidth float64
}

type ENDData

type ENDData struct {
	Message string
	Code    int
}

type LOOPData

type LOOPData struct {
	ExpectedDelay int
}

type Message

type Message struct {
	Data        any
	MessageType MessageType
}

func ParseControlMessage

func ParseControlMessage(line string) (Message, error)

func ParseSessionMessage

func ParseSessionMessage(line string) (Message, error)

func (Message) LogValue added in v0.2.0

func (m Message) LogValue() slog.Value

type MessageType

type MessageType string

type NOOPData

type NOOPData struct {
	Preamble []string
}

type PROBEData added in v0.2.0

type PROBEData struct{}

type PROGData

type PROGData struct {
	Progressive int
}

type REQERRData

type REQERRData struct {
	ErrorMessage string
	RequestID    int
	ErrorCode    int
}

type REQOKData

type REQOKData struct {
	RequestID int
}

type SERVNAMEData

type SERVNAMEData struct {
	ServerName string
}

type SUBOKData

type SUBOKData struct {
	SubscriptionID int
	Items          int
	Fields         int
}

type SYNCData

type SYNCData struct {
	SecondsSinceInitialHeader int
}

type UData

type UData struct {
	Values         []string
	SubscriptionID int
	Item           int
}

type UnsupportedData

type UnsupportedData struct {
	Values []string
}

Jump to

Keyboard shortcuts

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