Documentation
¶
Index ¶
Constants ¶
View Source
const ServiceName = "Spice"
ServiceName is the name of the service.
Variables ¶
View Source
var AppVersion string // Or get it from version.txt during build
AppVersion is the version of the service.
Functions ¶
Types ¶
type Config ¶
type Config struct {
ImageQueries []ImageQuery `json:"query_urls"`
// contains filtered or unexported fields
}
Config struct to hold all configuration data
func GetConfig ¶
func GetConfig(p fyne.Preferences) *Config
GetConfig returns the singleton instance of Config.
func (*Config) AddImageQuery ¶ added in v0.2.1
AddImageQuery adds a new image query to the end of the list
func (*Config) DisableImageQuery ¶ added in v0.2.1
DisableImageQuery disables the image query with the specified description
func (*Config) EnableImageQuery ¶ added in v0.2.1
EnableImageQuery enables the image query with the specified description
func (*Config) RemoveImageQuery ¶ added in v0.2.1
RemoveImageQuery removes the image query with the specified description
type ImageQuery ¶ added in v0.2.1
type ImageQuery struct {
Description string `json:"desc"`
URL string `json:"url"`
Active bool `json:"active"`
}
ImageQuery struct to hold the URL of an image and whether it is active
Click to show internal directories.
Click to hide internal directories.