report

package
v0.38.0 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildBodyType

func BuildBodyType(metadata *Metadata) reflect.Type

func BuildInputType

func BuildInputType(component *Component, metadata *Metadata, cfg *Config) (*state.Type, error)

Types

type Component

type Component struct {
	Name       string
	InputName  string
	Parameters state.Parameters
	View       *view.View
	Resource   state.Resource
	Report     *Config
}

type Config

type Config struct {
	Enabled    bool
	MCPTool    *bool
	Input      string
	Dimensions string
	Measures   string
	Filters    string
	OrderBy    string
	Limit      string
	Offset     string
}

func (*Config) Clone

func (c *Config) Clone() *Config

func (*Config) InputTypeName

func (c *Config) InputTypeName(componentName, inputName, viewName string) string

func (*Config) MCPToolEnabled

func (c *Config) MCPToolEnabled() bool

func (*Config) Normalize

func (c *Config) Normalize() *Config

type Field

type Field struct {
	Name        string
	FieldName   string
	Section     string
	Description string
}

type Filter

type Filter struct {
	Name        string
	FieldName   string
	Section     string
	Description string
	Parameter   *state.Parameter
}

func (*Filter) SchemaType

func (f *Filter) SchemaType() reflect.Type

type Metadata

type Metadata struct {
	InputName     string
	BodyFieldName string
	DimensionsKey string
	MeasuresKey   string
	FiltersKey    string
	Dimensions    []*Field
	Measures      []*Field
	Filters       []*Filter
	OrderBy       string
	Limit         string
	Offset        string
}

func AssembleMetadata

func AssembleMetadata(component *Component, cfg *Config) (*Metadata, error)

func (*Metadata) ValidateSelection

func (m *Metadata) ValidateSelection() error

Jump to

Keyboard shortcuts

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