configs

package
v0.0.0-...-8ac899c Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IConfig

type IConfig interface {
	GetDbUsername() string
	GetDbPassword() string
	GetDbHost() string
	GetDbPort() string
	GetDbDefaultName() string
}

type Specification

type Specification struct {
	Debug         bool   `default:"true"`
	ServerPort    int    `default:"5051"`
	DbUsername    string `required:"true"`
	DbPassword    string `required:"true"`
	DbHost        string `required:"true"`
	DbPort        string `required:"true"`
	DbDefaultName string `required:"true"`
}

func Load

func Load() *Specification

func (*Specification) GetDbDefaultName

func (s *Specification) GetDbDefaultName() string

func (*Specification) GetDbHost

func (s *Specification) GetDbHost() string

func (*Specification) GetDbPassword

func (s *Specification) GetDbPassword() string

func (*Specification) GetDbPort

func (s *Specification) GetDbPort() string

func (*Specification) GetDbUsername

func (s *Specification) GetDbUsername() string

Jump to

Keyboard shortcuts

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