server

package
v0.0.0-...-9afb84d Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2019 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 APIGroup

type APIGroup interface {
	VersionedAPIs() []*VersionedAPI
}

type Server

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

func NewServer

func NewServer(apiGroups ...APIGroup) *Server

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.

type VersionedAPI

type VersionedAPI struct {
	Group      string
	Version    apiversion.Version
	Registrant func(*grpc.Server)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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