mocks

package
v0.1.24 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StreamParser added in v0.1.13

type StreamParser struct {
	mock.Mock
}

StreamParser is an autogenerated mock type for the StreamParser type

func (*StreamParser) Parse added in v0.1.13

func (_m *StreamParser) Parse(_a0 io.Reader) ([]events.CloudEvent, error)

Parse provides a mock function with given fields: _a0

type Subscription

type Subscription struct {
	mock.Mock
}

Subscription is an autogenerated mock type for the Subscription type

func (*Subscription) Unsubscribe

func (_m *Subscription) Unsubscribe() error

Unsubscribe provides a mock function with given fields:

type Transport added in v0.1.13

type Transport struct {
	mock.Mock
}

Transport is an autogenerated mock type for the Transport type

func (*Transport) Close added in v0.1.13

func (_m *Transport) Close()

Close provides a mock function with given fields:

func (*Transport) Publish added in v0.1.13

func (_m *Transport) Publish(ctx context.Context, event *events.CloudEvent, topic string, organization string) error

Publish provides a mock function with given fields: ctx, event, topic, organization

func (*Transport) Subscribe added in v0.1.13

func (_m *Transport) Subscribe(ctx context.Context, topic string, organization string, handler events.Handler) (events.Subscription, error)

Subscribe provides a mock function with given fields: ctx, topic, organization, handler

type Validator added in v0.1.13

type Validator struct {
	mock.Mock
}

Validator is an autogenerated mock type for the Validator type

func (*Validator) Validate added in v0.1.13

func (_m *Validator) Validate(event *events.CloudEvent) error

Validate provides a mock function with given fields: event

Jump to

Keyboard shortcuts

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