writer

package
v0.0.0-...-3ce16b1 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Namespace    = "nmc"
	NamespaceURL = "https://calmh.dev/nmea-collect/"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AutoGPX

type AutoGPX struct {
	Opener                func(time.Time) (io.WriteCloser, error)
	SampleInterval        time.Duration
	TriggerDistanceMeters float64
	TriggerTimeWindow     time.Duration
	CooldownTimeWindow    time.Duration
	// contains filtered or unexported fields
}

func (*AutoGPX) Flush

func (g *AutoGPX) Flush() error

func (*AutoGPX) Sample

func (g *AutoGPX) Sample(lat, lon float64, when time.Time, extensions Extensions) bool

type Extensions

type Extensions map[string]extensionValue

func (Extensions) Set

func (x Extensions) Set(key, val string)

func (Extensions) String

func (x Extensions) String() string

func (Extensions) XML

func (x Extensions) XML() string

Jump to

Keyboard shortcuts

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