Documentation ¶
Index ¶
- func NewStreamClientRequestIDInterceptor() grpc.StreamClientInterceptor
- func NewStreamServerRequestIDInterceptor() grpc.StreamServerInterceptor
- func NewUnaryClientRequestIDInterceptor() grpc.UnaryClientInterceptor
- func NewUnaryServerRequestIDInterceptor() grpc.UnaryServerInterceptor
- type Option
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewStreamClientRequestIDInterceptor ¶ added in v0.36.0
func NewStreamClientRequestIDInterceptor() grpc.StreamClientInterceptor
func NewStreamServerRequestIDInterceptor ¶ added in v0.36.0
func NewStreamServerRequestIDInterceptor() grpc.StreamServerInterceptor
func NewUnaryClientRequestIDInterceptor ¶ added in v0.36.0
func NewUnaryClientRequestIDInterceptor() grpc.UnaryClientInterceptor
func NewUnaryServerRequestIDInterceptor ¶ added in v0.36.0
func NewUnaryServerRequestIDInterceptor() grpc.UnaryServerInterceptor
Types ¶
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
Option overrides behavior of Server.
func WithGRPCServerOption ¶ added in v0.17.0
func WithGRPCServerOption(opt grpc.ServerOption) Option
WithGRPCServerOption allows adding raw grpc.ServerOption's to the instantiated gRPC server.
func WithGracePeriod ¶
WithGracePeriod sets shutdown grace period for gRPC server. Server waits connections to drain for specified amount of time.
func WithListen ¶
WithListen sets address to listen for gRPC server. Server accepts incoming connections on given address.
func WithMaxConnAge ¶ added in v0.23.0
WithMaxConnAge sets the maximum connection age for gRPC server.
func WithNetwork ¶ added in v0.13.0
WithNetwork sets network to listen for gRPC server e.g tcp, udp or unix.
func WithServer ¶ added in v0.16.0
func WithServer(f registerServerFunc) Option
WithServer calls the passed gRPC registration functions on the created grpc.Server.
func WithTLSConfig ¶
WithTLSConfig sets TLS configuration for gRPC server.
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
A Server defines parameters to serve RPC requests, a wrapper around grpc.Server.
func New ¶
func New(logger log.Logger, reg prometheus.Registerer, tracer opentracing.Tracer, logOpts []grpc_logging.Option, logFilterMethods []string, comp component.Component, probe *prober.GRPCProbe, opts ...Option) *Server
New creates a new gRPC Store API. If rulesSrv is not nil, it also registers Rules API to the returned server.
func (*Server) ListenAndServe ¶
ListenAndServe listens on the TCP network address and handles requests on incoming connections.