watchapi

package
v0.0.0-...-676f45f Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2022 License: Apache-2.0 Imports: 8 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

Server is the store API gRPC server.

func NewServer

func NewServer(store *store.MemoryStore) *Server

NewServer creates a store API server.

func (*Server) Start

func (s *Server) Start(ctx context.Context) error

Start starts the watch server.

func (*Server) Stop

func (s *Server) Stop() error

Stop stops the watch server.

func (*Server) Watch

func (s *Server) Watch(request *api.WatchRequest, stream api.Watch_WatchServer) error

Watch starts a stream that returns any changes to objects that match the specified selectors. When the stream begins, it immediately sends an empty message back to the client. It is important to wait for this message before taking any actions that depend on an established stream of changes for consistency.

Jump to

Keyboard shortcuts

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