Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
User string `mapstructure:"user" yaml:"user" json:"user,omitempty"`
Password string `mapstructure:"password" yaml:"password" json:"password,omitempty"`
Host string `mapstructure:"host" yaml:"host" json:"host,omitempty"`
Name string `mapstructure:"name" yaml:"name" json:"name,omitempty"`
MaxIdleConns int `mapstructure:"maxIdleConns" yaml:"maxIdleConns" json:"maxIdleConns,omitempty"`
MaxOpenConns int `mapstructure:"maxOpenConns" yaml:"maxOpenConns" json:"maxOpenConns,omitempty"`
DisableTLS bool `mapstructure:"disableTls" yaml:"disableTLS" json:"disableTLS,omitempty"`
}
Config is the required properties to use the database.
type HealthcheckAdapter ¶
func NewHealthChecker ¶
func NewHealthChecker(db *sqlx.DB) *HealthcheckAdapter
func (*HealthcheckAdapter) Name ¶
func (h *HealthcheckAdapter) Name() string
func (*HealthcheckAdapter) Pass ¶
func (h *HealthcheckAdapter) Pass() bool
Click to show internal directories.
Click to hide internal directories.