contracts/service.go

14 lines
497 B
Go
Raw Normal View History

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
RegControllers(items map[string]Controller) error
RegListens(items map[string]ResListener) error
2023-05-22 15:38:25 +08:00
RegGRpControllers(items map[string]GRpController) error
2023-06-05 15:32:34 +08:00
RegJobControllers(items map[string]JobController) 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-05-22 15:38:25 +08:00
GetGRpController(code string) (GRpController, bool)
2023-06-05 15:32:34 +08:00
GetJobController(code string) (JobController, bool)
2023-04-24 15:02:51 +08:00
}