env

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2023 License: Apache-2.0 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 {
	GetEnv() value_types.EnvConst
	GetPort() string
	GetAddr() string
}

type RequiredConfig added in v1.0.1

type RequiredConfig struct {
	Env  value_types.EnvConst `yaml:"env"`
	Port string               `yaml:"port"`
	Addr string               `yaml:"addr"`
}

do composition with this struct, this struct is design to work with viper

func (RequiredConfig) GetAddr added in v1.0.4

func (c RequiredConfig) GetAddr() string

func (RequiredConfig) GetEnv added in v1.0.1

func (c RequiredConfig) GetEnv() value_types.EnvConst

func (RequiredConfig) GetPort added in v1.0.4

func (c RequiredConfig) GetPort() string

Directories

Path Synopsis
Code generated by MockGen.
Code generated by MockGen.

Jump to

Keyboard shortcuts

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