watchserver

package
v0.0.0-...-b0b32c5 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGrpcServer

func NewGrpcServer(cfg *GrpcServerConfig, lg *zap.Logger) error

Types

type GrpcServerConfig

type GrpcServerConfig struct {
	Port                  uint
	MaxConnectionIdle     uint32
	PingInterval          uint32
	Timeout               uint32
	KeepAliveMinTime      int
	MaxConnectionAge      uint32
	MaxConnectionAgeGrace uint32
	WriteBufferSize       int
	ReadBufferSize        int
	MaxRecvMsgSize        int
	MaxSendMsgSize        int
	MaxConcurrentStreams  uint32
}

type WatchRpcServer

type WatchRpcServer struct {
	pb.UnimplementedWatchRPCServer
	// contains filtered or unexported fields
}

func NewWatchRpcServer

func NewWatchRpcServer(lg *zap.Logger, watcherStore *watcherStore) *WatchRpcServer

func (*WatchRpcServer) GetAppServers

func (s *WatchRpcServer) GetAppServers(ctx context.Context, app *pb.App) (*pb.GetAppResponse, error)

func (*WatchRpcServer) Watch

func (s *WatchRpcServer) Watch(stream pb.WatchRPC_WatchServer) error

Jump to

Keyboard shortcuts

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