data

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BookmarksPath added in v0.0.7

func BookmarksPath() string

func LoadBookmarks added in v0.0.7

func LoadBookmarks() map[string]bool

func LoadDSNConfig

func LoadDSNConfig(ctx context.Context, client *http.Client, cfg *config.Config, result chan response.DSNConfig, ce chan error)

func LoadDSNData

func LoadDSNData(ctx context.Context, client *http.Client, cfg *config.Config, result chan response.DSN, ce chan error)

func MapConfigToFullData

func MapConfigToFullData(c response.DSNConfig, dest *model.FullData)

func MapDataToFullData

func MapDataToFullData(d response.DSN, dest *model.FullData)

func NewHTTPClient added in v0.0.7

func NewHTTPClient(cfg *config.Config) *http.Client

func SaveBookmarks added in v0.0.7

func SaveBookmarks(bookmarks map[string]bool) error

func SaveSettings added in v0.0.8

func SaveSettings(settings *Settings) error

func SettingsPath added in v0.0.8

func SettingsPath() string

Types

type Settings added in v0.0.8

type Settings struct {
	RefreshIntervalSeconds int    `json:"refreshIntervalSeconds"`
	Theme                  string `json:"theme"`
	LastStation            string `json:"lastStation,omitempty"`
	DistanceUnit           string `json:"distanceUnit,omitempty"`
}

func LoadSettings added in v0.0.8

func LoadSettings() *Settings

Jump to

Keyboard shortcuts

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