watchclient

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: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppServer

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

func NewAppServer

func NewAppServer(c *grpclient.GrpcClient) *AppServer

func (*AppServer) GetAppServers

func (s *AppServer) GetAppServers(app *pb.App) (*pb.GetAppResponse, error)

type Watcher

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

func NewWatcher

func NewWatcher(logFilename string, logLevel zapcore.Level, c *grpclient.GrpcClient) *Watcher

func (*Watcher) Close

func (w *Watcher) Close()

Close Watch 客户端程序退出,主动断开所有的watch连接

func (*Watcher) CloseStream

func (w *Watcher) CloseStream(watchID string)

CloseStream 业务主动断开某个watch的连接

func (*Watcher) Watch

func (w *Watcher) Watch(ctx context.Context, watchID string, app *pb.App) chan *pb.WatchResponse

Watch 发起watch请求

Jump to

Keyboard shortcuts

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