v2

package
v1.23.3 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2022 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GlobalStatusConversions = map[string]ConversionFunc{
	"innodb_available_undo_logs":    ParseUint,
	"innodb_buffer_pool_pages_misc": ParseUint,
	"innodb_data_pending_fsyncs":    ParseUint,
	"ssl_ctx_verify_depth":          ParseUint,
	"ssl_verify_depth":              ParseUint,

	"wsrep_local_index":          ParseUint,
	"wsrep_local_send_queue_avg": ParseFloat,
}
View Source
var GlobalVariableConversions = map[string]ConversionFunc{

	"delay_key_write":                ParseString,
	"enforce_gtid_consistency":       ParseString,
	"event_scheduler":                ParseString,
	"have_openssl":                   ParseBoolAsInteger,
	"have_ssl":                       ParseBoolAsInteger,
	"have_symlink":                   ParseBoolAsInteger,
	"session_track_gtids":            ParseString,
	"session_track_transaction_info": ParseString,
	"ssl_fips_mode":                  ParseString,
	"use_secondary_engine":           ParseString,

	"transaction_write_set_extraction": ParseString,

	"slave_skip_errors": ParseString,

	"gtid_mode": ParseGTIDMode,
}

Functions

func ConvertGlobalStatus

func ConvertGlobalStatus(key string, value sql.RawBytes) (interface{}, error)

func ConvertGlobalVariables

func ConvertGlobalVariables(key string, value sql.RawBytes) (interface{}, error)

func ParseBoolAsInteger

func ParseBoolAsInteger(value sql.RawBytes) (interface{}, error)

func ParseFloat added in v1.20.4

func ParseFloat(value sql.RawBytes) (interface{}, error)

func ParseGTIDMode

func ParseGTIDMode(value sql.RawBytes) (interface{}, error)

func ParseInt

func ParseInt(value sql.RawBytes) (interface{}, error)

func ParseString added in v1.20.3

func ParseString(value sql.RawBytes) (interface{}, error)

func ParseUint added in v1.20.3

func ParseUint(value sql.RawBytes) (interface{}, error)

func ParseValue

func ParseValue(value sql.RawBytes) (interface{}, error)

Types

type ConversionFunc

type ConversionFunc func(value sql.RawBytes) (interface{}, error)

Jump to

Keyboard shortcuts

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