mysql

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2022 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

Jump to

Keyboard shortcuts

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