global

package
v3.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2022 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Overview

Package global provides access to the global Database Lab Engine configuration.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Database  Database  `yaml:"database"`
	Engine    string    `yaml:"engine"`
	Debug     bool      `yaml:"debug"`
	Telemetry Telemetry `yaml:"telemetry"`
}

Config contains global Database Lab configurations.

type Database

type Database struct {
	Username string `yaml:"username"`
	DBName   string `yaml:"dbname"`
}

Database contains default configurations of the managed database.

func (*Database) Name

func (d *Database) Name() string

Name returns default Database name.

func (*Database) User

func (d *Database) User() string

User returns default Database username.

type EngineProps

type EngineProps struct {
	InstanceID    string
	ContainerName string
	EnginePort    uint
}

EngineProps contains internal Database Lab Engine properties.

type Telemetry

type Telemetry struct {
	Enabled bool   `yaml:"enabled"`
	URL     string `yaml:"url"`
}

Telemetry contains configuration of Database Lab Engine telemetry.

Jump to

Keyboard shortcuts

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