server

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2020 License: Apache-2.0 Imports: 14 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FallbackServer

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

FallbackServer is a grpc-fallback HTTP server.

func NewServer

func NewServer(port, backend string) *FallbackServer

NewServer creates a new grpc-fallback HTTP server on the given port that proxies to the given gRPC server backend.

func (*FallbackServer) Shutdown

func (f *FallbackServer) Shutdown()

Shutdown turns down the grpc-fallback HTTP server.

func (*FallbackServer) Start

func (f *FallbackServer) Start()

Start starts the grpc-fallback HTTP server listening on its port, and opens a connection to the gRPC backend.

func (*FallbackServer) StartBackground

func (f *FallbackServer) StartBackground()

StartBackground runs Start() in a goroutine.

Jump to

Keyboard shortcuts

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