Documentation ¶
Index ¶
- type Fake
- func (f *Fake) BulkPublish(ctx context.Context, req *contribPubsub.BulkPublishRequest) (contribPubsub.BulkPublishResponse, error)
- func (f *Fake) Publish(ctx context.Context, req *contribPubsub.PublishRequest) error
- func (f *Fake) WithBulkPublishFn(...) *Fake
- func (f *Fake) WithPublishFn(fn func(context.Context, *contribPubsub.PublishRequest) error) *Fake
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Fake ¶
type Fake struct {
// contains filtered or unexported fields
}
Fake is a fake publisher
func (*Fake) BulkPublish ¶
func (f *Fake) BulkPublish(ctx context.Context, req *contribPubsub.BulkPublishRequest) (contribPubsub.BulkPublishResponse, error)
func (*Fake) Publish ¶
func (f *Fake) Publish(ctx context.Context, req *contribPubsub.PublishRequest) error
func (*Fake) WithBulkPublishFn ¶
func (f *Fake) WithBulkPublishFn(fn func(context.Context, *contribPubsub.BulkPublishRequest) (contribPubsub.BulkPublishResponse, error)) *Fake
func (*Fake) WithPublishFn ¶
func (f *Fake) WithPublishFn(fn func(context.Context, *contribPubsub.PublishRequest) error) *Fake
Click to show internal directories.
Click to hide internal directories.