v2

package
v1.15.3 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2020 License: MIT Imports: 4 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GlobalStatusConversions = map[string]ConversionFunc{
	"ssl_ctx_verify_depth": ParseInt,
	"ssl_verify_depth":     ParseInt,
}
View Source
var GlobalVariableConversions = map[string]ConversionFunc{
	"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 ParseGTIDMode

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

func ParseInt

func ParseInt(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