Documentation ¶
Index ¶
- Variables
- func Prepare(ctx context.Context, deps ExtensionDeps) error
- type Deadline
- type DeadlineRegistration
- type Deadline_Configuration
- func (*Deadline_Configuration) Descriptor() ([]byte, []int)deprecated
- func (x *Deadline_Configuration) GetMaximumDeadline() float32
- func (x *Deadline_Configuration) GetMethodName() string
- func (x *Deadline_Configuration) GetServiceName() string
- func (*Deadline_Configuration) ProtoMessage()
- func (x *Deadline_Configuration) ProtoReflect() protoreflect.Message
- func (x *Deadline_Configuration) Reset()
- func (x *Deadline_Configuration) String() string
- type ExtensionDeps
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Package__vbko45 = &core.Package{ PackageName: "namespacelabs.dev/foundation/std/grpc/deadlines", } Provider__vbko45 = core.Provider{ Package: Package__vbko45, Instantiate: makeDeps__vbko45, } Initializers__vbko45 = []*core.Initializer{ { Package: Package__vbko45, Do: func(ctx context.Context, di core.Dependencies) error { return di.Instantiate(ctx, Provider__vbko45, func(ctx context.Context, v interface{}) error { return Prepare(ctx, v.(ExtensionDeps)) }) }, }, } )
View Source
var File_std_grpc_deadlines_provider_proto protoreflect.FileDescriptor
Functions ¶
Types ¶
type Deadline ¶
type Deadline struct { Configuration []*Deadline_Configuration `protobuf:"bytes,1,rep,name=configuration,proto3" json:"configuration,omitempty"` // contains filtered or unexported fields }
func (*Deadline) Descriptor
deprecated
func (*Deadline) GetConfiguration ¶
func (x *Deadline) GetConfiguration() []*Deadline_Configuration
func (*Deadline) ProtoMessage ¶
func (*Deadline) ProtoMessage()
func (*Deadline) ProtoReflect ¶
func (x *Deadline) ProtoReflect() protoreflect.Message
type DeadlineRegistration ¶
type DeadlineRegistration struct {
// contains filtered or unexported fields
}
func ProvideDeadlines ¶
func ProvideDeadlines(ctx context.Context, conf *Deadline, deps ExtensionDeps) (*DeadlineRegistration, error)
func (*DeadlineRegistration) Add ¶
func (dl *DeadlineRegistration) Add(conf *Deadline_Configuration)
type Deadline_Configuration ¶
type Deadline_Configuration struct { ServiceName string `protobuf:"bytes,1,opt,name=service_name,json=serviceName,proto3" json:"service_name,omitempty"` MethodName string `protobuf:"bytes,2,opt,name=method_name,json=methodName,proto3" json:"method_name,omitempty"` MaximumDeadline float32 `protobuf:"fixed32,3,opt,name=maximum_deadline,json=maximumDeadline,proto3" json:"maximum_deadline,omitempty"` // contains filtered or unexported fields }
func (*Deadline_Configuration) Descriptor
deprecated
func (*Deadline_Configuration) Descriptor() ([]byte, []int)
Deprecated: Use Deadline_Configuration.ProtoReflect.Descriptor instead.
func (*Deadline_Configuration) GetMaximumDeadline ¶
func (x *Deadline_Configuration) GetMaximumDeadline() float32
func (*Deadline_Configuration) GetMethodName ¶
func (x *Deadline_Configuration) GetMethodName() string
func (*Deadline_Configuration) GetServiceName ¶
func (x *Deadline_Configuration) GetServiceName() string
func (*Deadline_Configuration) ProtoMessage ¶
func (*Deadline_Configuration) ProtoMessage()
func (*Deadline_Configuration) ProtoReflect ¶
func (x *Deadline_Configuration) ProtoReflect() protoreflect.Message
func (*Deadline_Configuration) Reset ¶
func (x *Deadline_Configuration) Reset()
func (*Deadline_Configuration) String ¶
func (x *Deadline_Configuration) String() string
type ExtensionDeps ¶
type ExtensionDeps struct {
Interceptors interceptors.Registration
}
Dependencies that are instantiated once for the lifetime of the extension.
Click to show internal directories.
Click to hide internal directories.