2023-04-12 16:56:55 +08:00
|
|
|
package contracts
|
|
|
|
|
|
|
|
type Service interface {
|
2023-04-25 09:35:06 +08:00
|
|
|
LoadGoPlugin(file string) error
|
2023-04-25 15:08:45 +08:00
|
|
|
RegControllers(items map[string]Controller) error
|
|
|
|
RegListens(items map[string]ResListener) error
|
2023-06-05 16:52:03 +08:00
|
|
|
RegGRpcs(items map[string]GRpc) error
|
|
|
|
RegJobs(items map[string]Job) error
|
2023-10-30 15:47:36 +08:00
|
|
|
RegCrons(items map[string]Cron) error
|
2024-04-23 09:49:28 +08:00
|
|
|
RegMqtts(items map[string]Mqtt) error
|
2023-04-24 15:09:08 +08:00
|
|
|
GetResListener(code string) (ResListener, bool)
|
2023-04-24 15:21:13 +08:00
|
|
|
GetAppController(code string) (Controller, bool)
|
2023-06-05 16:52:03 +08:00
|
|
|
GetAppGRpc(code string) (GRpc, bool)
|
|
|
|
GetAppJob(code string) (Job, bool)
|
2023-10-30 17:14:47 +08:00
|
|
|
GetAppCron(code string) (Cron, bool)
|
2024-04-23 09:49:28 +08:00
|
|
|
GetAppMqtt(code string) (Mqtt, bool)
|
2023-04-24 15:02:51 +08:00
|
|
|
}
|