Documentation ¶
Overview ¶
Package system provides system builder which response for properties dependency injection.
The auto configuration composes properties object
Example ¶
This example shows how to use the system build
package main import () func main() { }
Output:
Index ¶
- type App
- type Builder
- func (b *Builder) Build(profiles ...string) (interface{}, error)
- func (b *Builder) BuildWithProfile() (interface{}, error)
- func (b *Builder) Init() error
- func (b *Builder) New(name string) *viper.Viper
- func (b *Builder) Read(name string) (interface{}, error)
- func (b *Builder) Save(p interface{}) error
- type Configuration
- type Env
- type InvalidControllerError
- type Logging
- type NotFoundError
- type Profiles
- type Server
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Builder ¶
type Builder struct { Path string Name string FileType string Profile string ConfigType interface{} }
func (*Builder) BuildWithProfile ¶ added in v0.2.0
build config file
type Configuration ¶
type InvalidControllerError ¶
type InvalidControllerError struct {
Name string
}
func (*InvalidControllerError) Error ¶
func (e *InvalidControllerError) Error() string
type NotFoundError ¶
type NotFoundError struct {
Name string
}
func (*NotFoundError) Error ¶
func (e *NotFoundError) Error() string
Click to show internal directories.
Click to hide internal directories.