Documentation ¶
Overview ¶
Package instrument is a generated GoMock package.
Index ¶
- Variables
- func ExtractInstrumentISINFromIcon(src string) (string, error)
- func ProvideInstrumentRepository(db *gorm.DB, logger *logrus.Logger) (*database.Repository[*Model], error)
- type MockRepositoryInterface
- type MockRepositoryInterfaceMockRecorder
- type Model
- type ModelBuilder
- func (b ModelBuilder) Build(response details.NormalizedResponse) (Model, error)
- func (b ModelBuilder) ExtractInstrumentISIN(response details.NormalizedResponse) (string, error)
- func (b ModelBuilder) ExtractInstrumentIcon(response details.NormalizedResponse) (string, error)
- func (b ModelBuilder) ExtractInstrumentName(response details.NormalizedResponse) (string, error)
- func (b ModelBuilder) HandleErr(err error) error
- type ModelBuilderInterface
- type RepositoryInterface
- type Type
- type TypeResolver
- type TypeResolverInterface
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrModelBuilderInsufficientDataResolved = errors.New("insufficient data resolved")
View Source
var ErrNoMatch = errors.New("value did not match the pattern")
Functions ¶
Types ¶
type MockRepositoryInterface ¶
type MockRepositoryInterface struct {
// contains filtered or unexported fields
}
MockRepositoryInterface is a mock of RepositoryInterface interface.
func NewMockRepositoryInterface ¶
func NewMockRepositoryInterface(ctrl *gomock.Controller) *MockRepositoryInterface
NewMockRepositoryInterface creates a new mock instance.
func (*MockRepositoryInterface) Create ¶
func (m *MockRepositoryInterface) Create(model *Model) error
Create mocks base method.
func (*MockRepositoryInterface) EXPECT ¶
func (m *MockRepositoryInterface) EXPECT() *MockRepositoryInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockRepositoryInterfaceMockRecorder ¶
type MockRepositoryInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockRepositoryInterfaceMockRecorder is the mock recorder for MockRepositoryInterface.
type ModelBuilder ¶
type ModelBuilder struct {
// contains filtered or unexported fields
}
func NewModelBuilder ¶
func NewModelBuilder( typeResolver TypeResolverInterface, logger *log.Logger, ) ModelBuilder
func ProvideModelBuilder ¶
func ProvideModelBuilder(logger *logrus.Logger) ModelBuilder
func (ModelBuilder) Build ¶
func (b ModelBuilder) Build(response details.NormalizedResponse) (Model, error)
func (ModelBuilder) ExtractInstrumentISIN ¶
func (b ModelBuilder) ExtractInstrumentISIN(response details.NormalizedResponse) (string, error)
func (ModelBuilder) ExtractInstrumentIcon ¶
func (b ModelBuilder) ExtractInstrumentIcon(response details.NormalizedResponse) (string, error)
func (ModelBuilder) ExtractInstrumentName ¶
func (b ModelBuilder) ExtractInstrumentName(response details.NormalizedResponse) (string, error)
func (ModelBuilder) HandleErr ¶
func (b ModelBuilder) HandleErr(err error) error
type ModelBuilderInterface ¶
type ModelBuilderInterface interface {
Build(response details.NormalizedResponse) (Model, error)
}
type RepositoryInterface ¶
type RepositoryInterface interface { database.RepositoryInterface[*Model] }
type TypeResolver ¶
type TypeResolver struct {
// contains filtered or unexported fields
}
func NewTypeResolver ¶
func NewTypeResolver(logger *log.Logger) TypeResolver
func (TypeResolver) Resolve ¶
func (r TypeResolver) Resolve(instrument Model) Type
type TypeResolverInterface ¶
Click to show internal directories.
Click to hide internal directories.