grpcgw

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: May 29, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package grpcgw provides grpc-gateway server.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServer

func NewServer(cfg Config) (*http.ServeMux, error)

NewServer creates and returns HTTP handler with grpc-gateway service on given cfg.Pattern.

Types

type Config

type Config struct {
	CtxShutdown      Ctx
	Endpoint         netx.Addr
	CA               *x509.CertPool
	GRPCGWPattern    string // Pattern for http.ServeMux to serve grpc-gateway.
	OpenAPIPattern   string // Pattern for http.ServeMux to serve swagger.json.
	SwaggerUIPattern string // Pattern for http.ServeMux to serve Swagger UI.
}

Config contains configuration for grpc-gateway server.

type Ctx

type Ctx = context.Context

Ctx is a synonym for convenience.

Jump to

Keyboard shortcuts

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