wrapper

package
v0.0.0-...-501dce0 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Wrapper

type Wrapper struct {
	Config config.ServerConfig

	Server *server.Server
	// contains filtered or unexported fields
}

Wrapper handles the gRPC server elements and coordinating process signals with a Server

func NewWrapper

func NewWrapper(c config.ServerConfig) (*Wrapper, error)

NewWrapper creates a Wrapper based on a given config

func (*Wrapper) Start

func (w *Wrapper) Start() error

Start sets up the listening routines and exits immediately

func (*Wrapper) Stop

func (w *Wrapper) Stop() error

Stop gracefully stops the underlying gRPC server

Jump to

Keyboard shortcuts

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