configdb

package
v0.0.0-...-9835270 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2021 License: AGPL-3.0, Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDatabase

func NewDatabase(driver, createAddr, address, underlying, topic string, useAsync bool) (interface{}, error)

NewDatabase creates a new device database

Types

type Database

type Database struct {
	AsyncSave bool
	// contains filtered or unexported fields
}

func (*Database) SelectServerInstance

func (d *Database) SelectServerInstance(
	ctx context.Context,
	serverName string,
) (instance int64, err error)

func (*Database) SelectServerNames

func (d *Database) SelectServerNames(
	ctx context.Context,
) (results []string, err error)

func (*Database) SetGauge

func (d *Database) SetGauge(qryDBGauge mon.LabeledGauge)

func (*Database) UpsertServerInstance

func (d *Database) UpsertServerInstance(
	ctx context.Context,
	nid int64,
	serverName string,
) error

func (*Database) UpsertServerName

func (d *Database) UpsertServerName(
	ctx context.Context,
	nid int64,
	serverName string,
) error

Jump to

Keyboard shortcuts

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