conf

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: May 20, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GinMode

func GinMode() string

Types

type AppOpts

type AppOpts struct {
	Config  string
	Debug   bool `yaml:"debug"`
	Silent  bool `yaml:"silent"`
	Service struct {
		Address string `yaml:"address"`
		Host    string
		Port    int
		Timeout struct {
			Read  time.Duration `yaml:"read"`
			Write time.Duration `yaml:"write"`
		} `yaml:"timeout"`
	} `yaml:"service"`
	Template struct {
		Files []string `yaml:"files"`
	} `yaml:"template"`
}
var App AppOpts

func (*AppOpts) Decap

func (o *AppOpts) Decap() error

func (*AppOpts) Encap

func (o *AppOpts) Encap() error

func (*AppOpts) Load

func (o *AppOpts) Load(fileName string) error

func (*AppOpts) Parse

func (o *AppOpts) Parse(data []byte) error

Jump to

Keyboard shortcuts

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