servers

package
v0.0.0-...-14d8bfa Latest Latest
Warning

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

Go to latest
Published: May 3, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

README

servers

-- import "github.com/autom8ter/engine/servers"

Usage

func NewGrpcServer
func NewGrpcServer(c *config.Config) driver.Server

NewGrpcServer creates a new GrpcServer instance.

type GrpcServer
type GrpcServer struct {
}

GrpcServer wraps grpc.Server setup process.

func (*GrpcServer) Serve
func (s *GrpcServer) Serve(lis net.Listener) error

Serve implements Server.Serve for starting the grpc server

func (*GrpcServer) Shutdown
func (s *GrpcServer) Shutdown()

Shutdown implements Server.Shutdown for gracefully shutting down the grpc server

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGrpcServer

func NewGrpcServer(c *config.Config) driver.Server

NewGrpcServer creates a new GrpcServer instance.

Types

type GrpcServer

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

GrpcServer wraps grpc.Server setup process.

func (*GrpcServer) Serve

func (s *GrpcServer) Serve(lis net.Listener) error

Serve implements Server.Serve for starting the grpc server

func (*GrpcServer) Shutdown

func (s *GrpcServer) Shutdown()

Shutdown implements Server.Shutdown for gracefully shutting down the grpc server

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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