src

package
v0.0.0-...-421ef73 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2023 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitialModel

func InitialModel() model

func MyJoinHorizontal

func MyJoinHorizontal(pos Position, strs []string) string

func MyJoinVertical

func MyJoinVertical(pos Position, strs []string) string

Types

type Config

type Config struct {
	General General
	Metrics []struct {
		Name   string
		Color1 string
		Color2 string
		Rule   string
	}
}

func ReadConfig

func ReadConfig() Config

type EntryData

type EntryData struct {
	Metrics map[int][]string
	Data    []MetricData
}

type General

type General struct {
	BorderColor       string
	ActiveButtonColor string
	ButtonColor       string
}

type MetricData

type MetricData struct {
	Name   string
	Date   []time.Time
	Value  []string
	Color1 string
	Color2 string
}

type Position

type Position float64
const (
	Top    Position = 0.0
	Bottom Position = 1.0
	Center Position = 0.5
	Left   Position = 0.0
	Right  Position = 1.0
)

Position aliases.

type TestData

type TestData struct {
	Date  int
	Value string
}

Jump to

Keyboard shortcuts

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