gateway

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGatewayServer

func NewGatewayServer(ctx context.Context, conn *grpc.ClientConn, opts Options) (*http.Server, error)

func Run

func Run(ctx context.Context, opts Options) error

Run starts a HTTP server and blocks while running if successful. The server will be shutdown when "ctx" is canceled.

Types

type Endpoint

type Endpoint struct {
	Network, Addr string
}

type Options

type Options struct {
	Addr       string   // gateway address to listen
	GRPCServer Endpoint // gRPC service endpoint

}

Jump to

Keyboard shortcuts

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