Documentation
¶
Index ¶
Constants ¶
View Source
const AddressSchemaTLS = "tls://"
View Source
const DefaultRpcTimeout = 30 * time.Second
View Source
const (
ReadinessProbeService = "oxia-readiness"
)
Variables ¶
View Source
var Default = &defaultProvider{}
Functions ¶
Types ¶
type ClientPool ¶
type ClientPool interface {
io.Closer
GetClientRpc(target string) (proto.OxiaClientClient, error)
GetHealthRpc(target string) (grpc_health_v1.HealthClient, io.Closer, error)
GetCoordinationRpc(target string) (proto.OxiaCoordinationClient, error)
GetReplicationRpc(target string) (proto.OxiaLogReplicationClient, error)
// Clear all the pooled client instances for the given target
Clear(target string)
}
func NewClientPool ¶
func NewClientPool(tlsConf *tls.Config, authentication auth.Authentication) ClientPool
type GrpcProvider ¶
type GrpcProvider interface {
StartGrpcServer(name, bindAddress string, registerFunc func(grpc.ServiceRegistrar), tlsConf *tls.Config, options *auth.Options) (GrpcServer, error)
}
type GrpcServer ¶
Click to show internal directories.
Click to hide internal directories.