Documentation ¶
Index ¶
- func MysqlConn() (*sql.DB, error)
- func NewEventRepository(db *sql.DB) port.EventRepo
- type EventMysqlRepository
- func (r *EventMysqlRepository) CreateEvent(ctx context.Context, event *domain.Event) (*domain.Event, error)
- func (r *EventMysqlRepository) DeleteEvent(ctx context.Context, id int64) error
- func (r *EventMysqlRepository) GetAllEvents(ctx context.Context) ([]*domain.Event, error)
- func (r *EventMysqlRepository) GetEventByID(ctx context.Context, id int64) (*domain.Event, error)
- func (r *EventMysqlRepository) UpdateEvent(ctx context.Context, event *domain.Event, id int64) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type EventMysqlRepository ¶
type EventMysqlRepository struct {
// contains filtered or unexported fields
}
func (*EventMysqlRepository) CreateEvent ¶
func (*EventMysqlRepository) DeleteEvent ¶
func (r *EventMysqlRepository) DeleteEvent(ctx context.Context, id int64) error
func (*EventMysqlRepository) GetAllEvents ¶
func (*EventMysqlRepository) GetEventByID ¶
func (*EventMysqlRepository) UpdateEvent ¶
Click to show internal directories.
Click to hide internal directories.