collector

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(db *sql.DB) job.Collector

New creates a collector instance

func OpenSQL

func OpenSQL(cfg DBConfig) (*sql.DB, error)

OpenSQL opens a mssql database connection by given config

Types

type DBConfig

type DBConfig struct {
	Server   string
	Port     int
	User     string
	Password string
	Database string
}

DBConfig struct encapsulate all settings for dbCollector

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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