config

package
v2.0.7 Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ColumnConfig

type ColumnConfig struct {
	ColumnName string
	Templates  []Template
}

func (*ColumnConfig) UnmarshalJSON

func (c *ColumnConfig) UnmarshalJSON(bytes []byte) error

type ColumnTransformation

type ColumnTransformation interface {
	GetType() string
}

type ColumnTransformationConfig

type ColumnTransformationConfig struct {
	Type    string          `json:"type"`
	Options json.RawMessage `json:"options"`
}

type Config

type Config struct {
	TableConfigs    []TableConfig       `json:"tables"`
	RowVariables    map[string]Template `json:"rowVariables,omitempty"`
	ColumnVariables map[string]Template `json:"columnVariables,omitempty"`
	GlobalVariables map[string]Template `json:"globalVariables,omitempty"`
	TableVariables  map[string]Template `json:"tableVariables,omitempty"`
	PostSQL         string              `json:"postSql,omitempty"`
	Settings        Settings            `json:"settings"`
}

func (Config) GetAllTableConfigsByName

func (c Config) GetAllTableConfigsByName(name string) []TableConfig

type Settings

type Settings struct {
	Locale string `json:"locale"`
}

type TableConfig

type TableConfig struct {
	TableName       string              `json:"name"`
	Columns         []ColumnConfig      `json:"columns"`
	RowVariables    map[string]Template `json:"rowVariables,omitempty"`
	ColumnVariables map[string]Template `json:"columnVariables,omitempty"`
	TableVariables  map[string]Template `json:"tableVariables,omitempty"`
}

func (TableConfig) GetAllColumnConfigsByName

func (t TableConfig) GetAllColumnConfigsByName(name string) []ColumnConfig

type Template

type Template string

Jump to

Keyboard shortcuts

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