mysql

package
v0.0.0-...-ad6a373 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2026 License: Apache-2.0 Imports: 14 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package mysql implements the MySQL workload agent service.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MetricsInterface

type MetricsInterface interface {
	InitDB(ctx context.Context, gceService mysqlmetrics.GceInterface) error
	CollectWlmMetricsOnce(ctx context.Context, dwActivated bool) (*workloadmanager.WorkloadMetrics, error)
	CollectDBCenterMetricsOnce(ctx context.Context) error
}

MetricsInterface defines an interface for mysqlmetrics.MySQLMetrics to allow faking

type Service

type Service struct {
	Config     *configpb.Configuration
	CloudProps *configpb.CloudProperties
	CommonCh   <-chan *servicecommunication.Message

	WLMClient      workloadmanager.WLMWriter
	DBcenterClient databasecenter.Client
	// contains filtered or unexported fields
}

Service implements the interfaces for MySQL workload agent service.

func (*Service) ErrorCode

func (s *Service) ErrorCode() int

ErrorCode returns the error code for the MySQL service.

func (*Service) ExpectedMinDuration

func (s *Service) ExpectedMinDuration() time.Duration

ExpectedMinDuration returns the expected minimum duration for the MySQL service. Used by the recovery handler to determine if the service ran long enough to be considered successful.

func (*Service) Start

func (s *Service) Start(ctx context.Context, a any)

Start initiates the MySQL workload agent service

func (*Service) String

func (s *Service) String() string

String returns the name of the MySQL service.

Jump to

Keyboard shortcuts

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