Documentation ¶
Index ¶
- type BrainRepositoryInterface
- func (_m *BrainRepositoryInterface) Create(name string, description string) (entity.BrainInterface, error)
- func (_m *BrainRepositoryInterface) Delete(id int64) error
- func (_m *BrainRepositoryInterface) GetAll() ([]entity.BrainInterface, error)
- func (_m *BrainRepositoryInterface) GetByReference(reference string) (entity.BrainInterface, error)
- type ClassRepositoryInterface
- func (_m *ClassRepositoryInterface) Create(brainID int64, label string) (entity.ClassInterface, error)
- func (_m *ClassRepositoryInterface) FindByBrainAndLabel(brainID int64, label string) (entity.ClassInterface, error)
- func (_m *ClassRepositoryInterface) FindByID(classID int64) (entity.ClassInterface, error)
- type TokenRepositoryInterface
- func (_m *TokenRepositoryInterface) Create(brainID int64, text string) (entity.TokenInterface, error)
- func (_m *TokenRepositoryInterface) FindByBrainAndText(brainID int64, text string) (entity.TokenInterface, error)
- func (_m *TokenRepositoryInterface) GetTokenIDs(brainID int64, tokens []string) ([]int64, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BrainRepositoryInterface ¶
BrainRepositoryInterface is an autogenerated mock type for the BrainRepositoryInterface type
func (*BrainRepositoryInterface) Create ¶
func (_m *BrainRepositoryInterface) Create(name string, description string) (entity.BrainInterface, error)
Create provides a mock function with given fields: name, description
func (*BrainRepositoryInterface) Delete ¶
func (_m *BrainRepositoryInterface) Delete(id int64) error
Delete provides a mock function with given fields: id
func (*BrainRepositoryInterface) GetAll ¶
func (_m *BrainRepositoryInterface) GetAll() ([]entity.BrainInterface, error)
GetAll provides a mock function with given fields:
func (*BrainRepositoryInterface) GetByReference ¶
func (_m *BrainRepositoryInterface) GetByReference(reference string) (entity.BrainInterface, error)
GetByReference provides a mock function with given fields: reference
type ClassRepositoryInterface ¶
ClassRepositoryInterface is an autogenerated mock type for the ClassRepositoryInterface type
func (*ClassRepositoryInterface) Create ¶
func (_m *ClassRepositoryInterface) Create(brainID int64, label string) (entity.ClassInterface, error)
Create provides a mock function with given fields: brainID, label
func (*ClassRepositoryInterface) FindByBrainAndLabel ¶
func (_m *ClassRepositoryInterface) FindByBrainAndLabel(brainID int64, label string) (entity.ClassInterface, error)
FindByBrainAndLabel provides a mock function with given fields: brainID, label
func (*ClassRepositoryInterface) FindByID ¶
func (_m *ClassRepositoryInterface) FindByID(classID int64) (entity.ClassInterface, error)
FindByID provides a mock function with given fields: classID
type TokenRepositoryInterface ¶
TokenRepositoryInterface is an autogenerated mock type for the TokenRepositoryInterface type
func (*TokenRepositoryInterface) Create ¶
func (_m *TokenRepositoryInterface) Create(brainID int64, text string) (entity.TokenInterface, error)
Create provides a mock function with given fields: brainID, text
func (*TokenRepositoryInterface) FindByBrainAndText ¶
func (_m *TokenRepositoryInterface) FindByBrainAndText(brainID int64, text string) (entity.TokenInterface, error)
FindByBrainAndText provides a mock function with given fields: brainID, text
func (*TokenRepositoryInterface) GetTokenIDs ¶
func (_m *TokenRepositoryInterface) GetTokenIDs(brainID int64, tokens []string) ([]int64, error)
GetTokenIDs provides a mock function with given fields: brainID, tokens