Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Sources map[string]DBConnInfo `yaml:"sources"` Destination DBConnInfo `yaml:"destination"` Commands []Command `yaml:"commands,omitempty"` }
Config is the configuration for the dsnexec
type DBConnInfo ¶
DBConnInfo is a database connection info
func (DBConnInfo) Validate ¶
func (c DBConnInfo) Validate() error
Validate validates the db conn info
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Hanlder is an instance of dsnexec.
func NewHanlder ¶
func NewHanlder(options ...HandlerOption) (*Handler, error)
NewHanlder creates a new dsnexec handler.
type HandlerOption ¶
HandlerOption is an option for the dsnexec handler.
func WithConfig ¶
func WithConfig(c Config) HandlerOption
WithConfig sets the config for the dnsexec handler.
Click to show internal directories.
Click to hide internal directories.