Documentation ¶
Index ¶
- type AdminServer
- func (s *AdminServer) Health(ctx context.Context, req *pb.HealthRequest) (*pb.HealthResponse, error)
- func (s *AdminServer) Nodes(ctx context.Context, req *pb.NodeRequest) (*pb.NodeResponse, error)
- func (s *AdminServer) Pools(ctx context.Context, req *pb.PoolRequest) (*pb.PoolResponse, error)
- func (s *AdminServer) Serve(l net.Listener)
- func (s *AdminServer) Shutdown(req *pb.ShutdownRequest, stream pb.Admin_ShutdownServer) error
- func (s *AdminServer) Statistics(context.Context, *pb.StatisticsRequest) (*pb.StatisticsResponse, error)
- func (s *AdminServer) Version(context.Context, *pb.VersionRequest) (*pb.VersionResponse, error)
- type ProxyServer
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdminServer ¶
type AdminServer struct {
// contains filtered or unexported fields
}
func NewAdminServer ¶
func NewAdminServer(s *Server) *AdminServer
func (*AdminServer) Health ¶
func (s *AdminServer) Health(ctx context.Context, req *pb.HealthRequest) (*pb.HealthResponse, error)
func (*AdminServer) Nodes ¶
func (s *AdminServer) Nodes(ctx context.Context, req *pb.NodeRequest) (*pb.NodeResponse, error)
func (*AdminServer) Pools ¶
func (s *AdminServer) Pools(ctx context.Context, req *pb.PoolRequest) (*pb.PoolResponse, error)
func (*AdminServer) Serve ¶
func (s *AdminServer) Serve(l net.Listener)
func (*AdminServer) Shutdown ¶
func (s *AdminServer) Shutdown(req *pb.ShutdownRequest, stream pb.Admin_ShutdownServer) error
func (*AdminServer) Statistics ¶
func (s *AdminServer) Statistics(context.Context, *pb.StatisticsRequest) (*pb.StatisticsResponse, error)
func (*AdminServer) Version ¶
func (s *AdminServer) Version(context.Context, *pb.VersionRequest) (*pb.VersionResponse, error)
type ProxyServer ¶
type ProxyServer struct {
// contains filtered or unexported fields
}
func NewProxyServer ¶
func NewProxyServer(s *Server) *ProxyServer
func (*ProxyServer) Stats ¶
func (s *ProxyServer) Stats() map[string]int32
func (*ProxyServer) Stop ¶
func (s *ProxyServer) Stop()
Click to show internal directories.
Click to hide internal directories.