v2

package
v0.0.0-...-844acb8 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2025 License: AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const DeviceHeight = 0.134
View Source
const Identifier protocol.Identifier = "v2"

Variables

This section is empty.

Functions

This section is empty.

Types

type Operations

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

func (*Operations) Alive

func (o *Operations) Alive(ctx context.Context) (bool, error)

Alive implements protocol.Operations.

func (*Operations) AveragePosition

func (*Operations) Close

func (o *Operations) Close(ctx context.Context) error

Close implements protocol.Operations.

func (*Operations) Configuration

func (o *Operations) Configuration(ctx context.Context) (any, error)

Configuration implements protocol.Operations.

func (*Operations) Connect

func (o *Operations) Connect(ctx context.Context) error

Connect implements protocol.Operations.

func (*Operations) Emit

func (o *Operations) Emit(ctx context.Context, mType string, message any) error

Emit implements protocol.Operations.

func (*Operations) GetBaseInfo

func (o *Operations) GetBaseInfo(ctx context.Context) (*protocol.BaseInfo, error)

GetBaseInfo implements protocol.Operations.

func (*Operations) GetConfiguration

func (o *Operations) GetConfiguration(ctx context.Context) (*model.Configuration, error)

func (*Operations) GetInfo

func (o *Operations) GetInfo(ctx context.Context) (*model.Info, error)

func (*Operations) GetJSON

func (o *Operations) GetJSON(path string, dst any) error

func (*Operations) GetModemAuthentication

func (o *Operations) GetModemAuthentication(ctx context.Context) (any, error)

GetModemAuthentication implements protocol.Operations.

func (*Operations) GetModemConfiguration

func (o *Operations) GetModemConfiguration(ctx context.Context) (any, error)

GetModem implements protocol.Operations.

func (*Operations) GetModemInfo

func (o *Operations) GetModemInfo(ctx context.Context) (*model.ModemConfiguration, error)

func (*Operations) GetModemSettings

func (o *Operations) GetModemSettings(ctx context.Context) (*model.ModemAuthentication, error)

func (*Operations) GetNTRIPMountPoint

func (o *Operations) GetNTRIPMountPoint(ctx context.Context) (*protocol.TaskMessage[protocol.NTRIPPayload], error)

GetNTRIPMountPoint implements protocol.Operations.

func (*Operations) GetUpdater

func (o *Operations) GetUpdater(ctx context.Context) (*model.Updater, error)

func (*Operations) On

func (o *Operations) On(ctx context.Context, event string) (chan any, error)

On implements protocol.Operations.

func (*Operations) PostBaseCoordinates

func (o *Operations) PostBaseCoordinates(ctx context.Context, base *model.Base) (*model.Base, error)

func (*Operations) PostBaseCorrection

func (o *Operations) PostBaseCorrection(ctx context.Context, base *protocol.IOConfig) (*protocol.IOConfig, error)

func (*Operations) PostDevice

func (*Operations) PostJSON

func (o *Operations) PostJSON(path string, data any, dst any) error

func (*Operations) PostModem

func (*Operations) Reboot

func (o *Operations) Reboot(ctx context.Context) error

Reboot implements protocol.Operations.

func (*Operations) SetBase

func (o *Operations) SetBase(ctx context.Context, funcs ...protocol.SetBaseOptionFunc) error

SetBase implements protocol.Operations.

func (*Operations) SetBaseCorrections

func (o *Operations) SetBaseCorrections(ctx context.Context, funcs ...protocol.SetBaseCorrectionsFunc) error

SetBaseCorrections implements protocol.Operations.

func (*Operations) SetDeviceAntennaHeight

func (o *Operations) SetDeviceAntennaHeight(ctx context.Context, funcs ...protocol.SetBaseOptionFunc) error

func (*Operations) SetModem

func (o *Operations) SetModem(ctx context.Context, funcs ...protocol.SetModemOptionsFunc) error

SetModem implements protocol.Operations.

func (*Operations) Version

func (o *Operations) Version(ctx context.Context) (string, bool, error)

Version implements protocol.Operations.

type Protocol

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

func (*Protocol) Available

func (p *Protocol) Available(ctx context.Context, addr string) (bool, error)

Available implements protocol.Protocol.

func (*Protocol) Identifier

func (p *Protocol) Identifier() protocol.Identifier

Identifier implements protocol.Protocol.

func (*Protocol) Operations

func (p *Protocol) Operations(addr string) protocol.Operations

Operations implements protocol.Protocol.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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