Documentation ¶
Index ¶
- func NewMysql(logger logger.Logger) bindings.OutputBinding
- type MysqlOperations
- func (mysqlOps *MysqlOperations) CheckStatusOps(ctx context.Context, req *bindings.InvokeRequest, ...) (OpsResult, error)
- func (mysqlOps *MysqlOperations) ExecOps(ctx context.Context, req *bindings.InvokeRequest, ...) (OpsResult, error)
- func (mysqlOps *MysqlOperations) GetLagOps(ctx context.Context, req *bindings.InvokeRequest, ...) (OpsResult, error)
- func (mysqlOps *MysqlOperations) GetLogger() logger.Logger
- func (mysqlOps *MysqlOperations) GetRole(ctx context.Context, request *bindings.InvokeRequest, ...) (string, error)
- func (mysqlOps *MysqlOperations) GetRoleForConsensus(ctx context.Context, request *bindings.InvokeRequest, ...) (string, error)
- func (mysqlOps *MysqlOperations) GetRoleForReplication(ctx context.Context, request *bindings.InvokeRequest, ...) (string, error)
- func (mysqlOps *MysqlOperations) GetRunningPort() int
- func (mysqlOps *MysqlOperations) Init(metadata bindings.Metadata) error
- func (mysqlOps *MysqlOperations) InternalExec(ctx context.Context, sql string) (int64, error)
- func (mysqlOps *MysqlOperations) InternalQuery(ctx context.Context, sql string) ([]byte, error)
- func (mysqlOps *MysqlOperations) QueryOps(ctx context.Context, req *bindings.InvokeRequest, ...) (OpsResult, error)
- type QueryRes
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MysqlOperations ¶
type MysqlOperations struct { BaseOperations // contains filtered or unexported fields }
MysqlOperations represents MySQL output bindings.
func (*MysqlOperations) CheckStatusOps ¶
func (mysqlOps *MysqlOperations) CheckStatusOps(ctx context.Context, req *bindings.InvokeRequest, resp *bindings.InvokeResponse) (OpsResult, error)
func (*MysqlOperations) ExecOps ¶
func (mysqlOps *MysqlOperations) ExecOps(ctx context.Context, req *bindings.InvokeRequest, resp *bindings.InvokeResponse) (OpsResult, error)
func (*MysqlOperations) GetLagOps ¶
func (mysqlOps *MysqlOperations) GetLagOps(ctx context.Context, req *bindings.InvokeRequest, resp *bindings.InvokeResponse) (OpsResult, error)
func (*MysqlOperations) GetLogger ¶
func (mysqlOps *MysqlOperations) GetLogger() logger.Logger
GetLogger is used for getting logger, implements BaseInternalOps interface
func (*MysqlOperations) GetRole ¶
func (mysqlOps *MysqlOperations) GetRole(ctx context.Context, request *bindings.InvokeRequest, response *bindings.InvokeResponse) (string, error)
func (*MysqlOperations) GetRoleForConsensus ¶ added in v0.6.0
func (mysqlOps *MysqlOperations) GetRoleForConsensus(ctx context.Context, request *bindings.InvokeRequest, response *bindings.InvokeResponse) (string, error)
func (*MysqlOperations) GetRoleForReplication ¶ added in v0.6.0
func (mysqlOps *MysqlOperations) GetRoleForReplication(ctx context.Context, request *bindings.InvokeRequest, response *bindings.InvokeResponse) (string, error)
func (*MysqlOperations) GetRunningPort ¶
func (mysqlOps *MysqlOperations) GetRunningPort() int
func (*MysqlOperations) Init ¶
func (mysqlOps *MysqlOperations) Init(metadata bindings.Metadata) error
Init initializes the MySQL binding.
func (*MysqlOperations) InternalExec ¶
InternalExec is used for internal execution, implements BaseInternalOps interface
func (*MysqlOperations) InternalQuery ¶
InternalQuery is used for internal query, implements BaseInternalOps interface
func (*MysqlOperations) QueryOps ¶
func (mysqlOps *MysqlOperations) QueryOps(ctx context.Context, req *bindings.InvokeRequest, resp *bindings.InvokeResponse) (OpsResult, error)
Click to show internal directories.
Click to hide internal directories.