Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EmptyGRPCGatewayOption ¶
type EmptyGRPCGatewayOption struct{}
EmptyGRPCGatewayOption does not alter the configuration. It can be embedded in another structure to build custom options.
This API is EXPERIMENTAL.
type GRPCGateway ¶
func NewGRPCGateWay ¶
func NewGRPCGateWay(addr string, options ...GRPCGatewayOption) *GRPCGateway
func (*GRPCGateway) ApplyOptions ¶
func (o *GRPCGateway) ApplyOptions(options ...GRPCGatewayOption) *GRPCGateway
func (*GRPCGateway) ListenAndServe ¶
func (g *GRPCGateway) ListenAndServe() error
func (*GRPCGateway) RegisterGRPCHandler ¶
func (g *GRPCGateway) RegisterGRPCHandler(h func(srv *grpc.Server))
func (*GRPCGateway) RegisterHTTPHandler ¶
type GRPCGatewayOption ¶
type GRPCGatewayOption interface {
// contains filtered or unexported methods
}
A GRPCGatewayOption sets options.
func WithClientDialOptions ¶
func WithClientDialOptions(opts []grpc.DialOption) GRPCGatewayOption
func WithServerOptions ¶
func WithServerOptions(opts []grpc.ServerOption) GRPCGatewayOption
type GRPCGatewayOptionFunc ¶
type GRPCGatewayOptionFunc func(*GRPCGateway)
GRPCGatewayOptionFunc wraps a function that modifies Client into an implementation of the GRPCGatewayOption interface.
type GRPCHandler ¶
type GRPCHandlerFunc ¶
func (GRPCHandlerFunc) Register ¶
func (h GRPCHandlerFunc) Register(srv *grpc.Server)
type HTTPHandler ¶
type HTTPHandlerFunc ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.