Documentation ¶
Index ¶
Constants ¶
View Source
const (
ProviderName = "mysql"
)
Variables ¶
View Source
var Set = wire.NewSet(ConfigProvider, Factory, NewProvider)
Functions ¶
Types ¶
type Config ¶
type Config struct { Host string `hcl:"host"` Port int `hcl:"port"` Username string `hcl:"username"` Password string `hcl:"password"` Database string `hcl:"database"` }
func ConfigProvider ¶
func ConfigProvider(cfg *fabric.Configuration) (*Config, error)
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
func NewProvider ¶
Click to show internal directories.
Click to hide internal directories.