Documentation ¶
Index ¶
- type DatabaseRepository
- func (_m *DatabaseRepository) CreateContent(e *entities.Content) (*entities.Content, error)
- func (_m *DatabaseRepository) CreateEvent(e *entities.Event) (*entities.Event, error)
- func (_m *DatabaseRepository) DeleteContent(name string) error
- func (_m *DatabaseRepository) DeleteEvent(id entities.ID) error
- func (_m *DatabaseRepository) GetContent(name string) (*entities.Content, error)
- func (_m *DatabaseRepository) GetEvent(id entities.ID) (*entities.Event, error)
- func (_m *DatabaseRepository) ListContent() ([]*entities.Content, error)
- func (_m *DatabaseRepository) ListEvents(includePastEvents bool) ([]*entities.Event, error)
- func (_m *DatabaseRepository) UpdateContent(e *entities.Content) (*entities.Content, error)
- func (_m *DatabaseRepository) UpdateEvent(e *entities.Event) (*entities.Event, error)
- type Usecase
- func (_m *Usecase) CreateContent(e *entities.Content) (*entities.Content, error)
- func (_m *Usecase) CreateEvent(e *entities.Event) (*entities.Event, error)
- func (_m *Usecase) DeleteContent(name string) error
- func (_m *Usecase) DeleteEvent(id entities.ID) error
- func (_m *Usecase) GetContent(name string) (*entities.Content, error)
- func (_m *Usecase) GetEvent(id entities.ID) (*entities.Event, error)
- func (_m *Usecase) ListContent() ([]*entities.Content, error)
- func (_m *Usecase) ListEvents(includePastEvents bool) ([]*entities.Event, error)
- func (_m *Usecase) UpdateContent(e *entities.Content) (*entities.Content, error)
- func (_m *Usecase) UpdateEvent(e *entities.Event) (*entities.Event, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DatabaseRepository ¶
DatabaseRepository is an autogenerated mock type for the DatabaseRepository type
func NewDatabaseRepository ¶ added in v0.5.0
func NewDatabaseRepository(t testing.TB) *DatabaseRepository
NewDatabaseRepository creates a new instance of DatabaseRepository. It also registers the testing.TB interface on the mock and a cleanup function to assert the mocks expectations.
func (*DatabaseRepository) CreateContent ¶
CreateContent provides a mock function with given fields: e
func (*DatabaseRepository) CreateEvent ¶
CreateEvent provides a mock function with given fields: e
func (*DatabaseRepository) DeleteContent ¶
func (_m *DatabaseRepository) DeleteContent(name string) error
DeleteContent provides a mock function with given fields: name
func (*DatabaseRepository) DeleteEvent ¶
func (_m *DatabaseRepository) DeleteEvent(id entities.ID) error
DeleteEvent provides a mock function with given fields: id
func (*DatabaseRepository) GetContent ¶
func (_m *DatabaseRepository) GetContent(name string) (*entities.Content, error)
GetContent provides a mock function with given fields: name
func (*DatabaseRepository) ListContent ¶
func (_m *DatabaseRepository) ListContent() ([]*entities.Content, error)
ListContent provides a mock function with given fields:
func (*DatabaseRepository) ListEvents ¶
func (_m *DatabaseRepository) ListEvents(includePastEvents bool) ([]*entities.Event, error)
ListEvents provides a mock function with given fields: includePastEvents
func (*DatabaseRepository) UpdateContent ¶
UpdateContent provides a mock function with given fields: e
func (*DatabaseRepository) UpdateEvent ¶
UpdateEvent provides a mock function with given fields: e
type Usecase ¶
Usecase is an autogenerated mock type for the Usecase type
func NewUsecase ¶ added in v0.5.0
NewUsecase creates a new instance of Usecase. It also registers the testing.TB interface on the mock and a cleanup function to assert the mocks expectations.
func (*Usecase) CreateContent ¶
CreateContent provides a mock function with given fields: e
func (*Usecase) CreateEvent ¶
CreateEvent provides a mock function with given fields: e
func (*Usecase) DeleteContent ¶
DeleteContent provides a mock function with given fields: name
func (*Usecase) DeleteEvent ¶
DeleteEvent provides a mock function with given fields: id
func (*Usecase) GetContent ¶
GetContent provides a mock function with given fields: name
func (*Usecase) ListContent ¶
ListContent provides a mock function with given fields:
func (*Usecase) ListEvents ¶
ListEvents provides a mock function with given fields: includePastEvents
func (*Usecase) UpdateContent ¶
UpdateContent provides a mock function with given fields: e