Documentation ¶
Index ¶
- func NewMockEventRepository(conn *gorm.DB) Event.EventRepostory
- type EventRepositoryImple
- func (eri *EventRepositoryImple) DeleteEvent(id uint) (*entities.Events, []error)
- func (eri *EventRepositoryImple) Event(id uint) (*entities.Events, []error)
- func (eri *EventRepositoryImple) Events() ([]entities.Events, []error)
- func (eri *EventRepositoryImple) StoreEvent(event *entities.Events) (*entities.Events, []error)
- func (eri *EventRepositoryImple) UpdateEvent(event *entities.Events) (*entities.Events, []error)
- type MockEventRepositoryImple
- func (meri *MockEventRepositoryImple) DeleteEvent(id uint) (*entities.Events, []error)
- func (meri *MockEventRepositoryImple) Event(id uint) (*entities.Events, []error)
- func (meri *MockEventRepositoryImple) Events() ([]entities.Events, []error)
- func (meri *MockEventRepositoryImple) StoreEvent(event *entities.Events) (*entities.Events, []error)
- func (meri *MockEventRepositoryImple) UpdateEvent(event *entities.Events) (*entities.Events, []error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMockEventRepository ¶
func NewMockEventRepository(conn *gorm.DB) Event.EventRepostory
Types ¶
type EventRepositoryImple ¶
func NewEventRepository ¶
func NewEventRepository(conn *gorm.DB) *EventRepositoryImple
func (*EventRepositoryImple) DeleteEvent ¶
func (eri *EventRepositoryImple) DeleteEvent(id uint) (*entities.Events, []error)
func (*EventRepositoryImple) Event ¶
func (eri *EventRepositoryImple) Event(id uint) (*entities.Events, []error)
func (*EventRepositoryImple) Events ¶
func (eri *EventRepositoryImple) Events() ([]entities.Events, []error)
func (*EventRepositoryImple) StoreEvent ¶
func (*EventRepositoryImple) UpdateEvent ¶
type MockEventRepositoryImple ¶
func (*MockEventRepositoryImple) DeleteEvent ¶
func (meri *MockEventRepositoryImple) DeleteEvent(id uint) (*entities.Events, []error)
func (*MockEventRepositoryImple) Event ¶
func (meri *MockEventRepositoryImple) Event(id uint) (*entities.Events, []error)
func (*MockEventRepositoryImple) Events ¶
func (meri *MockEventRepositoryImple) Events() ([]entities.Events, []error)
func (*MockEventRepositoryImple) StoreEvent ¶
func (*MockEventRepositoryImple) UpdateEvent ¶
Click to show internal directories.
Click to hide internal directories.