Documentation
¶
Index ¶
- Constants
- Variables
- func FakeConnection() (driver.Driver, func())
- type Connection
- type Dapr
- func (r *Dapr) CloseConnection(connectionName string) error
- func (r *Dapr) CreateConnection(_ context.Context, connectionName string, config interface{}) error
- func (r *Dapr) Publish(_ context.Context, connectionName string, data interface{}, topic string) error
- func (r *Dapr) UpdateConnection(_ context.Context, connectionName string, config interface{}) error
- type FakeDapr
- func (r *FakeDapr) CloseConnection(connectionName string) error
- func (r *FakeDapr) CreateConnection(ctx context.Context, connectionName string, config interface{}) error
- func (r *FakeDapr) Publish(_ context.Context, _ string, _ interface{}, _ string) error
- func (r *FakeDapr) UpdateConnection(_ context.Context, connectionName string, config interface{}) error
- type FakeDaprConnection
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 ¶
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 (*Dapr) CreateConnection ¶
type FakeDapr ¶
type FakeDapr struct {
// contains filtered or unexported fields
}
func (*FakeDapr) CloseConnection ¶
func (*FakeDapr) CreateConnection ¶
type FakeDaprConnection ¶
type FakeDaprConnection struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.