Documentation ¶
Index ¶
- Variables
- func ClientInterceptors() ([]grpc.UnaryClientInterceptor, []grpc.StreamClientInterceptor)
- type InterceptorRegistration
- func (*InterceptorRegistration) Descriptor() ([]byte, []int)deprecated
- func (x *InterceptorRegistration) GetAfter() []string
- func (x *InterceptorRegistration) GetName() string
- func (*InterceptorRegistration) ProtoMessage()
- func (x *InterceptorRegistration) ProtoReflect() protoreflect.Message
- func (x *InterceptorRegistration) Reset()
- func (x *InterceptorRegistration) String() string
- type Registered
- type Registration
Constants ¶
This section is empty.
Variables ¶
View Source
var File_std_go_grpc_interceptors_provider_proto protoreflect.FileDescriptor
View Source
var (
Package__4svfm7 = &core.Package{
PackageName: "namespacelabs.dev/foundation/std/go/grpc/interceptors",
}
)
Functions ¶
func ClientInterceptors ¶
func ClientInterceptors() ([]grpc.UnaryClientInterceptor, []grpc.StreamClientInterceptor)
Types ¶
type InterceptorRegistration ¶
type InterceptorRegistration struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` After []string `protobuf:"bytes,2,rep,name=after,proto3" json:"after,omitempty"` // Run this interceptor after the specified ones. // contains filtered or unexported fields }
func (*InterceptorRegistration) Descriptor
deprecated
func (*InterceptorRegistration) Descriptor() ([]byte, []int)
Deprecated: Use InterceptorRegistration.ProtoReflect.Descriptor instead.
func (*InterceptorRegistration) GetAfter ¶ added in v0.0.245
func (x *InterceptorRegistration) GetAfter() []string
func (*InterceptorRegistration) GetName ¶
func (x *InterceptorRegistration) GetName() string
func (*InterceptorRegistration) ProtoMessage ¶
func (*InterceptorRegistration) ProtoMessage()
func (*InterceptorRegistration) ProtoReflect ¶
func (x *InterceptorRegistration) ProtoReflect() protoreflect.Message
func (*InterceptorRegistration) Reset ¶
func (x *InterceptorRegistration) Reset()
func (*InterceptorRegistration) String ¶
func (x *InterceptorRegistration) String() string
type Registered ¶ added in v0.0.245
type Registered struct { Name string After []string Unary grpc.UnaryServerInterceptor Stream grpc.StreamServerInterceptor }
func ServerInterceptors ¶
func ServerInterceptors() []Registered
type Registration ¶
type Registration struct {
// contains filtered or unexported fields
}
func ProvideInterceptorRegistration ¶
func ProvideInterceptorRegistration(ctx context.Context, r *InterceptorRegistration) (Registration, error)
func (Registration) ForClient ¶
func (r Registration) ForClient(u grpc.UnaryClientInterceptor, s grpc.StreamClientInterceptor)
func (Registration) ForServer ¶
func (r Registration) ForServer(u grpc.UnaryServerInterceptor, s grpc.StreamServerInterceptor)
Click to show internal directories.
Click to hide internal directories.