oracledb

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2024 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidTarget = errors.New("invalid target")

Functions

This section is empty.

Types

type Config

type Config struct {
	BaseDir string             `toml:"base_dir"`
	Global  *Global            `toml:"global"`
	Queries []sqlc.CustomQuery `toml:"queries"`
}

func (*Config) Scrape

func (c *Config) Scrape(ctx context.Context, target string, ss *types.Samples) error

target: ip:port/service

type Global

type Global struct {
	Username  string            `toml:"username"`
	Password  string            `toml:"password"`
	Options   map[string]string `toml:"options"`
	Namespace string            `toml:"namespace"`
}

type OracleDB

type OracleDB struct{}

func (*OracleDB) ParseConfig

func (*OracleDB) ParseConfig(baseDir string, bs []byte) (any, error)

func (*OracleDB) Scrape

func (*OracleDB) Scrape(ctx context.Context, target string, c any, ss *types.Samples) error

Jump to

Keyboard shortcuts

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