Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
Factory
}
Config represents a module configuration.
func (*Config) UnmarshalJSON ¶
UnmarshalJSON implements JSON interface to customize JSON unmarshalling process. It detects the module name (field: Module) and generates the appropriate module's constructor.
func (*Config) UnmarshalYAML ¶
UnmarshalYAML implements YAML interface to customize JSON unmarshalling process. It detects the module name (field: Module) and generates the appropriate module's constructor.
type Environment ¶
type Environment struct { // Logger provides logging facility to a module. Logger *log.Logger // Store provides a collection's access facilities to a module. Store *store.Store }
Environment represents a set of facilities that a module can access to to interact with its environment (logging, gostore access, ...).
type Factory ¶
type Factory interface { // NewModule creates a new module according to Factory configuration and to // gostore's modules environment. NewModule(*Environment) (Module, error) }
Factory represents a module provider.
Directories ¶
Path | Synopsis |
---|---|
Package all eases import of all available module in the main application.
|
Package all eases import of all available module in the main application. |
Click to show internal directories.
Click to hide internal directories.