Documentation
¶
Index ¶
- func GetHealthStatus(m *nmodule.Module, r *router.Request) ([]byte, error)
- func GetWeather(m *nmodule.Module, r *router.Request) ([]byte, error)
- func InitRouter()
- type Config
- type Module
- func (m *Module) CallModule(method nhttp.Method, urlString string, headers http.Header, body []byte) ([]byte, error)
- func (m *Module) DefaultConfig() *Config
- func (m *Module) Disable() error
- func (m *Module) Enable() error
- func (m *Module) GetConfig() interface{}
- func (m *Module) GetInfo() (*nmodule.Info, error)
- func (m *Module) Init(dbHelper nmodule.DBHelper, moduleName string) error
- func (m *Module) ValidateAndSetConfig(config []byte) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitRouter ¶
func InitRouter()
Types ¶
type Module ¶
type Module struct {
ErrorOnDB bool
// contains filtered or unexported fields
}
func (*Module) CallModule ¶
func (*Module) DefaultConfig ¶
Click to show internal directories.
Click to hide internal directories.