Documentation ¶
Overview ¶
Package filesystem is a generated GoMock package.
Package filesystem is a generated GoMock package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var CSVSet = wire.NewSet( NewCSVReader, NewCSVWriter, wire.Bind(new(CSVReaderInterface), new(CSVReader)), wire.Bind(new(CSVWriterInterface), new(CSVWriter)), )
var JSONWriterSet = wire.NewSet( NewJSONWriter, wire.Bind(new(writer.Interface), new(*JSONWriter)), )
Functions ¶
This section is empty.
Types ¶
type CSVEntry ¶
type CSVEntry struct { ID string Status string Timestamp internal.DateTime Type string AssetType string `csv:"Asset type"` Name string Instrument string Rate float64 Yield float64 `csv:"Realized yield"` Profit float64 `csv:"Realized PnL"` Commission float64 Debit float64 Credit float64 TaxAmount float64 `csv:"Tax amount"` InvestedAmount float64 `csv:"-"` Documents []string }
type CSVReader ¶
type CSVReader struct {
// contains filtered or unexported fields
}
func NewCSVReader ¶
type CSVReaderInterface ¶ added in v0.10.0
type CSVWriter ¶
type CSVWriter struct {
// contains filtered or unexported fields
}
func NewCSVWriter ¶
type CSVWriterInterface ¶ added in v0.10.0
type JSONWriter ¶
type JSONWriter struct {
// contains filtered or unexported fields
}
func NewJSONWriter ¶
func NewJSONWriter(logger *log.Logger) *JSONWriter
func (*JSONWriter) GenerateFilename ¶ added in v0.4.0
type MockCSVReaderInterface ¶ added in v0.10.0
type MockCSVReaderInterface struct {
// contains filtered or unexported fields
}
MockCSVReaderInterface is a mock of CSVReaderInterface interface.
func NewMockCSVReaderInterface ¶ added in v0.10.0
func NewMockCSVReaderInterface(ctrl *gomock.Controller) *MockCSVReaderInterface
NewMockCSVReaderInterface creates a new mock instance.
func (*MockCSVReaderInterface) EXPECT ¶ added in v0.10.0
func (m *MockCSVReaderInterface) EXPECT() *MockCSVReaderInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockCSVReaderInterfaceMockRecorder ¶ added in v0.10.0
type MockCSVReaderInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockCSVReaderInterfaceMockRecorder is the mock recorder for MockCSVReaderInterface.
type MockCSVWriterInterface ¶ added in v0.10.0
type MockCSVWriterInterface struct {
// contains filtered or unexported fields
}
MockCSVWriterInterface is a mock of CSVWriterInterface interface.
func NewMockCSVWriterInterface ¶ added in v0.10.0
func NewMockCSVWriterInterface(ctrl *gomock.Controller) *MockCSVWriterInterface
NewMockCSVWriterInterface creates a new mock instance.
func (*MockCSVWriterInterface) EXPECT ¶ added in v0.10.0
func (m *MockCSVWriterInterface) EXPECT() *MockCSVWriterInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockCSVWriterInterfaceMockRecorder ¶ added in v0.10.0
type MockCSVWriterInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockCSVWriterInterfaceMockRecorder is the mock recorder for MockCSVWriterInterface.