Documentation
¶
Index ¶
- type Logger
- func (l *Logger) Error(ctx context.Context, msg string, args ...any)
- func (l *Logger) Info(ctx context.Context, msg string, args ...any)
- func (l *Logger) LogMode(level logger.LogLevel) logger.Interface
- func (l *Logger) Trace(ctx context.Context, begin time.Time, ...)
- func (l *Logger) Warn(ctx context.Context, msg string, args ...any)
- type MucaronTransactionKey
- type PostgresClient
- func (p *PostgresClient) CreateAlbum(ctx context.Context, a entity.Album) error
- func (p *PostgresClient) CreateArtist(ctx context.Context, a entity.Artist) error
- func (p *PostgresClient) CreateGenre(ctx context.Context, g entity.Genre) error
- func (p *PostgresClient) CreateMusic(ctx context.Context, m entity.Music) error
- func (p *PostgresClient) CreateUser(ctx context.Context, u entity.User) error
- func (p *PostgresClient) DeleteAlbums(ctx context.Context, a []entity.Album) error
- func (p *PostgresClient) DeleteArtist(ctx context.Context, a entity.Artist) error
- func (p *PostgresClient) DeleteGenre(ctx context.Context, g entity.Genre) error
- func (p *PostgresClient) DeleteMusics(ctx context.Context, musicIDs []uuid.UUID) error
- func (p *PostgresClient) DeleteUser(ctx context.Context, u entity.User) error
- func (p *PostgresClient) GetAlbumByID(ctx context.Context, id uuid.UUID) (entity.Album, error)
- func (p *PostgresClient) GetAlbumByIDs(ctx context.Context, ids []uuid.UUID) ([]entity.Album, error)
- func (p *PostgresClient) GetAlbumsByNameAndArtist(ctx context.Context, ownerID uuid.UUID, albumName string, artist entity.Artist) ([]entity.Album, error)
- func (p *PostgresClient) GetArtistByID(ctx context.Context, id uuid.UUID) (entity.Artist, error)
- func (p *PostgresClient) GetArtistByIDs(ctx context.Context, ids []uuid.UUID) ([]entity.Artist, error)
- func (p *PostgresClient) GetArtistByName(ctx context.Context, ownerID uuid.UUID, name string) (entity.Artist, error)
- func (p *PostgresClient) GetGenreByID(ctx context.Context, id uuid.UUID) (entity.Genre, error)
- func (p *PostgresClient) GetGenreByIDs(ctx context.Context, ids []uuid.UUID) ([]entity.Genre, error)
- func (p *PostgresClient) GetGenreByName(ctx context.Context, ownerID uuid.UUID, name string) (entity.Genre, error)
- func (p *PostgresClient) GetMusicByFileHash(ctx context.Context, userID uuid.UUID, fileHash string, m *entity.Music) error
- func (p *PostgresClient) GetMusicByID(ctx context.Context, id uuid.UUID) (entity.Music, error)
- func (p *PostgresClient) GetMusicByIDs(ctx context.Context, ids []uuid.UUID) ([]entity.Music, error)
- func (p *PostgresClient) GetMusicIDsByUserID(ctx context.Context, userID uuid.UUID) ([]uuid.UUID, error)
- func (p *PostgresClient) GetMusicsByUserID(ctx context.Context, userID uuid.UUID) ([]entity.Music, error)
- func (p *PostgresClient) GetUserByID(ctx context.Context, userID uuid.UUID) (entity.User, error)
- func (p *PostgresClient) GetUserByIDs(ctx context.Context, userIDs []uuid.UUID) ([]entity.User, error)
- func (p *PostgresClient) GetUserByName(ctx context.Context, userName string) (entity.User, error)
- func (p *PostgresClient) HardDeleteMusic(ctx context.Context, music entity.Music) error
- func (p *PostgresClient) UpdateAlbum(ctx context.Context, a entity.Album) error
- func (p *PostgresClient) UpdateArtist(ctx context.Context, a entity.Artist) error
- func (p *PostgresClient) UpdateGenre(ctx context.Context, g entity.Genre) error
- func (p *PostgresClient) UpdateMusic(ctx context.Context, m entity.Music) error
- func (p *PostgresClient) UpdateMusicStatus(ctx context.Context, musicID uuid.UUID, status entity.MusicStatus) error
- func (p *PostgresClient) UpdateMusicStatuses(ctx context.Context, musicIDs []uuid.UUID, status entity.MusicStatus) error
- func (p *PostgresClient) UpdateUser(ctx context.Context, u entity.User) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
type MucaronTransactionKey ¶
type MucaronTransactionKey struct{}
type PostgresClient ¶
type PostgresClient struct {
// contains filtered or unexported fields
}
func NewPostgres ¶
func (*PostgresClient) CreateAlbum ¶
func (*PostgresClient) CreateArtist ¶
func (*PostgresClient) CreateGenre ¶
func (*PostgresClient) CreateMusic ¶
func (*PostgresClient) CreateUser ¶
func (*PostgresClient) DeleteAlbums ¶
func (*PostgresClient) DeleteArtist ¶
func (*PostgresClient) DeleteGenre ¶
func (*PostgresClient) DeleteMusics ¶
func (*PostgresClient) DeleteUser ¶
func (*PostgresClient) GetAlbumByID ¶
func (*PostgresClient) GetAlbumByIDs ¶
func (*PostgresClient) GetAlbumsByNameAndArtist ¶
func (*PostgresClient) GetArtistByID ¶
func (*PostgresClient) GetArtistByIDs ¶
func (*PostgresClient) GetArtistByName ¶
func (*PostgresClient) GetGenreByID ¶
func (*PostgresClient) GetGenreByIDs ¶
func (*PostgresClient) GetGenreByName ¶
func (*PostgresClient) GetMusicByFileHash ¶
func (*PostgresClient) GetMusicByID ¶
func (*PostgresClient) GetMusicByIDs ¶
func (*PostgresClient) GetMusicIDsByUserID ¶
func (*PostgresClient) GetMusicsByUserID ¶
func (*PostgresClient) GetUserByID ¶
func (*PostgresClient) GetUserByIDs ¶
func (*PostgresClient) GetUserByName ¶
func (*PostgresClient) HardDeleteMusic ¶
func (*PostgresClient) UpdateAlbum ¶
func (*PostgresClient) UpdateArtist ¶
func (*PostgresClient) UpdateGenre ¶
func (*PostgresClient) UpdateMusic ¶
func (*PostgresClient) UpdateMusicStatus ¶
func (p *PostgresClient) UpdateMusicStatus(ctx context.Context, musicID uuid.UUID, status entity.MusicStatus) error
func (*PostgresClient) UpdateMusicStatuses ¶
func (p *PostgresClient) UpdateMusicStatuses(ctx context.Context, musicIDs []uuid.UUID, status entity.MusicStatus) error
func (*PostgresClient) UpdateUser ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.