Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // TODO: figure out what the directory needs as a tenant ID. InstanceIDHeader = grpcutil.HeaderAsertoTenantID )
Functions ¶
Types ¶
type IDMiddleware ¶
type IDMiddleware struct {
// contains filtered or unexported fields
}
func NewIDMiddleware ¶
func NewIDMiddleware(cfg *config.Common) *IDMiddleware
func (*IDMiddleware) AsGRPCOptions ¶
func (m *IDMiddleware) AsGRPCOptions() []grpc.ServerOption
func (*IDMiddleware) Stream ¶
func (m *IDMiddleware) Stream() grpc.StreamServerInterceptor
func (*IDMiddleware) Unary ¶
func (m *IDMiddleware) Unary() grpc.UnaryServerInterceptor
Click to show internal directories.
Click to hide internal directories.