config

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseConfigure

type BaseConfigure struct {
	Log string

	Prog struct {
		CPU        int
		HealthPort int
	}

	Server struct {
		AppName  string
		HttpPort int
		TcpPort  int
	}
}

type DogAppConfig

type DogAppConfig struct {
	BaseConfig *BaseConfigure
	// contains filtered or unexported fields
}

func NewDogConfig

func NewDogConfig() *DogAppConfig

func (*DogAppConfig) Bool

func (a *DogAppConfig) Bool(key string) (bool, error)

func (*DogAppConfig) Int

func (a *DogAppConfig) Int(key string) (int, error)

func (*DogAppConfig) Set

func (a *DogAppConfig) Set(key string, value interface{})

func (*DogAppConfig) String

func (a *DogAppConfig) String(key string) (string, error)

func (*DogAppConfig) Strings

func (a *DogAppConfig) Strings(key string) ([]string, error)

Jump to

Keyboard shortcuts

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