sqlcollector

package
v0.0.0-...-595af85 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2026 License: Apache-2.0 Imports: 6 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 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