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.
Click to show internal directories.
Click to hide internal directories.