contracts/service.go
2024-04-23 09:49:28 +08:00

18 lines
581 B
Go

package contracts
type Service 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
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)
}