interceptors

package
v0.0.298 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 17, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

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

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 (Registration) ForServer

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL