Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockNamespace ¶
MockNamespace is an autogenerated mock type for the Namespace type
func NewMockNamespace ¶
func NewMockNamespace(t interface { mock.TestingT Cleanup(func()) }) *MockNamespace
NewMockNamespace creates a new instance of MockNamespace. 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 (*MockNamespace) Flush ¶
func (_m *MockNamespace) Flush()
Flush provides a mock function with given fields:
type MockPool ¶
MockPool is an autogenerated mock type for the Pool type
func NewMockPool ¶
NewMockPool creates a new instance of MockPool. 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 (*MockPool) Configure ¶
func (_m *MockPool) Configure() *pb.ExecutionConfiguration
Configure provides a mock function with given fields:
type Namespace ¶
type Namespace interface { Get(key string) *structpb.Struct Set(key string, value *structpb.Struct) error Flush() }
func CreateNamespace ¶
type Pool ¶
type Pool interface { Configure() *worker_pb.ExecutionConfiguration Process(ctx context.Context, timestamp time.Time, symbols []string, portfolio *finance_pb.Portfolio) ([]*finance_pb.Order, error) Close() error }