contracts/service.go
2023-10-30 17:14:47 +08:00

16 lines
504 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
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)
}