goblin

package
v0.0.0-...-83adff0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2020 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IndexLabels

type IndexLabels struct {
	PGC map[int][]*TypeLabels // key is category, value is all the param and their labels
	UGC map[int][]*TypeLabels
}

IndexLabels is used to combine the data in memory

type Label

type Label struct {
	ID        int    `json:"id"`
	Name      string `json:"name"`
	Param     string `json:"param"`
	ParamName string `json:"param_name"`
	Value     string `json:"value"`
}

Label def.

func (*Label) TransYear

func (v *Label) TransYear(cfg *conf.IndexLabel)

TransYear transforms the value of year type labels

type TypeLabels

type TypeLabels struct {
	ParamName string   `json:"param_name"`
	Param     string   `json:"param"`
	Labels    []*Label `json:"labels"`
}

TypeLabels def.

func (*TypeLabels) FromLabels

func (v *TypeLabels) FromLabels(labels []*Label)

FromLabels def.

type YearVDur

type YearVDur struct {
	Dur string `json:"dur"`
}

YearVDur def.

Jump to

Keyboard shortcuts

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