Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Application ¶
type Application struct { Organization string `default:"dubbo-go-boot" yaml:"organization" json:"organization"` Name string `default:"dubbo.io" yaml:"name" json:"name" property:"name"` Module string `default:"sample" yaml:"module" json:"module"` Version string `default:"1.0.0" yaml:"version" json:"version"` Owner string `default:"dubbo-go" yaml:"owner" json:"owner"` Environment string `default:"dev" yaml:"environment" json:"environment"` }
func (*Application) Init ¶
func (a *Application) Init() error
Init application config and set default value
func (*Application) Order ¶
func (a *Application) Order() int
type Config ¶
type Config interface { // Prefix config prefix Prefix() string // Init init config Init() error // Order load order Order() int }
func GetConfigs ¶
func GetConfigs() []Config
type Database ¶
type Database struct { // mongo、mysql Driver string `json:"driver"` // database url Url string `json:"url"` // database username Username string `yaml:"username"` // database password Password string `yaml:"password"` // database connect timeout Timeout string `default:"5s" json:"timeout"` }
func (*Database) InitDatabase ¶
Click to show internal directories.
Click to hide internal directories.