server

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2021 License: Apache-2.0 Imports: 8 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 aggregates a number of API groups and versions, and serves requests for all of them.

func NewServer

func NewServer(apiGroups ...srvtypes.APIGroup) *Server

NewServer creates a new Server for the given API groups.

func (*Server) Start

func (s *Server) Start(listeningChan chan interface{}) []error

Start starts one GRPC server per API version; it is a blocking call, that returns as soon as any of those servers shuts down (at which point it also shuts down all the others). If passed a listeningChan, it will close it when it's started listening.

func (*Server) Stop

func (s *Server) Stop() error

Stop stops all GRPC servers.

Jump to

Keyboard shortcuts

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