platform: Add group interface

This commit is contained in:
世界
2023-07-02 16:45:30 +08:00
parent 5f144b6c4e
commit 2c31aec4d7
25 changed files with 576 additions and 95 deletions

View File

@@ -31,6 +31,7 @@ type Tracker interface {
}
type OutboundGroup interface {
Outbound
Now() string
All() []string
}

View File

@@ -4,12 +4,6 @@ type PreStarter interface {
PreStart() error
}
func PreStart(starter any) error {
if preService, ok := starter.(PreStarter); ok {
err := preService.PreStart()
if err != nil {
return err
}
}
return nil
type PostStarter interface {
PostStart() error
}