tickerbeats

package
v0.18.3 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

package tickerbeats is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockTickerBeatsService added in v0.17.0

type MockTickerBeatsService struct {
	// contains filtered or unexported fields
}

MockTickerBeatsService is a mock of TickerBeatsService interface.

func NewMockTickerBeatsService added in v0.17.0

func NewMockTickerBeatsService(ctrl *gomock.Controller) *MockTickerBeatsService

NewMockTickerBeatsService creates a new mock instance.

func (*MockTickerBeatsService) BeatsSent added in v0.17.0

func (m *MockTickerBeatsService) BeatsSent(beats []*TickerBeats) error

BeatsSent mocks base method.

func (*MockTickerBeatsService) ConfirmByExternalID added in v0.17.0

func (m *MockTickerBeatsService) ConfirmByExternalID(destinationAccountID, externalid, tickerBeatsID, positionID int64, status signal.SignalStatusEnum) error

ConfirmByExternalID mocks base method.

func (*MockTickerBeatsService) EXPECT added in v0.17.0

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockTickerBeatsService) GetTickerBeats added in v0.17.0

func (m *MockTickerBeatsService) GetTickerBeats(accountID int64, from time.Time, sType tickerbeats_v1.SignalType, lastOrderID int64) ([]*TickerBeats, error)

GetTickerBeats mocks base method.

type MockTickerBeatsServiceMockRecorder added in v0.17.0

type MockTickerBeatsServiceMockRecorder struct {
	// contains filtered or unexported fields
}

MockTickerBeatsServiceMockRecorder is the mock recorder for MockTickerBeatsService.

func (*MockTickerBeatsServiceMockRecorder) BeatsSent added in v0.17.0

func (mr *MockTickerBeatsServiceMockRecorder) BeatsSent(beats interface{}) *gomock.Call

BeatsSent indicates an expected call of BeatsSent.

func (*MockTickerBeatsServiceMockRecorder) ConfirmByExternalID added in v0.17.0

func (mr *MockTickerBeatsServiceMockRecorder) ConfirmByExternalID(destinationAccountID, externalid, tickerBeatsID, positionID, status interface{}) *gomock.Call

ConfirmByExternalID indicates an expected call of ConfirmByExternalID.

func (*MockTickerBeatsServiceMockRecorder) GetTickerBeats added in v0.17.0

func (mr *MockTickerBeatsServiceMockRecorder) GetTickerBeats(accountID, from, sType, lastOrderID interface{}) *gomock.Call

GetTickerBeats indicates an expected call of GetTickerBeats.

type TickerBeats

type TickerBeats struct {
	Signal         *signal.Signal         `json:"signal"`
	ExpirationTime int32                  `json:"expiration_time"`
	GroupID        string                 `json:"group_id"`
	Positions      []*pp.Position         `json:"positions"`
	Orders         []*oo.Order            `json:"orders"`
	TradeRequests  []*tmodel.TradeRequest `json:"trade_requests"`
	Valid          bool                   `json:"valid"`
}

type TickerBeatsService

type TickerBeatsService interface {
	BeatsSent(beats []*TickerBeats) error
	ConfirmByExternalID(destinationAccountID, externalid, tickerBeatsID, positionID int64, status signal.SignalStatusEnum) error
	GetTickerBeats(accountID int64, from time.Time, sType v1.SignalType, lastOrderID int64) ([]*TickerBeats, error)
}

TickerBeatsService is a CRUD to the database

func NewTickerBeatsService

func NewTickerBeatsService(ctx context.Context, signal sSvc.SignalService, rules tr.TradeRulesService) TickerBeatsService

NewTickerBeatsService creates a service to interact with PostgreSQL

Jump to

Keyboard shortcuts

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