comparison

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: May 23, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Content

type Content struct {
	FeatureName    string
	FeatureToolTip string
	Colored        uint8
	DisplayTime    bool
	TValues        []TimedValue
}

Content holds all information about a feature value to display it in html.

type HeadedContent

type HeadedContent struct {
	Heading  string
	Contents []Content
}

HeadedContent represents a list of Content with a heading.

func (*HeadedContent) GetStrippedHeading

func (hc *HeadedContent) GetStrippedHeading() string

GetStrippedHeading returns the heading of a HeadedContent with all whitespace stripped.

type HeadedContentSlice

type HeadedContentSlice []HeadedContent

HeadedContentSlice is a slice of HeadedContent

func (HeadedContentSlice) MarshalBinary

func (h HeadedContentSlice) MarshalBinary() ([]byte, error)

MarshalBinary marshals HeadedContentSlice into bytes.

func (*HeadedContentSlice) UnmarshalBinary

func (h *HeadedContentSlice) UnmarshalBinary(data []byte) error

UnmarshalBinary unmarshalls bytes into HeadedContentSlice.

type HeadedFeatureStrings

type HeadedFeatureStrings struct {
	Heading  string   `json:"heading" hash:"name:Heading"`
	Features []string `json:"features" hash:"name:Features"`
}

HeadedFeatureStrings is a list of feature names with a heading.

type TimedValue

type TimedValue struct {
	Value       interface{}
	LastChecked string
}

TimedValue represents a value and the time when it was checked the last time.

type ViewSpec

type ViewSpec struct {
	ProviderNames []string
	Features      []features.HeadedFeature
}

ViewSpec represents the comparison view specification.

Jump to

Keyboard shortcuts

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