Documentation ¶
Index ¶
- func GormConn() (*gorm.DB, error)
- type EventGormRepository
- func (r *EventGormRepository) CreateEvent(ctx context.Context, event *domain.Event) (*domain.Event, error)
- func (r *EventGormRepository) DeleteEvent(ctx context.Context, id int64) error
- func (r *EventGormRepository) GetAllEvents(ctx context.Context) ([]*domain.Event, error)
- func (r *EventGormRepository) GetEventByID(ctx context.Context, id int64) (*domain.Event, error)
- func (r *EventGormRepository) UpdateEvent(ctx context.Context, event *domain.Event, id int64) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type EventGormRepository ¶
func NewEventRepository ¶
func NewEventRepository(db *gorm.DB) *EventGormRepository
NewDatabase : intializes and returns mysql db
func (*EventGormRepository) CreateEvent ¶
func (*EventGormRepository) DeleteEvent ¶
func (r *EventGormRepository) DeleteEvent(ctx context.Context, id int64) error
func (*EventGormRepository) GetAllEvents ¶
func (*EventGormRepository) GetEventByID ¶
func (*EventGormRepository) UpdateEvent ¶
Click to show internal directories.
Click to hide internal directories.