global

package
Version: v2.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2021 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 {
	InstanceID string
	Engine     string   `yaml:"engine"`
	Debug      bool     `yaml:"debug"`
	Database   Database `yaml:"database"`
}

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.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL