setting

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

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

Go to latest
Published: Jul 5, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ServerSettingS

type ServerSettingS struct {
	RunMode      string
	HttpPort     string
	ReadTimeout  time.Duration
	WriteTimeout time.Duration
}

type Setting

type Setting struct {
	// contains filtered or unexported fields
}

func NewSetting

func NewSetting() (*Setting, error)

func (*Setting) BindEnvs

func (s *Setting) BindEnvs(iface any, parts ...string)

func (*Setting) ReadAllSection

func (s *Setting) ReadAllSection(value any) error

func (*Setting) ReadSection

func (s *Setting) ReadSection(key string, value any) error

type Settings

type Settings struct {
	Server ServerSettingS
}

Jump to

Keyboard shortcuts

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