mirror of
https://github.com/hanzo-ml/kuberay.git
synced 2026-10-30 19:48:47 +00:00
Signed-off-by: You-Cheng Lin (Owen) <[email protected]>
18 lines
276 B
Go
18 lines
276 B
Go
package utils
|
|
|
|
import (
|
|
"context"
|
|
"fmt"
|
|
)
|
|
|
|
type FakeRayHttpProxyClient struct {
|
|
IsHealthy bool
|
|
}
|
|
|
|
func (fc *FakeRayHttpProxyClient) CheckProxyActorHealth(_ context.Context) error {
|
|
if !fc.IsHealthy {
|
|
return fmt.Errorf("fake proxy actor is not healthy")
|
|
}
|
|
return nil
|
|
}
|