mysql

package
v0.7.2-beta.10 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2023 License: AGPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MysqlOperations

type MysqlOperations struct {
	BaseOperations
}

MysqlOperations represents MySQL output bindings.

func NewMysql

func NewMysql() *MysqlOperations

NewMysql returns a new MySQL output binding.

func (*MysqlOperations) CheckStatusOps

func (mysqlOps *MysqlOperations) CheckStatusOps(ctx context.Context, req *ProbeRequest, resp *ProbeResponse) (OpsResult, error)

func (*MysqlOperations) ExecOps

func (mysqlOps *MysqlOperations) ExecOps(ctx context.Context, req *ProbeRequest, resp *ProbeResponse) (OpsResult, error)

func (*MysqlOperations) GetLagOps

func (mysqlOps *MysqlOperations) GetLagOps(ctx context.Context, req *ProbeRequest, resp *ProbeResponse) (OpsResult, error)

func (*MysqlOperations) GetLogger

func (mysqlOps *MysqlOperations) GetLogger() logr.Logger

GetLogger is used for getting logger, implements BaseInternalOps interface

func (*MysqlOperations) GetRole

func (mysqlOps *MysqlOperations) GetRole(ctx context.Context, request *ProbeRequest, response *ProbeResponse) (string, error)

func (*MysqlOperations) GetRoleForConsensus

func (mysqlOps *MysqlOperations) GetRoleForConsensus(ctx context.Context, request *ProbeRequest, response *ProbeResponse) (string, error)

func (*MysqlOperations) GetRoleForReplication

func (mysqlOps *MysqlOperations) GetRoleForReplication(ctx context.Context, request *ProbeRequest, response *ProbeResponse) (string, error)

func (*MysqlOperations) GetRunningPort

func (mysqlOps *MysqlOperations) GetRunningPort() int

func (*MysqlOperations) Init

func (mysqlOps *MysqlOperations) Init(metadata component.Properties) error

Init initializes the MySQL binding.

func (*MysqlOperations) InternalExec

func (mysqlOps *MysqlOperations) InternalExec(ctx context.Context, sql string) (int64, error)

InternalExec is used for internal execution, implements BaseInternalOps interface

func (*MysqlOperations) InternalQuery

func (mysqlOps *MysqlOperations) InternalQuery(ctx context.Context, sql string) ([]byte, error)

InternalQuery is used for internal query, implements BaseInternalOps interface

func (*MysqlOperations) QueryOps

func (mysqlOps *MysqlOperations) QueryOps(ctx context.Context, req *ProbeRequest, resp *ProbeResponse) (OpsResult, error)

type QueryRes

type QueryRes []map[string]interface{}

Jump to

Keyboard shortcuts

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