Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WildcardMatch ¶
Types ¶
type Config ¶
type Config struct { Etcd Etcd `yaml:"etcd"` Runtime *Runtime `yaml:"runtime"` FileConnectors FileConnectors `yaml:"file-connector"` HttpConnectors HttpConnectors `yaml:"http-connector"` MysqlConnectors MysqlConnectors `yaml:"mysql-connector"` Worker Worker `yaml:"worker"` Coordinator Coordinator `yaml:"coordinator"` }
var Conf Config
type Coordinator ¶
type Coordinator struct {
HttpPort int `yaml:"http-port"`
}
type FileConnector ¶
type FileConnectors ¶
type FileConnectors map[string]*FileConnector
func (FileConnectors) Check ¶
func (c FileConnectors) Check() error
func (FileConnectors) GetConfig ¶
func (c FileConnectors) GetConfig(name string) *FileConnector
type HttpConnector ¶
type HttpConnector struct { Catalog string `yaml:"catalog"` Schema string `yaml:"schema"` Table string `yaml:"table"` DataPath string `yaml:"data-path"` FilterColumn string `yaml:"filter-column"` ResultColumn string `yaml:"result-column"` ColumnNames []string `yaml:"column-names"` ColumnTypes []string `yaml:"column-types"` }
type HttpConnectors ¶
type HttpConnectors map[string]*HttpConnector
func (HttpConnectors) Check ¶
func (c HttpConnectors) Check() error
func (HttpConnectors) GetConfig ¶
func (c HttpConnectors) GetConfig(name string) *HttpConnector
type MysqlConnector ¶
type MysqlConnector struct { Catalog string `yaml:"catalog"` Schema string `yaml:"schema"` Table string `yaml:"table"` Host string `yaml:"host"` Port string `yaml:"port"` User string `yaml:"user"` Password string `yaml:"password"` ColumnNames []string `yaml:"column-names"` ColumnTypes []string `yaml:"column-types"` }
type MysqlConnectors ¶
type MysqlConnectors map[string]*MysqlConnector
func (MysqlConnectors) Check ¶
func (m MysqlConnectors) Check() error
func (MysqlConnectors) GetConfig ¶
func (m MysqlConnectors) GetConfig(name string) *MysqlConnector
Click to show internal directories.
Click to hide internal directories.