Documentation
¶
Index ¶
- func Connect(ctx context.Context, databaseURL string) (*pgxpool.Pool, error)
- func RunMigrationsWithLock(ctx context.Context, pool *pgxpool.Pool) error
- type ConfigRepo
- func (r *ConfigRepo) GetByBroadcasterID(ctx context.Context, broadcasterID string) (*domain.OverlayConfigWithVersion, error)
- func (r *ConfigRepo) GetByStreamerID(ctx context.Context, streamerID uuid.UUID) (*domain.OverlayConfigWithVersion, error)
- func (r *ConfigRepo) Update(ctx context.Context, streamerID uuid.UUID, config domain.OverlayConfig, ...) error
- type EventSubRepo
- func (r *EventSubRepo) Create(ctx context.Context, streamerID uuid.UUID, subscriptionID, conduitID string) error
- func (r *EventSubRepo) Delete(ctx context.Context, streamerID uuid.UUID) error
- func (r *EventSubRepo) DeleteByConduitID(ctx context.Context, conduitID string) error
- func (r *EventSubRepo) GetByStreamerID(ctx context.Context, streamerID uuid.UUID) (*domain.EventSubSubscription, error)
- func (r *EventSubRepo) List(ctx context.Context) ([]domain.EventSubSubscription, error)
- type StreamerRepo
- func (r *StreamerRepo) GetByID(ctx context.Context, streamerID uuid.UUID) (*domain.Streamer, error)
- func (r *StreamerRepo) GetByOverlayUUID(ctx context.Context, overlayUUID uuid.UUID) (*domain.Streamer, error)
- func (r *StreamerRepo) RotateOverlayUUID(ctx context.Context, streamerID uuid.UUID) (uuid.UUID, error)
- func (r *StreamerRepo) Upsert(ctx context.Context, twitchUserID, twitchUsername string) (*domain.Streamer, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ConfigRepo ¶
type ConfigRepo struct {
// contains filtered or unexported fields
}
func NewConfigRepo ¶
func NewConfigRepo(pool *pgxpool.Pool) *ConfigRepo
func (*ConfigRepo) GetByBroadcasterID ¶
func (r *ConfigRepo) GetByBroadcasterID(ctx context.Context, broadcasterID string) (*domain.OverlayConfigWithVersion, error)
func (*ConfigRepo) GetByStreamerID ¶
func (r *ConfigRepo) GetByStreamerID(ctx context.Context, streamerID uuid.UUID) (*domain.OverlayConfigWithVersion, error)
type EventSubRepo ¶
type EventSubRepo struct {
// contains filtered or unexported fields
}
func NewEventSubRepo ¶
func NewEventSubRepo(pool *pgxpool.Pool) *EventSubRepo
func (*EventSubRepo) DeleteByConduitID ¶
func (r *EventSubRepo) DeleteByConduitID(ctx context.Context, conduitID string) error
func (*EventSubRepo) GetByStreamerID ¶
func (r *EventSubRepo) GetByStreamerID(ctx context.Context, streamerID uuid.UUID) (*domain.EventSubSubscription, error)
func (*EventSubRepo) List ¶
func (r *EventSubRepo) List(ctx context.Context) ([]domain.EventSubSubscription, error)
type StreamerRepo ¶
type StreamerRepo struct {
// contains filtered or unexported fields
}
func NewStreamerRepo ¶
func NewStreamerRepo(pool *pgxpool.Pool) *StreamerRepo
func (*StreamerRepo) GetByOverlayUUID ¶
func (*StreamerRepo) RotateOverlayUUID ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.