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.
Click to show internal directories.
Click to hide internal directories.