mirror of
https://github.com/netbirdio/netbird.git
synced 2026-04-16 15:26:40 +00:00
16 lines
456 B
Go
16 lines
456 B
Go
package proxy
|
|
|
|
import (
|
|
"context"
|
|
"time"
|
|
)
|
|
|
|
// Manager defines the interface for proxy operations
|
|
type Manager interface {
|
|
Connect(ctx context.Context, proxyID, clusterAddress, ipAddress string) error
|
|
Disconnect(ctx context.Context, proxyID string) error
|
|
Heartbeat(ctx context.Context, proxyID string) error
|
|
GetActiveClusterAddresses(ctx context.Context) ([]string, error)
|
|
CleanupStale(ctx context.Context, inactivityDuration time.Duration) error
|
|
}
|