fit

module
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2023 License: BSD-3-Clause

README

Fit SDK for Go

GitHub Workflow Status Go Reference CodeCov Go Report Card

The Flexible and Interoperable Data Transfer (FIT) protocol is a protocol developed by Garmin for storing and sharing data originating from sports, fitness, and health devices. When recording an activity using devices such as cycling computer, smartwatch, and similiar devices, chances are the resulting file is often in FIT file format (*.fit). The FIT file is a binary file format known for its compact size, making it the preferred choice for manufacturers to use in their embedded devices. However, despite having gained widespread adoption, Garmin has not yet released an official SDK for Go, this is where this SDK comes in to bridge the gap, enabling Go developers to be able to interact with FIT file format.

More about FIT: developer.garmin.com/fit

This SDK is designed with efficiency in mind, but it places a higher priority on clarity, simplicity and extensibility.

Usage

Please see Usage.

Generate Custom FIT SDK

Please see Generate Custom FIT SDK

Contributing

Please see CONTRIBUTING.md. Thank you, contributors!

Directories

Path Synopsis
cmd
Package cmd provides CLIs to work with fit files.
Package cmd provides CLIs to work with fit files.
fitconv/csv
Package csv provides the implementations of fit listener's interfaces that can listen to the events emitted by the decoder.
Package csv provides the implementations of fit listener's interfaces that can listen to the events emitted by the decoder.
Package decoder provides a handler to decode fit files.
Package decoder provides a handler to decode fit files.
Package encoder provides a handler to encode data into fit file binary form.
Package encoder provides a handler to encode data into fit file binary form.
Package factory contains predefined messages based on messages in [Profile.xlsx] provided in the Official Fit SDK.
Package factory contains predefined messages based on messages in [Profile.xlsx] provided in the Official Fit SDK.
internal
cmd/fitgen/pkg/strutil
Package strutil is used only for naming package, variable, etc inside the go template.
Package strutil is used only for naming package, variable, etc inside the go template.
kit
Package kit provides helpers for decoding and encoding as well as type conversion.
Package kit provides helpers for decoding and encoding as well as type conversion.
hash
Package hash provides interface for hash16 functions as an additional interface to the existing Go stdlib's Hash32 and Hash64.
Package hash provides interface for hash16 functions as an additional interface to the existing Go stdlib's Hash32 and Hash64.
hash/crc16
Package crc16 implements the 16-bit cyclic redundancy check, or CRC-16, checksum.
Package crc16 implements the 16-bit cyclic redundancy check, or CRC-16, checksum.
Package listener defines interface contracts that can be added on a decoder to receive message and message definition as soon as it is decoded.
Package listener defines interface contracts that can be added on a decoder to receive message and message definition as soon as it is decoded.
Package profile defines an abstraction layer of types used in the Fit file above the base types (primitive-types) such as sint, uint, etc.
Package profile defines an abstraction layer of types used in the Fit file above the base types (primitive-types) such as sint, uint, etc.
basetype
Package basetype defines the base of all types used in Fit.
Package basetype defines the base of all types used in Fit.
untyped/fieldnum
Package fieldnum contains untyped constants for greater flexibility, intended to simplify code typing when creating messages and fields using the factory and reduce human error.
Package fieldnum contains untyped constants for greater flexibility, intended to simplify code typing when creating messages and fields using the factory and reduce human error.
untyped/mesgnum
Package mesgnum contains untyped constants for greater flexibility, intended to simplify code typing when creating messages and fields using the factory and reduce human error.
Package mesgnum contains untyped constants for greater flexibility, intended to simplify code typing when creating messages and fields using the factory and reduce human error.
Package proto defines the abstraction for Fit Protocol.
Package proto defines the abstraction for Fit Protocol.

Jump to

Keyboard shortcuts

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