Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultLocationFile ¶
func DefaultLocationFile() string
Types ¶
type LocationConfig ¶
type LocationConfig struct { Latitude float32 `yaml:"latitude"` Longitude float32 `yaml:"longitude"` LocTimestamp time.Time `yaml:"timestamp"` Altitude float32 `yaml:"altitude"` Accuracy float32 `yaml:"accuracy"` }
func DefaultLocationConfig ¶
func DefaultLocationConfig() LocationConfig
func (*LocationConfig) IsLocationEmpty ¶
func (conf *LocationConfig) IsLocationEmpty() bool
func (*LocationConfig) ParseConfig ¶
func (conf *LocationConfig) ParseConfig(buf []byte) error
ParseConfig stored in yaml bytes and sets default location if location is (0,0)
func (*LocationConfig) Validate ¶
func (conf *LocationConfig) Validate() error
Click to show internal directories.
Click to hide internal directories.