database_client

package
v9.1.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func QuoteIdentifier

func QuoteIdentifier(identifier string) string

Types

type DbClient

type DbClient struct {
	// contains filtered or unexported fields
}

func NewDatabaseClient

func NewDatabaseClient(connection *sql.DB, config *configPackage.Config) *DbClient

func (*DbClient) HeartbeatStatus

func (dc *DbClient) HeartbeatStatus() (map[string]string, error)

func (*DbClient) IsAvailable

func (dc *DbClient) IsAvailable() bool

func (*DbClient) IsFollower

func (dc *DbClient) IsFollower() (bool, error)

func (*DbClient) ServicePlansDiskAllocated

func (dc *DbClient) ServicePlansDiskAllocated() (map[string]string, error)

func (*DbClient) ShowGlobalStatus

func (dc *DbClient) ShowGlobalStatus() (map[string]string, error)

func (*DbClient) ShowGlobalVariables

func (dc *DbClient) ShowGlobalVariables() (map[string]string, error)

func (*DbClient) ShowSlaveStatus

func (dc *DbClient) ShowSlaveStatus() (map[string]string, error)

Jump to

Keyboard shortcuts

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