deadlines

package
v0.0.357 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

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

func Prepare

func Prepare(ctx context.Context, deps ExtensionDeps) error

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) Descriptor() ([]byte, []int)

Deprecated: Use Deadline.ProtoReflect.Descriptor instead.

func (*Deadline) GetConfiguration

func (x *Deadline) GetConfiguration() []*Deadline_Configuration

func (*Deadline) ProtoMessage

func (*Deadline) ProtoMessage()

func (*Deadline) ProtoReflect

func (x *Deadline) ProtoReflect() protoreflect.Message

func (*Deadline) Reset

func (x *Deadline) Reset()

func (*Deadline) String

func (x *Deadline) String() string

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

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.

Jump to

Keyboard shortcuts

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