grpc

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2020 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(grpcServer http.Handler) router.WrapperFunc

New returns a new gRPC Iris router wrapper for a gRPC server. useful when you want to share one port (such as 443 for https) between gRPC and Iris.

The Iris server SHOULD run under HTTP/2 and clients too.

Usage:

import grpcWrapper "github.com/kataras/iris/middleware/grpc"
[...]
app := iris.New()
grpcServer := grpc.NewServer()
app.WrapRouter(grpcWrapper.New(grpcServer))

Types

This section is empty.

Jump to

Keyboard shortcuts

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