servicewrapper

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2023 License: Apache-2.0 Imports: 17 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HTTP

func HTTP(port uint16) *http.Server

HTTP creates an HTTP server instance

Types

type Server

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

Server represents an exarpc server wrapper

func New

func New(grpcPort uint16, h *http.Server, unaryInterceptors []grpc.UnaryServerInterceptor, streamInterceptors []grpc.StreamServerInterceptor, keepalivePol keepalive.EnforcementPolicy) (*Server, error)

New creates a new exarpc server wrapper

func (*Server) GRPC

func (s *Server) GRPC() *grpc.Server

GRPC get's the GRPC server object

func (*Server) Serve

func (s *Server) Serve() error

Serve starts GRPC and HTTP serving

Jump to

Keyboard shortcuts

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