processor

package
v1.13.3 Latest Latest
Warning

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

Go to latest
Published: May 20, 2024 License: Apache-2.0 Imports: 41 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BindingManager

type BindingManager interface {
	SendToOutputBinding(context.Context, string, *bindings.InvokeRequest) (*bindings.InvokeResponse, error)

	StartReadingFromBindings(context.Context) error
	StopReadingFromBindings(forever bool)
	// contains filtered or unexported methods
}

type Options

type Options struct {
	// ID is the ID of this Dapr instance.
	ID string

	// Namespace is the namespace of this Dapr instance.
	Namespace string

	// Mode is the mode of this Dapr instance.
	Mode modes.DaprMode

	// PodName is the name of the pod.
	PodName string

	// ActorsEnabled indicates whether placement service is enabled in this Dapr cluster.
	ActorsEnabled bool

	// IsHTTP indicates whether the connection to the application is using the
	// HTTP protocol.
	IsHTTP bool

	// Registry is the all-component registry.
	Registry *registry.Registry

	// ComponentStore is the component store.
	ComponentStore *compstore.ComponentStore

	// Metadata is the metadata helper.
	Meta *meta.Meta

	// GlobalConfig is the global configuration.
	GlobalConfig *config.Configuration

	Standalone configmodes.StandaloneConfig

	Resiliency resiliency.Provider

	GRPC *grpcmanager.Manager

	Channels *channels.Channels

	OperatorClient operatorv1.OperatorClient

	MiddlewareHTTP *http.HTTP
}

type Processor

type Processor struct {
	// contains filtered or unexported fields
}

Processor manages the lifecycle of all components categories.

func New

func New(opts Options) *Processor

func (*Processor) AddPendingComponent added in v1.13.0

func (p *Processor) AddPendingComponent(ctx context.Context, comp componentsapi.Component) bool

func (*Processor) AddPendingEndpoint added in v1.13.0

func (p *Processor) AddPendingEndpoint(ctx context.Context, endpoint httpendpointsapi.HTTPEndpoint) bool

func (*Processor) Binding

func (p *Processor) Binding() BindingManager

func (*Processor) Close

func (p *Processor) Close(comp componentsapi.Component) error

Close closes the component.

func (*Processor) Init

Init initializes a component of a category.

func (*Processor) Process added in v1.13.0

func (p *Processor) Process(ctx context.Context) error

func (*Processor) PubSub

func (p *Processor) PubSub() PubsubManager

func (*Processor) Secret added in v1.13.0

func (p *Processor) Secret() SecretManager

func (*Processor) State

func (p *Processor) State() StateManager

func (*Processor) WaitForEmptyComponentQueue added in v1.13.0

func (p *Processor) WaitForEmptyComponentQueue()

WaitForEmptyComponentQueue waits for the component queue to be empty.

func (*Processor) WorkflowBackend added in v1.13.0

func (p *Processor) WorkflowBackend() WorkflowBackendManager

type PubsubManager

type PubsubManager interface {
	Publish(context.Context, *contribpubsub.PublishRequest) error
	BulkPublish(context.Context, *contribpubsub.BulkPublishRequest) (contribpubsub.BulkPublishResponse, error)

	StartSubscriptions(context.Context) error
	StopSubscriptions(forever bool)
	Outbox() outbox.Outbox
	// contains filtered or unexported methods
}

type SecretManager added in v1.13.0

type SecretManager interface {
	ProcessResource(context.Context, meta.Resource) (bool, string)
	// contains filtered or unexported methods
}

type StateManager

type StateManager interface {
	ActorStateStoreName() (string, bool)
	// contains filtered or unexported methods
}

type WorkflowBackendManager added in v1.13.0

type WorkflowBackendManager interface {
	Backend() (backend.Backend, bool)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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