Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrUnknownConfigID = errors.New("Unknown config ID.")
)
Functions ¶
This section is empty.
Types ¶
type BaseConfigLoader ¶
type BaseConfigLoader struct {
// contains filtered or unexported fields
}
func NewBaseConfigLoader ¶
func NewBaseConfigLoader() *BaseConfigLoader
func (*BaseConfigLoader) CreateConfig ¶
func (this *BaseConfigLoader) CreateConfig(id string) (interface{}, error)
func (*BaseConfigLoader) RegisterCreator ¶
func (this *BaseConfigLoader) RegisterCreator(id string, creator ConfigCreator) error
type ConfigCreator ¶
type ConfigCreator func() interface{}
Click to show internal directories.
Click to hide internal directories.