Documentation
¶
Index ¶
- Constants
- type CountedEventDTO
- type EventDTO
- type EventUserDTO
- type EventWithUsersDTO
- type EventsDTO
- type SqlxRepository
- func (r *SqlxRepository) CreateEvent(ctx context.Context, name string, timestamp time.Time, userIDs []uint64) (uint64, error)
- func (r *SqlxRepository) DeleteEvent(ctx context.Context, id uint64) error
- func (r *SqlxRepository) GetEvent(ctx context.Context, id uint64) (models.Event, bool, error)
- func (r *SqlxRepository) GetEvents(ctx context.Context, limit, offset uint64) ([]models.Event, uint64, error)
- func (r *SqlxRepository) GetEventsByUser(ctx context.Context, userID, limit, offset uint64) ([]models.Event, uint64, error)
- func (r *SqlxRepository) HealthCheck(ctx context.Context) error
- func (r *SqlxRepository) UpdateEvent(ctx context.Context, event models.Event) (found bool, err error)
Constants ¶
View Source
const TimestampLayout = time.RFC3339
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CountedEventDTO ¶
type CountedEventDTO struct {
EventWithUsersDTO
TotalCount uint64 `db:"total_count"`
}
type EventUserDTO ¶
type EventWithUsersDTO ¶
type EventsDTO ¶
type EventsDTO []CountedEventDTO
type SqlxRepository ¶
type SqlxRepository struct {
// contains filtered or unexported fields
}
func (*SqlxRepository) CreateEvent ¶
func (*SqlxRepository) DeleteEvent ¶
func (r *SqlxRepository) DeleteEvent(ctx context.Context, id uint64) error
func (*SqlxRepository) GetEventsByUser ¶
func (*SqlxRepository) HealthCheck ¶
func (r *SqlxRepository) HealthCheck(ctx context.Context) error
func (*SqlxRepository) UpdateEvent ¶
Click to show internal directories.
Click to hide internal directories.