Documentation
¶
Index ¶
- func BookmarksPath() string
- func LoadBookmarks() map[string]bool
- func LoadDSNConfig(ctx context.Context, client *http.Client, cfg *config.Config, ...)
- func LoadDSNData(ctx context.Context, client *http.Client, cfg *config.Config, ...)
- func MapConfigToFullData(c response.DSNConfig, dest *model.FullData)
- func MapDataToFullData(d response.DSN, dest *model.FullData)
- func NewHTTPClient(cfg *config.Config) *http.Client
- func SaveBookmarks(bookmarks map[string]bool) error
- func SaveSettings(settings *Settings) error
- func SettingsPath() string
- type Settings
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 LoadDSNConfig ¶
func LoadDSNData ¶
func SaveBookmarks ¶ added in v0.0.7
func SaveSettings ¶ added in v0.0.8
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
Click to show internal directories.
Click to hide internal directories.