Documentation
¶
Index ¶
- type AlbumPSQL
- func (r *AlbumPSQL) Create(e *entity.Album) (int, error)
- func (r *AlbumPSQL) Delete(id int) error
- func (r *AlbumPSQL) Get(id int) (*entity.Album, error)
- func (r *AlbumPSQL) List() ([]*entity.Album, error)
- func (r *AlbumPSQL) Search(query string) ([]*entity.Album, error)
- func (r *AlbumPSQL) Update(e *entity.Album) error
- type ArtistaPSQL
- func (r *ArtistaPSQL) Create(e *entity.Artista) (string, error)
- func (r *ArtistaPSQL) Delete(email string) error
- func (r *ArtistaPSQL) Get(email string) (*entity.Artista, error)
- func (r *ArtistaPSQL) List() ([]*entity.Artista, error)
- func (r *ArtistaPSQL) Search(query string) ([]*entity.Artista, error)
- func (r *ArtistaPSQL) Update(e *entity.Artista) error
- type EventoPSQL
- func (r *EventoPSQL) Create(e *entity.Evento) (int, error)
- func (r *EventoPSQL) Delete(id int) error
- func (r *EventoPSQL) Get(id int) (*entity.Evento, error)
- func (r *EventoPSQL) List() ([]*entity.Evento, error)
- func (r *EventoPSQL) Search(query string) ([]*entity.Evento, error)
- func (r *EventoPSQL) Update(e *entity.Evento) error
- type GeneroPSQL
- func (r *GeneroPSQL) Create(e *entity.Genero) (string, error)
- func (r *GeneroPSQL) Delete(nome string) error
- func (r *GeneroPSQL) Get(nome string) (*entity.Genero, error)
- func (r *GeneroPSQL) List() ([]*entity.Genero, error)
- func (r *GeneroPSQL) Search(query string) ([]*entity.Genero, error)
- func (r *GeneroPSQL) Update(e *entity.Genero) error
- type LocalPSQL
- func (r *LocalPSQL) Create(e *entity.Local) (int, error)
- func (r *LocalPSQL) Delete(id int) error
- func (r *LocalPSQL) Get(id int) (*entity.Local, error)
- func (r *LocalPSQL) List() ([]*entity.Local, error)
- func (r *LocalPSQL) Search(query string) ([]*entity.Local, error)
- func (r *LocalPSQL) Update(e *entity.Local) error
- type MusicaPSQL
- func (r *MusicaPSQL) Create(e *entity.Musica) (int, error)
- func (r *MusicaPSQL) Delete(id int) error
- func (r *MusicaPSQL) Get(id int) (*entity.Musica, error)
- func (r *MusicaPSQL) List() ([]*entity.Musica, error)
- func (r *MusicaPSQL) Search(query string) ([]*entity.Musica, error)
- func (r *MusicaPSQL) Update(e *entity.Musica) error
- type OuvintePSQL
- func (r *OuvintePSQL) Create(e *entity.Ouvinte) (string, error)
- func (r *OuvintePSQL) Delete(email string) error
- func (r *OuvintePSQL) Get(email string) (*entity.Ouvinte, error)
- func (r *OuvintePSQL) List() ([]*entity.Ouvinte, error)
- func (r *OuvintePSQL) Search(query string) ([]*entity.Ouvinte, error)
- func (r *OuvintePSQL) Update(e *entity.Ouvinte) error
- type PerfilPSQL
- func (r *PerfilPSQL) Create(e *entity.Perfil) (int, error)
- func (r *PerfilPSQL) Delete(id int) error
- func (r *PerfilPSQL) Get(id int) (*entity.Perfil, error)
- func (r *PerfilPSQL) List() ([]*entity.Perfil, error)
- func (r *PerfilPSQL) Search(query string) ([]*entity.Perfil, error)
- func (r *PerfilPSQL) Update(e *entity.Perfil) error
- type PlaylistPSQL
- func (r *PlaylistPSQL) Create(e *entity.Playlist) (string, error)
- func (r *PlaylistPSQL) Delete(nome string) error
- func (r *PlaylistPSQL) Get(nome string) (*entity.Playlist, error)
- func (r *PlaylistPSQL) List() ([]*entity.Playlist, error)
- func (r *PlaylistPSQL) Search(query string) ([]*entity.Playlist, error)
- func (r *PlaylistPSQL) Update(e *entity.Playlist) error
- type UsuarioPSQL
- func (r *UsuarioPSQL) Create(e *entity.Usuario) (string, error)
- func (r *UsuarioPSQL) Delete(email string) error
- func (r *UsuarioPSQL) Get(email string) (*entity.Usuario, error)
- func (r *UsuarioPSQL) List() ([]*entity.Usuario, error)
- func (r *UsuarioPSQL) Search(query string) ([]*entity.Usuario, error)
- func (r *UsuarioPSQL) Update(e *entity.Usuario) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlbumPSQL ¶
type AlbumPSQL struct {
// contains filtered or unexported fields
}
AlbumPSQL postgres repo
type ArtistaPSQL ¶
type ArtistaPSQL struct {
// contains filtered or unexported fields
}
ArtistaPSQL postgres repo
func NewArtistaPSQL ¶
func NewArtistaPSQL(db *sql.DB) *ArtistaPSQL
NewArtistaPSQL create new repository
func (*ArtistaPSQL) Create ¶
func (r *ArtistaPSQL) Create(e *entity.Artista) (string, error)
Create an artista
func (*ArtistaPSQL) Get ¶
func (r *ArtistaPSQL) Get(email string) (*entity.Artista, error)
Get an artista
type EventoPSQL ¶
type EventoPSQL struct {
// contains filtered or unexported fields
}
EventoPSQL postgres repo
func (*EventoPSQL) Create ¶
func (r *EventoPSQL) Create(e *entity.Evento) (int, error)
Create an Evento
type GeneroPSQL ¶
type GeneroPSQL struct {
// contains filtered or unexported fields
}
GeneroPSQL postgres repo
func (*GeneroPSQL) Create ¶
func (r *GeneroPSQL) Create(e *entity.Genero) (string, error)
Create an Genero
func (*GeneroPSQL) Get ¶
func (r *GeneroPSQL) Get(nome string) (*entity.Genero, error)
Get an Genero
type LocalPSQL ¶
type LocalPSQL struct {
// contains filtered or unexported fields
}
LocalPSQL postgres repo
type MusicaPSQL ¶
type MusicaPSQL struct {
// contains filtered or unexported fields
}
MusicaPSQL postgres repo
func (*MusicaPSQL) Create ¶
func (r *MusicaPSQL) Create(e *entity.Musica) (int, error)
Create an Musica
type OuvintePSQL ¶
type OuvintePSQL struct {
// contains filtered or unexported fields
}
OuvintePSQL postgres repo
func NewOuvintePSQL ¶
func NewOuvintePSQL(db *sql.DB) *OuvintePSQL
NewOuvintePSQL create new repository
func (*OuvintePSQL) Create ¶
func (r *OuvintePSQL) Create(e *entity.Ouvinte) (string, error)
Create an Ouvinte
func (*OuvintePSQL) Get ¶
func (r *OuvintePSQL) Get(email string) (*entity.Ouvinte, error)
Get an Ouvinte
type PerfilPSQL ¶
type PerfilPSQL struct {
// contains filtered or unexported fields
}
PerfilPSQL postgres repo
func (*PerfilPSQL) Create ¶
func (r *PerfilPSQL) Create(e *entity.Perfil) (int, error)
Create an Perfil
type PlaylistPSQL ¶
type PlaylistPSQL struct {
// contains filtered or unexported fields
}
PlaylistPSQL postgres repo
func NewPlaylistPSQL ¶
func NewPlaylistPSQL(db *sql.DB) *PlaylistPSQL
NewPlaylistPSQL create new repository
func (*PlaylistPSQL) Create ¶
func (r *PlaylistPSQL) Create(e *entity.Playlist) (string, error)
Create an Playlist
func (*PlaylistPSQL) Get ¶
func (r *PlaylistPSQL) Get(nome string) (*entity.Playlist, error)
Get an Playlist
func (*PlaylistPSQL) List ¶
func (r *PlaylistPSQL) List() ([]*entity.Playlist, error)
List Playlists
type UsuarioPSQL ¶
type UsuarioPSQL struct {
// contains filtered or unexported fields
}
UsuarioPSQL postgres repo
func NewUsuarioPSQL ¶
func NewUsuarioPSQL(db *sql.DB) *UsuarioPSQL
NewUsuarioPSQL create new repository
func (*UsuarioPSQL) Create ¶
func (r *UsuarioPSQL) Create(e *entity.Usuario) (string, error)
Create an usuario
func (*UsuarioPSQL) Get ¶
func (r *UsuarioPSQL) Get(email string) (*entity.Usuario, error)
Get an usuario