Documentation ¶
Index ¶
- Variables
- func ClientInterceptors() ([]grpc.UnaryClientInterceptor, []grpc.StreamClientInterceptor)
- func ServerInterceptors() ([]grpc.UnaryServerInterceptor, []grpc.StreamServerInterceptor)
- type InterceptorRegistration
- func (*InterceptorRegistration) Descriptor() ([]byte, []int)deprecated
- func (x *InterceptorRegistration) GetName() string
- func (*InterceptorRegistration) ProtoMessage()
- func (x *InterceptorRegistration) ProtoReflect() protoreflect.Message
- func (x *InterceptorRegistration) Reset()
- func (x *InterceptorRegistration) String() string
- 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)
func ServerInterceptors ¶
func ServerInterceptors() ([]grpc.UnaryServerInterceptor, []grpc.StreamServerInterceptor)
Types ¶
type InterceptorRegistration ¶
type InterceptorRegistration struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*InterceptorRegistration) Descriptor
deprecated
func (*InterceptorRegistration) Descriptor() ([]byte, []int)
Deprecated: Use InterceptorRegistration.ProtoReflect.Descriptor instead.
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 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.