mysql

package
v0.0.0-...-c3423aa Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 22, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package mysql is the client probe for MySQL.

Index

Constants

View Source
const Kind string = "MySQL"

Kind is the type of driver

Variables

This section is empty.

Functions

This section is empty.

Types

type MySQL

type MySQL struct {
	conf.Options `yaml:",inline"`

	ConnStr string `yaml:"conn_str,omitempty" json:"conn_str,omitempty"`
	// contains filtered or unexported fields
}

MySQL is the MySQL client

func New

func New(opt conf.Options) (*MySQL, error)

New create a Mysql client

func (*MySQL) Kind

func (r *MySQL) Kind() string

Kind return the name of client

func (*MySQL) Probe

func (r *MySQL) Probe() (bool, string)

Probe do the health check

func (*MySQL) ProbeWithDataVerification

func (r *MySQL) ProbeWithDataVerification(db *sql.DB) error

ProbeWithDataVerification do the health check with data verification

func (*MySQL) ProbeWithPing

func (r *MySQL) ProbeWithPing(db *sql.DB) error

ProbeWithPing do the health check with ping

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL