discovery

package
v0.0.0-...-ee9fa08 Latest Latest
Warning

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

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

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 an implementation of api.DiscoveryServiceServer.

func NewServer

func NewServer(l net.Listener, reg registry.Cache, ctl *config.Controller, opts ...ServerOption) *Server

NewServer creates a discovery server.

func (*Server) Serve

func (s *Server) Serve() error

func (*Server) Stop

func (s *Server) Stop()

Stop stops the server.

func (*Server) StreamDependencies

func (s *Server) StreamDependencies(req *api.DependencyDiscoveryRequest, stream api.DiscoveryService_StreamDependenciesServer) (err error)

StreamDependencies returns all dependencies of the given instance.

func (*Server) StreamSvcConfigs

func (s *Server) StreamSvcConfigs(stream api.DiscoveryService_StreamSvcConfigsServer) (err error)

StreamSvcConfigs receives a stream of service subscription/unsubscription, and responds with a stream of the updated service configs.

func (*Server) StreamSvcEndpoints

func (s *Server) StreamSvcEndpoints(stream api.DiscoveryService_StreamSvcEndpointsServer) (err error)

StreamSvcEndpoints receives a stream of service subscription/unsubscription, and responds with a stream of the changed service endpoints.

type ServerOption

type ServerOption func(o *serverOptions)

Jump to

Keyboard shortcuts

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