Help us shape the future of Go! Take the 2026 Go Developer Survey

registry

package
v1.16.21 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2026 License: Apache-2.0 Imports: 15 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ComponentRegistry

type ComponentRegistry struct {
	DirectMessaging messagingv1.DirectMessaging
	CompStore       *compstore.ComponentStore
}

type ComponentsCallback

type ComponentsCallback func(components ComponentRegistry) error

type Options

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

Options is the options to configure the registries

func NewOptions

func NewOptions() *Options

func (*Options) WithBindings

func (o *Options) WithBindings(registry *bindings.Registry) *Options

WithBindings adds binding components to the runtime.

func (*Options) WithComponentsCallback

func (o *Options) WithComponentsCallback(componentsCallback ComponentsCallback) *Options

WithComponentsCallback sets the components callback for applications that embed Dapr.

func (*Options) WithConfigurations

func (o *Options) WithConfigurations(registry *configuration.Registry) *Options

WithConfigurations adds configuration store components to the runtime.

func (*Options) WithConversations added in v1.15.0

func (o *Options) WithConversations(registry *conversation.Registry) *Options

WithConversations adds conversation components to the runtime.

func (*Options) WithCryptoProviders

func (o *Options) WithCryptoProviders(registry *crypto.Registry) *Options

WithCryptoProviders adds crypto components to the runtime.

func (*Options) WithHTTPMiddlewares

func (o *Options) WithHTTPMiddlewares(registry *http.Registry) *Options

WithHTTPMiddlewares adds http middleware components to the runtime.

func (*Options) WithLocks

func (o *Options) WithLocks(registry *lock.Registry) *Options

WithLocks adds lock store components to the runtime.

func (*Options) WithNameResolutions

func (o *Options) WithNameResolutions(registry *nameresolution.Registry) *Options

WithNameResolution adds name resolution components to the runtime.

func (*Options) WithPubSubs

func (o *Options) WithPubSubs(registry *pubsub.Registry) *Options

WithPubSubs adds pubsub components to the runtime.

func (*Options) WithReporter added in v1.15.0

func (o *Options) WithReporter(reporter Reporter) *Options

WithReporter sets the resource reporter for the registry.

func (*Options) WithSecretStores

func (o *Options) WithSecretStores(registry *secretstores.Registry) *Options

WithSecretStores adds secret store components to the runtime.

func (*Options) WithStateStores

func (o *Options) WithStateStores(registry *state.Registry) *Options

WithStateStores adds state store components to the runtime.

type Registry

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

Registry is a collection of component registries.

func New

func New(opts *Options) *Registry

func (*Registry) Bindings

func (r *Registry) Bindings() *bindings.Registry

func (*Registry) ComponentsCallback

func (r *Registry) ComponentsCallback() ComponentsCallback

func (*Registry) Configurations

func (r *Registry) Configurations() *configuration.Registry

func (*Registry) Conversations added in v1.15.0

func (r *Registry) Conversations() *conversation.Registry

func (*Registry) Crypto

func (r *Registry) Crypto() *crypto.Registry

func (*Registry) HTTPMiddlewares

func (r *Registry) HTTPMiddlewares() *http.Registry

func (*Registry) Locks

func (r *Registry) Locks() *lock.Registry

func (*Registry) NameResolutions

func (r *Registry) NameResolutions() *nameresolution.Registry

func (*Registry) PubSubs

func (r *Registry) PubSubs() *pubsub.Registry

func (*Registry) Reporter added in v1.15.0

func (r *Registry) Reporter() Reporter

func (*Registry) SecretStores

func (r *Registry) SecretStores() *secretstores.Registry

func (*Registry) StateStores

func (r *Registry) StateStores() *state.Registry

type Reporter added in v1.15.0

Jump to

Keyboard shortcuts

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