Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Authorizer ¶
type GRPCServer ¶
func GRPC ¶
func GRPC(platform Platform, opts ...Option) *GRPCServer
func (*GRPCServer) Gateway ¶
func (server *GRPCServer) Gateway(fn func(context.Context, *runtime.ServeMux, string, []grpc.DialOption) error)
func (*GRPCServer) HTTPGateway ¶
func (server *GRPCServer) HTTPGateway(fn func(r *routing.Server))
func (*GRPCServer) Serve ¶
func (server *GRPCServer) Serve()
type Option ¶
type Option func(cnf *config)
Option of a server.
func WithAuth ¶
func WithAuth(auth Authorizer) Option
func WithCORS ¶
WithCORS configures valid CORS origins for grpc-gateway APIs. Only valid with the GRPC() constructor.
func WithGRPCOptions ¶
func WithGRPCOptions(opts ...grpc.ServerOption) Option
WithGRPCOptions configures GRPC server options. Only valid with the GRPC() constructor.
func WithProfiler ¶
func WithProfiler() Option
WithProfiler enables the Google Cloud Profiler for the application.
func WithRoutingOptions ¶
func WithRoutingOptions(opts ...routing.ServerOption) Option
WithRoutingOptions configures web server options. Only valid with the Web() constructor.
Click to show internal directories.
Click to hide internal directories.