Documentation
¶
Index ¶
- type BulkSubscribeJSON
- type Option
- type PublishBulkRequest
- type PublishBulkRequestEntry
- type PublishRequest
- type RouteEvent
- type RoutesJSON
- type RuleJSON
- type Subscriber
- func (s *Subscriber) AssertEventChanLen(t assert.TestingT, l int)
- func (s *Subscriber) Cleanup(t *testing.T)
- func (s *Subscriber) ExpectPublishError(t *testing.T, ctx context.Context, req PublishRequest)
- func (s *Subscriber) ExpectPublishNoReceive(t *testing.T, ctx context.Context, req PublishRequest)
- func (s *Subscriber) ExpectPublishReceive(t *testing.T, ctx context.Context, req PublishRequest)
- func (s *Subscriber) Port() int
- func (s *Subscriber) Publish(t *testing.T, ctx context.Context, req PublishRequest)
- func (s *Subscriber) PublishBulk(t *testing.T, ctx context.Context, req PublishBulkRequest)
- func (s *Subscriber) Receive(t *testing.T, ctx context.Context) *RouteEvent
- func (s *Subscriber) ReceiveBulk(t *testing.T, ctx context.Context) *pubsub.BulkSubscribeEnvelope
- func (s *Subscriber) Run(t *testing.T, ctx context.Context)
- func (s *Subscriber) SetHealth(health bool)
- type SubscriptionJSON
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BulkSubscribeJSON ¶ added in v1.14.0
type Option ¶
type Option func(*options)
func WithBulkRoutes ¶
func WithHandlerFunc ¶
func WithHandlerFunc(path string, fn http.HandlerFunc) Option
func WithInitialHealth ¶ added in v1.14.0
func WithProgrammaticSubscriptions ¶ added in v1.14.0
func WithProgrammaticSubscriptions(subs ...SubscriptionJSON) Option
func WithRoutes ¶
type PublishBulkRequest ¶ added in v1.13.2
type PublishBulkRequest struct {
Daprd *daprd.Daprd
PubSubName string
Topic string
Entries []PublishBulkRequestEntry
}
type PublishBulkRequestEntry ¶ added in v1.13.2
type PublishRequest ¶
type RouteEvent ¶
type RoutesJSON ¶ added in v1.14.0
type Subscriber ¶
type Subscriber struct {
// contains filtered or unexported fields
}
func (*Subscriber) AssertEventChanLen ¶
func (s *Subscriber) AssertEventChanLen(t assert.TestingT, l int)
func (*Subscriber) Cleanup ¶
func (s *Subscriber) Cleanup(t *testing.T)
func (*Subscriber) ExpectPublishError ¶
func (s *Subscriber) ExpectPublishError(t *testing.T, ctx context.Context, req PublishRequest)
func (*Subscriber) ExpectPublishNoReceive ¶
func (s *Subscriber) ExpectPublishNoReceive(t *testing.T, ctx context.Context, req PublishRequest)
func (*Subscriber) ExpectPublishReceive ¶
func (s *Subscriber) ExpectPublishReceive(t *testing.T, ctx context.Context, req PublishRequest)
func (*Subscriber) Port ¶
func (s *Subscriber) Port() int
func (*Subscriber) Publish ¶
func (s *Subscriber) Publish(t *testing.T, ctx context.Context, req PublishRequest)
func (*Subscriber) PublishBulk ¶ added in v1.13.2
func (s *Subscriber) PublishBulk(t *testing.T, ctx context.Context, req PublishBulkRequest)
func (*Subscriber) Receive ¶
func (s *Subscriber) Receive(t *testing.T, ctx context.Context) *RouteEvent
func (*Subscriber) ReceiveBulk ¶ added in v1.13.2
func (s *Subscriber) ReceiveBulk(t *testing.T, ctx context.Context) *pubsub.BulkSubscribeEnvelope
func (*Subscriber) SetHealth ¶ added in v1.14.0
func (s *Subscriber) SetHealth(health bool)
type SubscriptionJSON ¶ added in v1.14.0
type SubscriptionJSON struct {
PubsubName string `json:"pubsubname"`
Topic string `json:"topic"`
DeadLetterTopic string `json:"deadLetterTopic"`
Metadata map[string]string `json:"metadata,omitempty"`
Route string `json:"route"` // Single route from v1alpha1
Routes RoutesJSON `json:"routes"` // Multiple routes from v2alpha1
BulkSubscribe BulkSubscribeJSON `json:"bulkSubscribe,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.