table

package
v0.0.0-...-ec5001f Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	NUMERIC_TYPES = []string{
		"short",
		"integer",
		"long",
		"float",
		"double",
	}
)

Functions

func Contains

func Contains(tableName string, tableConfigs []*TableConfig) bool

Types

type Column

type Column struct {
	Name    string
	Label   string
	Numeric bool
}

type Table

type Table struct {
	Name       string
	UpdateTime time.Time
	Columns    []*Column
	Rows       [][]string
}

type TableConfig

type TableConfig struct {
	Name         string
	SqlQuery     string
	EntityGroups []string
}

type TableService

type TableService struct {
	// contains filtered or unexported fields
}

func NewTableService

func NewTableService() *TableService

func (*TableService) GetEntityGroups

func (self *TableService) GetEntityGroups() []string

func (*TableService) GetGroupEntities

func (self *TableService) GetGroupEntities(entityGroup string) []string

func (*TableService) GetTable

func (self *TableService) GetTable(name string) (*Table, bool)

func (*TableService) GetTablesList

func (self *TableService) GetTablesList() []string

func (*TableService) Init

func (self *TableService) Init(tableConfigs []*TableConfig, url neturl.URL)

func (*TableService) StartUpdatingTables

func (self *TableService) StartUpdatingTables(UpdatePeriod time.Duration)

func (*TableService) StopUpdatingService

func (self *TableService) StopUpdatingService()

Jump to

Keyboard shortcuts

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