mirror of
https://github.com/hanzo-ml/kuberay.git
synced 2026-10-30 19:48:47 +00:00
22 lines
398 B
Go
22 lines
398 B
Go
package utils
|
|
|
|
import (
|
|
"context"
|
|
"fmt"
|
|
)
|
|
|
|
type FakeRayHttpProxyClient struct {
|
|
IsHealthy bool
|
|
}
|
|
|
|
func (fc *FakeRayHttpProxyClient) InitClient() {}
|
|
|
|
func (fc *FakeRayHttpProxyClient) SetHostIp(_, _, _ string, _ int) {}
|
|
|
|
func (fc *FakeRayHttpProxyClient) CheckProxyActorHealth(_ context.Context) error {
|
|
if !fc.IsHealthy {
|
|
return fmt.Errorf("fake proxy actor is not healthy")
|
|
}
|
|
return nil
|
|
}
|