datasource

package
v0.0.0-...-23e8124 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataSource

type DataSource interface {
	Type() string
}

type DataSourceType

type DataSourceType int

DataSourceType for druid query

const (
	Table DataSourceType = iota
	Query
	Union
	Lookup
)

func (DataSourceType) MarshalJSON

func (d DataSourceType) MarshalJSON() ([]byte, error)

func (DataSourceType) Name

func (d DataSourceType) Name() string

func (DataSourceType) Ordinal

func (d DataSourceType) Ordinal() int

func (DataSourceType) Values

func (d DataSourceType) Values() *[]string

type LookupDataSource

type LookupDataSource struct {
	DataSourceType DataSourceType `json:"type"`
	Lookup         string         `json:"lookup"`
}

func (*LookupDataSource) Type

func (m *LookupDataSource) Type() string

type QueryDataSource

type QueryDataSource struct {
	DataSourceType DataSourceType `json:"type"`
}

func (*QueryDataSource) Type

func (m *QueryDataSource) Type() string

type SimpleDataSource

type SimpleDataSource string

func (SimpleDataSource) Type

func (s SimpleDataSource) Type() string

type TableDataSource

type TableDataSource struct {
	DataSourceType DataSourceType `json:"type"`
	Name           string         `json:"name"`
}

func (*TableDataSource) Type

func (m *TableDataSource) Type() string

type UnionDataSource

type UnionDataSource struct {
	DataSourceType DataSourceType `json:"type"`
	DataSources    []string       `json:"dataSources"`
}

UnionDataSource unions table data sources

func (*UnionDataSource) Type

func (m *UnionDataSource) Type() string

Jump to

Keyboard shortcuts

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