dapr

package
v3.15.1 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Name = "dapr"
)

Variables

This section is empty.

Functions

func FakeConnection

func FakeConnection() (connection.Connection, func())

func FakeNewConnection

func FakeNewConnection(ctx context.Context, config interface{}) (connection.Connection, error)

Returns a fake client for dapr.

func NewConnection

func NewConnection(_ context.Context, config interface{}) (connection.Connection, error)

Returns a new client for dapr.

Types

type ClientConfig

type ClientConfig struct {
	// Name of the component to be used for pub sub messaging
	Component string `json:"component"`
}

type Dapr

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

Dapr represents driver for interacting with pub sub using dapr.

func (*Dapr) CloseConnection

func (r *Dapr) CloseConnection() error

func (*Dapr) Publish

func (r *Dapr) Publish(_ context.Context, data interface{}, topic string) error

func (*Dapr) UpdateConnection

func (r *Dapr) UpdateConnection(_ context.Context, config interface{}) error

type FakeDapr

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

func (*FakeDapr) CloseConnection

func (r *FakeDapr) CloseConnection() error

func (*FakeDapr) Publish

func (r *FakeDapr) Publish(_ context.Context, _ interface{}, _ string) error

func (*FakeDapr) UpdateConnection

func (r *FakeDapr) UpdateConnection(_ context.Context, config interface{}) error

Jump to

Keyboard shortcuts

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