mirror of
https://github.com/bolucat/Archive.git
synced 2025-10-05 08:08:03 +08:00
15 lines
242 B
Go
15 lines
242 B
Go
package glue
|
|
|
|
import (
|
|
"context"
|
|
)
|
|
|
|
type Reloader interface {
|
|
Reload(force bool) error
|
|
}
|
|
|
|
type HealthChecker interface {
|
|
// get relay by ID and check the connection health
|
|
HealthCheck(ctx context.Context, RelayID string) (int64, error)
|
|
}
|