Help us shape the future of Go! Take the 2026 Go Developer Survey

gateway

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 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 Server

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

Server contains details for the gateway server.

func NewServer

func NewServer(logger logr.Logger, apiAddr string, grpcAddr string) *Server

NewServer creates a new grpc-gateway server.

func (*Server) Start

func (s *Server) Start(ctx context.Context) error

Start starts the grpc-gateway server using from Endpoint.

func (*Server) Stop

func (s *Server) Stop()

Stop does a graceful shutdown of the server using a timeout of 10 seconds.

Jump to

Keyboard shortcuts

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