25 lines
901 B
Go
25 lines
901 B
Go
package contracts
|
|
|
|
type App interface {
|
|
LoadGoPlugin(file string) error
|
|
RegControllers(items map[string]Controller) error
|
|
RegListens(items map[string]ResListener) error
|
|
RegGRpcs(items map[string]GRpc) error
|
|
RegJobs(items map[string]Job) error
|
|
RegCrons(items map[string]Cron) error
|
|
RegMqtts(items map[string]Mqtt) error
|
|
RegFlowDecisions(items map[string]FlowDecision) error
|
|
RegGoBridges(items map[string]GoBridge) error
|
|
RegResVirtualTables(items map[string]ResVirtualTable) error
|
|
|
|
GetResListener(code string) (ResListener, bool)
|
|
GetAppController(code string) (Controller, bool)
|
|
GetAppGRpc(code string) (GRpc, bool)
|
|
GetAppJob(code string) (Job, bool)
|
|
GetAppCron(code string) (Cron, bool)
|
|
GetAppMqtt(code string) (Mqtt, bool)
|
|
GetAppFlowDecision(code string) (FlowDecision, bool)
|
|
GetAppGoBridge(code string) (GoBridge, bool)
|
|
GetAppResVirtualTable(code string) (ResVirtualTable, bool)
|
|
}
|