feat: 升级 samber/do v1 → v2
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
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)
|
||||
}
|
||||
Reference in New Issue
Block a user