config

package
v0.0.0-...-5cad063 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GPXFileTransform

type GPXFileTransform func(gpxFile gpx.GPX) ([]gpx.GPX, error)

type GPXFilesTransform

type GPXFilesTransform func(gpxFiles []gpx.GPX) ([]gpx.GPX, error)

type GPXSegmentTransform

type GPXSegmentTransform func(gpxSegment gpx.GPXTrackSegment) ([]gpx.GPXTrackSegment, error)

type GPXTrackTransform

type GPXTrackTransform func(gpxTrack gpx.GPXTrack) ([]gpx.GPXTrack, error)

type TransformConfig

type TransformConfig struct {
	FileT    fun.Option[GPXFileTransform]
	FilesT   fun.Option[GPXFilesTransform]
	TrackT   fun.Option[GPXTrackTransform]
	SegmentT fun.Option[GPXSegmentTransform]
}

func NewTransformConfig

func NewTransformConfig(opts ...TransformConfigOpt) TransformConfig

type TransformConfigOpt

type TransformConfigOpt func(tc TransformConfig) TransformConfig

func WithFileTransform

func WithFileTransform(t GPXFileTransform) TransformConfigOpt

func WithFilesTransform

func WithFilesTransform(t GPXFilesTransform) TransformConfigOpt

func WithTrackTransform

func WithTrackTransform(t GPXTrackTransform) TransformConfigOpt

Jump to

Keyboard shortcuts

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