Documentation ¶
Index ¶
- type PostgresRepository
- func (r *PostgresRepository) CreateChannel(ctx context.Context, channel domain.Channel) (*domain.Channel, domain.Error)
- func (r *PostgresRepository) GetChannelByExternalID(ctx context.Context, externalChannelID string) (*domain.Channel, domain.Error)
- func (r *PostgresRepository) GetChannelByID(ctx context.Context, channelID int) (*domain.Channel, domain.Error)
- func (r *PostgresRepository) GetEnabledSlideURL(ctx context.Context, channelID int) (string, domain.Error)
- func (r *PostgresRepository) GetLastPageNumber(ctx context.Context, channelID int) (int, domain.Error)
- func (r *PostgresRepository) GetSlideURLByPage(ctx context.Context, channelID, page int) (url string, p int, err domain.Error)
- func (r *PostgresRepository) UpdateCurrentPage(ctx context.Context, channelID, page int) domain.Error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PostgresRepository ¶
type PostgresRepository struct {
// contains filtered or unexported fields
}
func NewPostgresRepository ¶
func NewPostgresRepository(ctx context.Context, db *sqlx.DB) *PostgresRepository
func (*PostgresRepository) CreateChannel ¶
func (*PostgresRepository) GetChannelByExternalID ¶
func (*PostgresRepository) GetChannelByID ¶
func (*PostgresRepository) GetEnabledSlideURL ¶
func (*PostgresRepository) GetLastPageNumber ¶
func (*PostgresRepository) GetSlideURLByPage ¶
func (*PostgresRepository) UpdateCurrentPage ¶
Click to show internal directories.
Click to hide internal directories.