Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Handler ¶
func Handler(dict *Dictionary) (http.HandlerFunc, error)
Handler make an HTTP handler
Types ¶
type Dictionary ¶
type JSONEachRow ¶
type JSONEachRow struct {
// contains filtered or unexported fields
}
JSONEachRow output
func (*JSONEachRow) Write ¶
func (json *JSONEachRow) Write(values []interface{}) error
Write row to the output
type Source ¶
type Source struct { Source string `yaml:"source"` DSN string `yaml:"dsn"` Name string `yaml:"name"` MaxOpenConns int `yaml:"max_open_conns"` MaxIdleConns int `yaml:"max_idle_conns"` ConnMaxLifetime time.Duration `yaml:"conn_max_lifetime"` }
Source is a credentials for the source database
type TabSeparated ¶
type TabSeparated struct {
// contains filtered or unexported fields
}
TabSeparated output
func (*TabSeparated) Write ¶
func (tab *TabSeparated) Write(values []interface{}) error
Write row to the output
Click to show internal directories.
Click to hide internal directories.