config

package
v2.0.8 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2024 License: MIT Imports: 1 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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