dapr

package
v3.19.2 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2025 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Name = "dapr"
)

Variables

View Source
var Connections = &Dapr{
	openConnections: make(map[string]Connection),
}
View Source
var FakeConn = &FakeDapr{
	openConnections: map[string]FakeDaprConnection{},
}

Functions

func FakeConnection

func FakeConnection() (driver.Driver, func())

Types

type Connection

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

type Dapr

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

Dapr represents driver to use Dapr.

func (*Dapr) CloseConnection

func (r *Dapr) CloseConnection(connectionName string) error

func (*Dapr) CreateConnection

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

func (*Dapr) Publish

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

func (*Dapr) UpdateConnection

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

type FakeDapr

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

func (*FakeDapr) CloseConnection

func (r *FakeDapr) CloseConnection(connectionName string) error

func (*FakeDapr) CreateConnection

func (r *FakeDapr) CreateConnection(ctx context.Context, connectionName string, config interface{}) error

func (*FakeDapr) Publish

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

func (*FakeDapr) UpdateConnection

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

type FakeDaprConnection

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

Jump to

Keyboard shortcuts

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