1
0
mirror of https://github.com/amir20/dozzle.git synced 2025-12-26 07:13:41 +01:00

feat: improves healthcheck for swarm nodes (#3422)

This commit is contained in:
Amir Raminfar
2024-11-25 08:10:51 -08:00
committed by GitHub
parent 036bee5621
commit 5b4ca4d766
5 changed files with 35 additions and 12 deletions

View File

@@ -26,6 +26,7 @@ type ClientManager interface {
RetryAndList() ([]ClientService, []error)
Subscribe(ctx context.Context, channel chan<- docker.Host)
Hosts(ctx context.Context) []docker.Host
LocalClients() []docker.Client
}
type MultiHostService struct {
@@ -156,3 +157,7 @@ func (m *MultiHostService) LocalHost() (docker.Host, error) {
func (m *MultiHostService) SubscribeAvailableHosts(ctx context.Context, hosts chan<- docker.Host) {
m.manager.Subscribe(ctx, hosts)
}
func (m *MultiHostService) LocalClients() []docker.Client {
return m.manager.LocalClients()
}