Documentation
¶
Index ¶
- type Option
- type PublishRequest
- type RouteEvent
- type Subscriber
- func (s *Subscriber) AssertEventChanLen(t *testing.T, 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) Receive(t *testing.T, ctx context.Context) *RouteEvent
- func (s *Subscriber) Run(t *testing.T, ctx context.Context)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(*options)
func WithBulkRoutes ¶
func WithHandlerFunc ¶
func WithHandlerFunc(path string, fn http.HandlerFunc) Option
func WithRoutes ¶
type PublishRequest ¶
type RouteEvent ¶
type Subscriber ¶
type Subscriber struct {
// contains filtered or unexported fields
}
func (*Subscriber) AssertEventChanLen ¶
func (s *Subscriber) AssertEventChanLen(t *testing.T, 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) Receive ¶
func (s *Subscriber) Receive(t *testing.T, ctx context.Context) *RouteEvent
Click to show internal directories.
Click to hide internal directories.