sqlcollector

package
v0.0.0-...-11ca375 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package sqlcollector contains modules that collects rules from Sql server.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SQLCollector

type SQLCollector interface {
	CollectMasterRules(context.Context, time.Duration) []internal.Details
}

SQLCollector is the interface of Collector which declares all funcs that needs to be implemented.

type V1

type V1 struct {
	// contains filtered or unexported fields
}

V1 that execute cmd and connect to SQL server.

func NewV1

func NewV1(driver, conn string, windows bool, usageMetricsLogger agentstatus.AgentStatus) (*V1, error)

NewV1 initializes a V1 instance.

func (*V1) Close

func (c *V1) Close() error

Close closes the database collection.

func (*V1) CollectMasterRules

func (c *V1) CollectMasterRules(ctx context.Context, timeout time.Duration) []internal.Details

CollectMasterRules collects master rules from target sql server. Master rules are defined in rules.go file.

Jump to

Keyboard shortcuts

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