uicfg

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2022 License: AGPL-3.0 Imports: 0 Imported by: 0

Documentation

Overview

Package uicfg holds models of the json format config files for ui

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Name       string       `json:"name"`
	Version    string       `json:"version"`
	Date       int64        `json:"date"`
	Aud        string       `json:"aud"`
	Images     []Image      `json:"images"`
	Parameters []Parameters `json:"parameters"`
}

Config represents the custom configuration elements of a UI

type Image

type Image struct {
	For        string `json:"for"`
	Src        string `json:"src"`
	Alt        string `json:"alt"`
	FigCaption string `json:"figcaption"`
	Width      int    `json:"width"`
	Height     int    `json:"height"`
}

Image represents an image to be used in the UI

type KV

type KV struct {
	K string `json:"k"`
	V string `json:"v"`
}

KV represents a Key-Value parameter

type Parameters

type Parameters struct {
	For string `json:"for"`
	Are []KV   `json:"are"`
}

Parameters represents an array of Key-Value parameters

Jump to

Keyboard shortcuts

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