Documentation
¶
Index ¶
Constants ¶
View Source
const RequestTimeout = 30 * time.Second
Variables ¶
View Source
var (
ErrTimedOut = errors.New("timed out talking to backend")
)
Functions ¶
Types ¶
type Availability ¶
type Backend ¶
type Backend struct {
Id string
Addr string
I *I
Codesearch pb.CodeSearchClient
GrpcClient *grpc.ClientConn
Up *Availability
BackupBackend *Backend
IsBackup bool
}
func NewBackend ¶
NewBackend can now be recursively called since BackupBackend can be nested...
type BackendStatus ¶
type BackendStatus struct {
GrpcStatus connectivity.State `json:"grpc_status"`
IndexAge string `json:"index_age"`
IndexName string `json:"index_name"`
Up *Availability `json:"up"`
BuGrpcStatus connectivity.State `json:"bu_grpc_status"`
BuIndexAge string `json:"bu_index_age"`
BuIndexName string `json:"bu_index_name"`
BuUp *Availability `json:"bu_up"`
}
Click to show internal directories.
Click to hide internal directories.