grpc

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2021 License: Apache-2.0 Imports: 11 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 contains details for the grpc server.

func NewServer

func NewServer(logger logr.Logger, catalog *catalog.Catalog, grpcAddr string) *Server

NewServer returns a new grpc server.

func (*Server) Start

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

Start starts the grpc server on the given address and saves the servers state for later termination.

func (*Server) Stop

func (s *Server) Stop()

Stop does a graceful shutdown of the grpc server.

Jump to

Keyboard shortcuts

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