Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
Option provides options for configuring the creation of a gRPC server.
func WithInsecure ¶
func WithInsecure() Option
WithInsecure will configure the server to allow insecure connections.
func WithLogger ¶
WithLogger will configure a unary server interceptor which provides logging of each gRPC request, and embeds a logger into the request's context.
func WithMetrics ¶
func WithMetrics() Option
WithMetrics will configure a unary server interceptor which provides server side metrics.
func WithTracer ¶
WithTrace will configure a unary server interceptor which provides tracing of each gRPC request, and embeds trace info into the request's context.
func WithoutReflection ¶
func WithoutReflection() Option
WithoutReflection disables the registration of the reflection service.
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server is a gRPC server which will service gRPC requests.
func New ¶
New creates a gRPC server which has no service registered and has not started to accept requests yet.
func (*Server) Register ¶
Register registers the given slices of services with the server. This must be called before invoking Server.