Documentation ¶
Index ¶
- type Interface
- func (_m *Interface) EXPECT() *Interface_Expecter
- func (_m *Interface) GetActor(ctx context.Context, actorName string) (*internalpb.WireActor, error)
- func (_m *Interface) GetPartition(actorName string) int
- func (_m *Interface) NodeHost() string
- func (_m *Interface) NodeRemotingPort() int
- func (_m *Interface) PutActor(ctx context.Context, actor *internalpb.WireActor) error
- func (_m *Interface) Start(ctx context.Context) error
- func (_m *Interface) Stop(ctx context.Context) error
- type Interface_Expecter
- func (_e *Interface_Expecter) GetActor(ctx interface{}, actorName interface{}) *Interface_GetActor_Call
- func (_e *Interface_Expecter) GetPartition(actorName interface{}) *Interface_GetPartition_Call
- func (_e *Interface_Expecter) NodeHost() *Interface_NodeHost_Call
- func (_e *Interface_Expecter) NodeRemotingPort() *Interface_NodeRemotingPort_Call
- func (_e *Interface_Expecter) PutActor(ctx interface{}, actor interface{}) *Interface_PutActor_Call
- func (_e *Interface_Expecter) Start(ctx interface{}) *Interface_Start_Call
- func (_e *Interface_Expecter) Stop(ctx interface{}) *Interface_Stop_Call
- type Interface_GetActor_Call
- func (_c *Interface_GetActor_Call) Return(_a0 *internalpb.WireActor, _a1 error) *Interface_GetActor_Call
- func (_c *Interface_GetActor_Call) Run(run func(ctx context.Context, actorName string)) *Interface_GetActor_Call
- func (_c *Interface_GetActor_Call) RunAndReturn(run func(context.Context, string) (*internalpb.WireActor, error)) *Interface_GetActor_Call
- type Interface_GetPartition_Call
- type Interface_NodeHost_Call
- type Interface_NodeRemotingPort_Call
- type Interface_PutActor_Call
- func (_c *Interface_PutActor_Call) Return(_a0 error) *Interface_PutActor_Call
- func (_c *Interface_PutActor_Call) Run(run func(ctx context.Context, actor *internalpb.WireActor)) *Interface_PutActor_Call
- func (_c *Interface_PutActor_Call) RunAndReturn(run func(context.Context, *internalpb.WireActor) error) *Interface_PutActor_Call
- type Interface_Start_Call
- type Interface_Stop_Call
- type Option
- type OptionFunc
- type OptionFunc_Execute_Call
- type OptionFunc_Expecter
- type Option_Apply_Call
- type Option_Expecter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Interface ¶
Interface is an autogenerated mock type for the Interface type
func NewInterface ¶
NewInterface creates a new instance of Interface. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*Interface) EXPECT ¶
func (_m *Interface) EXPECT() *Interface_Expecter
func (*Interface) GetPartition ¶
GetPartition provides a mock function with given fields: actorName
func (*Interface) NodeRemotingPort ¶
NodeRemotingPort provides a mock function with given fields:
type Interface_Expecter ¶
type Interface_Expecter struct {
// contains filtered or unexported fields
}
func (*Interface_Expecter) GetActor ¶
func (_e *Interface_Expecter) GetActor(ctx interface{}, actorName interface{}) *Interface_GetActor_Call
GetActor is a helper method to define mock.On call
- ctx context.Context
- actorName string
func (*Interface_Expecter) GetPartition ¶
func (_e *Interface_Expecter) GetPartition(actorName interface{}) *Interface_GetPartition_Call
GetPartition is a helper method to define mock.On call
- actorName string
func (*Interface_Expecter) NodeHost ¶
func (_e *Interface_Expecter) NodeHost() *Interface_NodeHost_Call
NodeHost is a helper method to define mock.On call
func (*Interface_Expecter) NodeRemotingPort ¶
func (_e *Interface_Expecter) NodeRemotingPort() *Interface_NodeRemotingPort_Call
NodeRemotingPort is a helper method to define mock.On call
func (*Interface_Expecter) PutActor ¶
func (_e *Interface_Expecter) PutActor(ctx interface{}, actor interface{}) *Interface_PutActor_Call
PutActor is a helper method to define mock.On call
- ctx context.Context
- actor *internalpb.WireActor
func (*Interface_Expecter) Start ¶
func (_e *Interface_Expecter) Start(ctx interface{}) *Interface_Start_Call
Start is a helper method to define mock.On call
- ctx context.Context
func (*Interface_Expecter) Stop ¶
func (_e *Interface_Expecter) Stop(ctx interface{}) *Interface_Stop_Call
Stop is a helper method to define mock.On call
- ctx context.Context
type Interface_GetActor_Call ¶
Interface_GetActor_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetActor'
func (*Interface_GetActor_Call) Return ¶
func (_c *Interface_GetActor_Call) Return(_a0 *internalpb.WireActor, _a1 error) *Interface_GetActor_Call
func (*Interface_GetActor_Call) Run ¶
func (_c *Interface_GetActor_Call) Run(run func(ctx context.Context, actorName string)) *Interface_GetActor_Call
func (*Interface_GetActor_Call) RunAndReturn ¶
func (_c *Interface_GetActor_Call) RunAndReturn(run func(context.Context, string) (*internalpb.WireActor, error)) *Interface_GetActor_Call
type Interface_GetPartition_Call ¶
Interface_GetPartition_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPartition'
func (*Interface_GetPartition_Call) Return ¶
func (_c *Interface_GetPartition_Call) Return(_a0 int) *Interface_GetPartition_Call
func (*Interface_GetPartition_Call) Run ¶
func (_c *Interface_GetPartition_Call) Run(run func(actorName string)) *Interface_GetPartition_Call
func (*Interface_GetPartition_Call) RunAndReturn ¶
func (_c *Interface_GetPartition_Call) RunAndReturn(run func(string) int) *Interface_GetPartition_Call
type Interface_NodeHost_Call ¶
Interface_NodeHost_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NodeHost'
func (*Interface_NodeHost_Call) Return ¶
func (_c *Interface_NodeHost_Call) Return(_a0 string) *Interface_NodeHost_Call
func (*Interface_NodeHost_Call) Run ¶
func (_c *Interface_NodeHost_Call) Run(run func()) *Interface_NodeHost_Call
func (*Interface_NodeHost_Call) RunAndReturn ¶
func (_c *Interface_NodeHost_Call) RunAndReturn(run func() string) *Interface_NodeHost_Call
type Interface_NodeRemotingPort_Call ¶
Interface_NodeRemotingPort_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NodeRemotingPort'
func (*Interface_NodeRemotingPort_Call) Return ¶
func (_c *Interface_NodeRemotingPort_Call) Return(_a0 int) *Interface_NodeRemotingPort_Call
func (*Interface_NodeRemotingPort_Call) Run ¶
func (_c *Interface_NodeRemotingPort_Call) Run(run func()) *Interface_NodeRemotingPort_Call
func (*Interface_NodeRemotingPort_Call) RunAndReturn ¶
func (_c *Interface_NodeRemotingPort_Call) RunAndReturn(run func() int) *Interface_NodeRemotingPort_Call
type Interface_PutActor_Call ¶
Interface_PutActor_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PutActor'
func (*Interface_PutActor_Call) Return ¶
func (_c *Interface_PutActor_Call) Return(_a0 error) *Interface_PutActor_Call
func (*Interface_PutActor_Call) Run ¶
func (_c *Interface_PutActor_Call) Run(run func(ctx context.Context, actor *internalpb.WireActor)) *Interface_PutActor_Call
func (*Interface_PutActor_Call) RunAndReturn ¶
func (_c *Interface_PutActor_Call) RunAndReturn(run func(context.Context, *internalpb.WireActor) error) *Interface_PutActor_Call
type Interface_Start_Call ¶
Interface_Start_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Start'
func (*Interface_Start_Call) Return ¶
func (_c *Interface_Start_Call) Return(_a0 error) *Interface_Start_Call
func (*Interface_Start_Call) Run ¶
func (_c *Interface_Start_Call) Run(run func(ctx context.Context)) *Interface_Start_Call
func (*Interface_Start_Call) RunAndReturn ¶
func (_c *Interface_Start_Call) RunAndReturn(run func(context.Context) error) *Interface_Start_Call
type Interface_Stop_Call ¶
Interface_Stop_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Stop'
func (*Interface_Stop_Call) Return ¶
func (_c *Interface_Stop_Call) Return(_a0 error) *Interface_Stop_Call
func (*Interface_Stop_Call) Run ¶
func (_c *Interface_Stop_Call) Run(run func(ctx context.Context)) *Interface_Stop_Call
func (*Interface_Stop_Call) RunAndReturn ¶
func (_c *Interface_Stop_Call) RunAndReturn(run func(context.Context) error) *Interface_Stop_Call
type Option ¶
Option is an autogenerated mock type for the Option type
func NewOption ¶
NewOption creates a new instance of Option. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*Option) Apply ¶
func (_m *Option) Apply(cl *goaktcluster.Cluster)
Apply provides a mock function with given fields: cl
func (*Option) EXPECT ¶
func (_m *Option) EXPECT() *Option_Expecter
type OptionFunc ¶
OptionFunc is an autogenerated mock type for the OptionFunc type
func NewOptionFunc ¶
func NewOptionFunc(t interface { mock.TestingT Cleanup(func()) }) *OptionFunc
NewOptionFunc creates a new instance of OptionFunc. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*OptionFunc) EXPECT ¶
func (_m *OptionFunc) EXPECT() *OptionFunc_Expecter
func (*OptionFunc) Execute ¶
func (_m *OptionFunc) Execute(cl *goaktcluster.Cluster)
Execute provides a mock function with given fields: cl
type OptionFunc_Execute_Call ¶
OptionFunc_Execute_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Execute'
func (*OptionFunc_Execute_Call) Return ¶
func (_c *OptionFunc_Execute_Call) Return() *OptionFunc_Execute_Call
func (*OptionFunc_Execute_Call) Run ¶
func (_c *OptionFunc_Execute_Call) Run(run func(cl *goaktcluster.Cluster)) *OptionFunc_Execute_Call
func (*OptionFunc_Execute_Call) RunAndReturn ¶
func (_c *OptionFunc_Execute_Call) RunAndReturn(run func(*goaktcluster.Cluster)) *OptionFunc_Execute_Call
type OptionFunc_Expecter ¶
type OptionFunc_Expecter struct {
// contains filtered or unexported fields
}
func (*OptionFunc_Expecter) Execute ¶
func (_e *OptionFunc_Expecter) Execute(cl interface{}) *OptionFunc_Execute_Call
Execute is a helper method to define mock.On call
- cl *goaktcluster.Cluster
type Option_Apply_Call ¶
Option_Apply_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Apply'
func (*Option_Apply_Call) Return ¶
func (_c *Option_Apply_Call) Return() *Option_Apply_Call
func (*Option_Apply_Call) Run ¶
func (_c *Option_Apply_Call) Run(run func(cl *goaktcluster.Cluster)) *Option_Apply_Call
func (*Option_Apply_Call) RunAndReturn ¶
func (_c *Option_Apply_Call) RunAndReturn(run func(*goaktcluster.Cluster)) *Option_Apply_Call
type Option_Expecter ¶
type Option_Expecter struct {
// contains filtered or unexported fields
}
func (*Option_Expecter) Apply ¶
func (_e *Option_Expecter) Apply(cl interface{}) *Option_Apply_Call
Apply is a helper method to define mock.On call
- cl *goaktcluster.Cluster