server

package
v0.0.0-...-64e9426 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 7, 2019 License: Apache-2.0 Imports: 14 Imported by: 5

Documentation

Index

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 (*AdminServer) Version

type ProxyServer

type ProxyServer struct {
	// contains filtered or unexported fields
}

func NewProxyServer

func NewProxyServer(s *Server) *ProxyServer

func (*ProxyServer) Serve

func (s *ProxyServer) Serve(l net.Listener) error

func (*ProxyServer) Stats

func (s *ProxyServer) Stats() map[string]int32

func (*ProxyServer) Stop

func (s *ProxyServer) Stop()

type Server

type Server struct {
	// contains filtered or unexported fields
}

func NewServer

func NewServer() *Server

func (*Server) Start

func (s *Server) Start()

Directories

Path Synopsis
Package serverpb is a generated protocol buffer package.
Package serverpb is a generated protocol buffer package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL