contracts/service.go
2023-05-22 15:38:25 +08:00

12 lines
387 B
Go

package contracts
type Service interface {
LoadGoPlugin(file string) error
RegControllers(items map[string]Controller) error
RegListens(items map[string]ResListener) error
RegGRpControllers(items map[string]GRpController) error
GetResListener(code string) (ResListener, bool)
GetAppController(code string) (Controller, bool)
GetGRpController(code string) (GRpController, bool)
}