dapr

package
v3.14.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2023 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(ctx 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(ctx context.Context, data interface{}, topic 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