schema

package
v0.0.0-...-9b529c6 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const FILENAME = "palo_schema"

Variables

This section is empty.

Functions

func Save

func Save(schema *Schema, dataPath string)

Types

type Attribute

type Attribute struct {
	Name  string
	Dtype DataType
}

func NewAttribute

func NewAttribute(name string, dtype DataType) *Attribute

type DataType

type DataType int
const (
	STRING DataType = iota
	INTEGER
)

func GetDataTypeFromName

func GetDataTypeFromName(dtypeName string) DataType

type Dimension

type Dimension struct {
	Name   string
	Levels []*Level
}

func NewDimension

func NewDimension(name string, lvls []*Level) *Dimension

type Level

type Level struct {
	Name       string
	Attributes []*Attribute
}

func NewLevel

func NewLevel(name string, attrs []*Attribute) *Level

type Schema

type Schema struct {
	Dims []*Dimension
}

func Load

func Load(dataPath string) *Schema

Jump to

Keyboard shortcuts

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