xbcfg

package
v0.0.0-...-bc7acb5 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2024 License: Apache-2.0 Imports: 0 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBasePath

func GetBasePath() string

func GetGitCommit

func GetGitCommit() string

func GetGitTag

func GetGitTag() string

func GetPostgresHost

func GetPostgresHost() string

func GetPostgresName

func GetPostgresName() string

func GetPostgresPassword

func GetPostgresPassword() string

func GetPostgresPort

func GetPostgresPort() string

func GetPostgresUser

func GetPostgresUser() string

func GetServiceCode

func GetServiceCode() string

func GetServiceDebugging

func GetServiceDebugging() bool

func GetServiceDeveloping

func GetServiceDeveloping() bool

func GetServiceEnvironment

func GetServiceEnvironment() string

func GetServiceID

func GetServiceID() string

func GetServiceLogLevel

func GetServiceLogLevel() string

func GetServiceName

func GetServiceName() string

func GetServicePort

func GetServicePort() int

func GetServiceProject

func GetServiceProject() string

func GetServiceTesting

func GetServiceTesting() bool

func GetServiceVersion

func GetServiceVersion() string

func SetConfig

func SetConfig(config Config)

Types

type Config

type Config interface {
	GetBasePath() string
	GetGitTag() string
	GetGitCommit() string

	GetServiceID() string
	GetServiceCode() string
	GetServiceName() string
	GetServicePort() int
	GetServiceProject() string
	GetServiceVersion() string
	GetServiceEnvironment() string
	GetServiceLogLevel() string
	GetServiceTesting() bool
	GetServiceDebugging() bool
	GetServiceDeveloping() bool

	GetPostgresHost() string
	GetPostgresPort() string
	GetPostgresName() string
	GetPostgresUser() string
	GetPostgresPassword() string
}

func GetConfig

func GetConfig() Config

Jump to

Keyboard shortcuts

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