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
Click to show internal directories.
Click to hide internal directories.