Documentation
¶
Overview ¶
Package grpc serves a gRPC (or gRPC-Web) server through an Iris route.
Its entry point is New(grpcServer http.Handler), which returns a Handler. The single input is the server itself, so it is a plain argument and there is no Options struct.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
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/v14/middleware/grpc" [...] app := iris.New() grpcServer := grpc.NewServer() app.UseRouter(grpcWrapper.New(grpcServer))
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.