Documentation ¶
Index ¶
- Variables
- func BuildConfigForCLI(configFilename string, log log.Logger) (*viper.Viper, error)
- func BuildLogger(moduleName string, debugOn bool) log.Logger
- func HumanFormatFromBytes(b uint64) string
- func LocateFile(dFile string) string
- func RemoveIndexFromSlice(slice interface{}, index int) interface{}
- func SknImageByName(alias string, themed bool) *canvas.Image
- func SknImageFromPath(path string) fyne.CanvasObject
- func SknImageResourceFromPath(path string) fyne.Resource
- func SknLoadImageFromURI(u fyne.URI, themed bool) fyne.CanvasObject
- func SknSelectImage(alias string) *canvas.Image
- func SknSelectResource(alias string) fyne.Resource
- func SknSelectThemedImage(alias string) *canvas.Image
- func SknSelectThemedResource(alias string) fyne.Resource
- func SknThemedCanvasImageFromPath(path string) *canvas.Image
- type ApiConfig
- type Config
- type DBConfig
- type MQTTConfig
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Green = &color.NRGBA{R: 0, G: 180, B: 0, A: 255} Blue = &color.RGBA{0, 0, 255, 255} White = &color.RGBA{255, 255, 255, 255} Black = &color.RGBA{0, 0, 0, 255} Purple = &color.NRGBA{R: 128, G: 0, B: 128, A: 255} Orange = &color.NRGBA{R: 198, G: 123, B: 0, A: 255} Grey = &color.Gray{Y: 123} )
Functions ¶
func BuildConfigForCLI ¶
func HumanFormatFromBytes ¶
HumanFormatFromBytes() source: https://programming.guide/go/formatting-byte-size-to-human-readable-format.html
func LocateFile ¶
func RemoveIndexFromSlice ¶
func RemoveIndexFromSlice(slice interface{}, index int) interface{}
RemoveIndexFromSlice() -- No good way to handle various types of slices
since reflection does not support custom types
func SknImageFromPath ¶
func SknImageFromPath(path string) fyne.CanvasObject
SknImageFromPath loads a image, icon, or svg from filesystem
func SknImageResourceFromPath ¶
func SknImageResourceFromPath(path string) fyne.Resource
SknImageResourceFromPath loads a image, icon, or svg from filesystem
func SknLoadImageFromURI ¶
func SknLoadImageFromURI(u fyne.URI, themed bool) fyne.CanvasObject
SknLoadImageFromURI loads an image or svg from filesystem
func SknSelectImage ¶
func SknSelectResource ¶
func SknSelectResource(alias string) fyne.Resource
func SknSelectThemedImage ¶
func SknSelectThemedResource ¶
func SknSelectThemedResource(alias string) fyne.Resource
func SknThemedCanvasImageFromPath ¶
SknThemedCanvasImageFromPath loads a image, icon, or svg from filesystem with Themeing
Types ¶
type Config ¶
type Config struct { Title string RunMode string Version string Dbc DBConfig Mqc MQTTConfig Api ApiConfig Logger log.Logger }
func BuildRuntimeConfig ¶
Click to show internal directories.
Click to hide internal directories.