grpc

package
v12.2.11 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 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/v12/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