Documentation ¶
Overview ¶
Package mock is a generated GoMock package.
Index ¶
- type Builder
- func (b Builder) Build(t connector.Type) (connector.Connector, error)
- func (b Builder) Init(c connector.Connector, id string, cfg connector.Config) error
- func (b Builder) NewDestinationMock(id string, d connector.Config) *Destination
- func (b Builder) NewSourceMock(id string, d connector.Config) *Source
- type Destination
- func (m *Destination) Ack(arg0 context.Context) (record.Position, error)
- func (m *Destination) Config() connector.Config
- func (m *Destination) CreatedAt() time.Time
- func (m *Destination) EXPECT() *DestinationMockRecorder
- func (m *Destination) Errors() <-chan error
- func (m *Destination) ID() string
- func (m *Destination) IsRunning() bool
- func (m *Destination) MarshalJSON() ([]byte, error)
- func (m *Destination) Open(arg0 context.Context) error
- func (m *Destination) SetConfig(arg0 connector.Config)
- func (m *Destination) SetState(arg0 connector.DestinationState)
- func (m *Destination) SetUpdatedAt(arg0 time.Time)
- func (m *Destination) State() connector.DestinationState
- func (m *Destination) Teardown(arg0 context.Context) error
- func (m *Destination) Type() connector.Type
- func (m *Destination) UnmarshalJSON(b []byte) error
- func (m *Destination) UpdatedAt() time.Time
- func (m *Destination) Validate(arg0 context.Context, arg1 map[string]string) error
- func (m *Destination) Write(arg0 context.Context, arg1 record.Record) error
- type DestinationMockRecorder
- func (mr *DestinationMockRecorder) Ack(arg0 interface{}) *gomock.Call
- func (mr *DestinationMockRecorder) Config() *gomock.Call
- func (mr *DestinationMockRecorder) CreatedAt() *gomock.Call
- func (mr *DestinationMockRecorder) Errors() *gomock.Call
- func (mr *DestinationMockRecorder) ID() *gomock.Call
- func (mr *DestinationMockRecorder) IsRunning() *gomock.Call
- func (mr *DestinationMockRecorder) Open(arg0 interface{}) *gomock.Call
- func (mr *DestinationMockRecorder) SetConfig(arg0 interface{}) *gomock.Call
- func (mr *DestinationMockRecorder) SetState(arg0 interface{}) *gomock.Call
- func (mr *DestinationMockRecorder) SetUpdatedAt(arg0 interface{}) *gomock.Call
- func (mr *DestinationMockRecorder) State() *gomock.Call
- func (mr *DestinationMockRecorder) Teardown(arg0 interface{}) *gomock.Call
- func (mr *DestinationMockRecorder) Type() *gomock.Call
- func (mr *DestinationMockRecorder) UpdatedAt() *gomock.Call
- func (mr *DestinationMockRecorder) Validate(arg0, arg1 interface{}) *gomock.Call
- func (mr *DestinationMockRecorder) Write(arg0, arg1 interface{}) *gomock.Call
- type Source
- func (m *Source) Ack(arg0 context.Context, arg1 record.Position) error
- func (m *Source) Config() connector.Config
- func (m *Source) CreatedAt() time.Time
- func (m *Source) EXPECT() *SourceMockRecorder
- func (m *Source) Errors() <-chan error
- func (m *Source) ID() string
- func (m *Source) IsRunning() bool
- func (m *Source) MarshalJSON() ([]byte, error)
- func (m *Source) Open(arg0 context.Context) error
- func (m *Source) Read(arg0 context.Context) (record.Record, error)
- func (m *Source) SetConfig(arg0 connector.Config)
- func (m *Source) SetState(arg0 connector.SourceState)
- func (m *Source) SetUpdatedAt(arg0 time.Time)
- func (m *Source) State() connector.SourceState
- func (m *Source) Stop(arg0 context.Context) error
- func (m *Source) Teardown(arg0 context.Context) error
- func (m *Source) Type() connector.Type
- func (m *Source) UnmarshalJSON(b []byte) error
- func (m *Source) UpdatedAt() time.Time
- func (m *Source) Validate(arg0 context.Context, arg1 map[string]string) error
- type SourceMockRecorder
- func (mr *SourceMockRecorder) Ack(arg0, arg1 interface{}) *gomock.Call
- func (mr *SourceMockRecorder) Config() *gomock.Call
- func (mr *SourceMockRecorder) CreatedAt() *gomock.Call
- func (mr *SourceMockRecorder) Errors() *gomock.Call
- func (mr *SourceMockRecorder) ID() *gomock.Call
- func (mr *SourceMockRecorder) IsRunning() *gomock.Call
- func (mr *SourceMockRecorder) Open(arg0 interface{}) *gomock.Call
- func (mr *SourceMockRecorder) Read(arg0 interface{}) *gomock.Call
- func (mr *SourceMockRecorder) SetConfig(arg0 interface{}) *gomock.Call
- func (mr *SourceMockRecorder) SetState(arg0 interface{}) *gomock.Call
- func (mr *SourceMockRecorder) SetUpdatedAt(arg0 interface{}) *gomock.Call
- func (mr *SourceMockRecorder) State() *gomock.Call
- func (mr *SourceMockRecorder) Stop(arg0 interface{}) *gomock.Call
- func (mr *SourceMockRecorder) Teardown(arg0 interface{}) *gomock.Call
- func (mr *SourceMockRecorder) Type() *gomock.Call
- func (mr *SourceMockRecorder) UpdatedAt() *gomock.Call
- func (mr *SourceMockRecorder) Validate(arg0, arg1 interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Builder ¶
type Builder struct { Ctrl *gomock.Controller SetupSource func(source *Source) SetupDestination func(source *Destination) }
Builder is a builder that can build destination and source mocks.
func (Builder) NewDestinationMock ¶
func (b Builder) NewDestinationMock(id string, d connector.Config) *Destination
type Destination ¶
type Destination struct {
// contains filtered or unexported fields
}
Destination is a mock of Destination interface.
func NewDestination ¶
func NewDestination(ctrl *gomock.Controller) *Destination
NewDestination creates a new mock instance.
func (*Destination) Config ¶
func (m *Destination) Config() connector.Config
Config mocks base method.
func (*Destination) CreatedAt ¶ added in v0.2.1
func (m *Destination) CreatedAt() time.Time
CreatedAt mocks base method.
func (*Destination) EXPECT ¶
func (m *Destination) EXPECT() *DestinationMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*Destination) MarshalJSON ¶
func (m *Destination) MarshalJSON() ([]byte, error)
func (*Destination) Open ¶
func (m *Destination) Open(arg0 context.Context) error
Open mocks base method.
func (*Destination) SetConfig ¶
func (m *Destination) SetConfig(arg0 connector.Config)
SetConfig mocks base method.
func (*Destination) SetState ¶
func (m *Destination) SetState(arg0 connector.DestinationState)
SetState mocks base method.
func (*Destination) SetUpdatedAt ¶ added in v0.2.1
func (m *Destination) SetUpdatedAt(arg0 time.Time)
SetUpdatedAt mocks base method.
func (*Destination) State ¶
func (m *Destination) State() connector.DestinationState
State mocks base method.
func (*Destination) Teardown ¶
func (m *Destination) Teardown(arg0 context.Context) error
Teardown mocks base method.
func (*Destination) UnmarshalJSON ¶
func (m *Destination) UnmarshalJSON(b []byte) error
func (*Destination) UpdatedAt ¶ added in v0.2.1
func (m *Destination) UpdatedAt() time.Time
UpdatedAt mocks base method.
type DestinationMockRecorder ¶
type DestinationMockRecorder struct {
// contains filtered or unexported fields
}
DestinationMockRecorder is the mock recorder for Destination.
func (*DestinationMockRecorder) Ack ¶ added in v0.2.0
func (mr *DestinationMockRecorder) Ack(arg0 interface{}) *gomock.Call
Ack indicates an expected call of Ack.
func (*DestinationMockRecorder) Config ¶
func (mr *DestinationMockRecorder) Config() *gomock.Call
Config indicates an expected call of Config.
func (*DestinationMockRecorder) CreatedAt ¶ added in v0.2.1
func (mr *DestinationMockRecorder) CreatedAt() *gomock.Call
CreatedAt indicates an expected call of CreatedAt.
func (*DestinationMockRecorder) Errors ¶
func (mr *DestinationMockRecorder) Errors() *gomock.Call
Errors indicates an expected call of Errors.
func (*DestinationMockRecorder) ID ¶
func (mr *DestinationMockRecorder) ID() *gomock.Call
ID indicates an expected call of ID.
func (*DestinationMockRecorder) IsRunning ¶
func (mr *DestinationMockRecorder) IsRunning() *gomock.Call
IsRunning indicates an expected call of IsRunning.
func (*DestinationMockRecorder) Open ¶
func (mr *DestinationMockRecorder) Open(arg0 interface{}) *gomock.Call
Open indicates an expected call of Open.
func (*DestinationMockRecorder) SetConfig ¶
func (mr *DestinationMockRecorder) SetConfig(arg0 interface{}) *gomock.Call
SetConfig indicates an expected call of SetConfig.
func (*DestinationMockRecorder) SetState ¶
func (mr *DestinationMockRecorder) SetState(arg0 interface{}) *gomock.Call
SetState indicates an expected call of SetState.
func (*DestinationMockRecorder) SetUpdatedAt ¶ added in v0.2.1
func (mr *DestinationMockRecorder) SetUpdatedAt(arg0 interface{}) *gomock.Call
SetUpdatedAt indicates an expected call of SetUpdatedAt.
func (*DestinationMockRecorder) State ¶
func (mr *DestinationMockRecorder) State() *gomock.Call
State indicates an expected call of State.
func (*DestinationMockRecorder) Teardown ¶
func (mr *DestinationMockRecorder) Teardown(arg0 interface{}) *gomock.Call
Teardown indicates an expected call of Teardown.
func (*DestinationMockRecorder) Type ¶
func (mr *DestinationMockRecorder) Type() *gomock.Call
Type indicates an expected call of Type.
func (*DestinationMockRecorder) UpdatedAt ¶ added in v0.2.1
func (mr *DestinationMockRecorder) UpdatedAt() *gomock.Call
UpdatedAt indicates an expected call of UpdatedAt.
func (*DestinationMockRecorder) Validate ¶
func (mr *DestinationMockRecorder) Validate(arg0, arg1 interface{}) *gomock.Call
Validate indicates an expected call of Validate.
func (*DestinationMockRecorder) Write ¶
func (mr *DestinationMockRecorder) Write(arg0, arg1 interface{}) *gomock.Call
Write indicates an expected call of Write.
type Source ¶
type Source struct {
// contains filtered or unexported fields
}
Source is a mock of Source interface.
func NewSource ¶
func NewSource(ctrl *gomock.Controller) *Source
NewSource creates a new mock instance.
func (*Source) EXPECT ¶
func (m *Source) EXPECT() *SourceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*Source) MarshalJSON ¶
func (*Source) SetState ¶
func (m *Source) SetState(arg0 connector.SourceState)
SetState mocks base method.
func (*Source) SetUpdatedAt ¶ added in v0.2.1
SetUpdatedAt mocks base method.
func (*Source) UnmarshalJSON ¶
type SourceMockRecorder ¶
type SourceMockRecorder struct {
// contains filtered or unexported fields
}
SourceMockRecorder is the mock recorder for Source.
func (*SourceMockRecorder) Ack ¶
func (mr *SourceMockRecorder) Ack(arg0, arg1 interface{}) *gomock.Call
Ack indicates an expected call of Ack.
func (*SourceMockRecorder) Config ¶
func (mr *SourceMockRecorder) Config() *gomock.Call
Config indicates an expected call of Config.
func (*SourceMockRecorder) CreatedAt ¶ added in v0.2.1
func (mr *SourceMockRecorder) CreatedAt() *gomock.Call
CreatedAt indicates an expected call of CreatedAt.
func (*SourceMockRecorder) Errors ¶
func (mr *SourceMockRecorder) Errors() *gomock.Call
Errors indicates an expected call of Errors.
func (*SourceMockRecorder) ID ¶
func (mr *SourceMockRecorder) ID() *gomock.Call
ID indicates an expected call of ID.
func (*SourceMockRecorder) IsRunning ¶
func (mr *SourceMockRecorder) IsRunning() *gomock.Call
IsRunning indicates an expected call of IsRunning.
func (*SourceMockRecorder) Open ¶
func (mr *SourceMockRecorder) Open(arg0 interface{}) *gomock.Call
Open indicates an expected call of Open.
func (*SourceMockRecorder) Read ¶
func (mr *SourceMockRecorder) Read(arg0 interface{}) *gomock.Call
Read indicates an expected call of Read.
func (*SourceMockRecorder) SetConfig ¶
func (mr *SourceMockRecorder) SetConfig(arg0 interface{}) *gomock.Call
SetConfig indicates an expected call of SetConfig.
func (*SourceMockRecorder) SetState ¶
func (mr *SourceMockRecorder) SetState(arg0 interface{}) *gomock.Call
SetState indicates an expected call of SetState.
func (*SourceMockRecorder) SetUpdatedAt ¶ added in v0.2.1
func (mr *SourceMockRecorder) SetUpdatedAt(arg0 interface{}) *gomock.Call
SetUpdatedAt indicates an expected call of SetUpdatedAt.
func (*SourceMockRecorder) State ¶
func (mr *SourceMockRecorder) State() *gomock.Call
State indicates an expected call of State.
func (*SourceMockRecorder) Stop ¶ added in v0.2.0
func (mr *SourceMockRecorder) Stop(arg0 interface{}) *gomock.Call
Stop indicates an expected call of Stop.
func (*SourceMockRecorder) Teardown ¶
func (mr *SourceMockRecorder) Teardown(arg0 interface{}) *gomock.Call
Teardown indicates an expected call of Teardown.
func (*SourceMockRecorder) Type ¶
func (mr *SourceMockRecorder) Type() *gomock.Call
Type indicates an expected call of Type.
func (*SourceMockRecorder) UpdatedAt ¶ added in v0.2.1
func (mr *SourceMockRecorder) UpdatedAt() *gomock.Call
UpdatedAt indicates an expected call of UpdatedAt.
func (*SourceMockRecorder) Validate ¶
func (mr *SourceMockRecorder) Validate(arg0, arg1 interface{}) *gomock.Call
Validate indicates an expected call of Validate.