fxtx

package module
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2019 License: Apache-2.0 Imports: 11 Imported by: 0

README

fxtx

Go Report Card GoDoc Docker Container Image Size Docker Container Layers

WIP: TXN2 Fake transmission

Development

Test Release
goreleaser --skip-publish --rm-dist --skip-validate
Release
GITHUB_TOKEN=$GITHUB_TOKEN goreleaser --rm-dist

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cfg

type Cfg struct {
	GenCfg      *GenCfg
	Destination string
	Timeout     time.Duration
	Logger      *zap.Logger
}

Cfg

type Fxtx

type Fxtx struct {
	*Cfg
}

Fxtx

func NewFxtx

func NewFxtx(cfg *Cfg) (*Fxtx, error)

NewFxtx

func (*Fxtx) Run

func (fx *Fxtx) Run()

Run

type GenCfg

type GenCfg struct {
	StartOffset int         `yaml:"startOffset"`
	Generators  []Generator `yaml:"generators"`
}

GenCfg

func GenCfgFromFile

func GenCfgFromFile(file string) (*GenCfg, error)

GenCfgFromFile creates a configuration file from YAML

type Generator

type Generator struct {
	Description      string `yaml:"description"`
	Frequency        int    `yaml:"frequency"`
	WaypointFile     string `yaml:"waypointFile"`
	WaypointFileType string `yaml:"waypointFileType"`
	IndexOffset      int    `yaml:"indexOffset"`
	Template         string `yaml:"template"`
	// contains filtered or unexported fields
}

Generator

type Gpx

type Gpx struct {
	XMLName xml.Name `xml:"gpx"`
	Wpts    []Wpt    `xml:"wpt"`
}

Gpx

type Wpt

type Wpt struct {
	XMLName xml.Name `xml:"wpt"`
	Lat     float64  `xml:"lat,attr"`
	Lon     float64  `xml:"lon,attr"`
}

Wpt

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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