Documentation
¶
Index ¶
- Constants
- type Playlist
- func (p Playlist) AddSong(c echo.Context) error
- func (p Playlist) Create(c echo.Context) error
- func (p Playlist) Get(c echo.Context) error
- func (p Playlist) List(c echo.Context) error
- func (p Playlist) Register(g *echo.Group)
- func (p Playlist) RemoveSong(c echo.Context) error
- func (p Playlist) Share(c echo.Context) error
- type PlaylistStore
- type Premium
- type Purchase
- type SignUp
- type Song
- type Wallet
Constants ¶
View Source
const HoursInDay = 24
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Playlist ¶
type Playlist struct {
Store PlaylistStore
}
func (Playlist) RemoveSong ¶
RemoveSong removes a song from the playlist.
type PlaylistStore ¶
type PlaylistStore interface {
Create(ctx context.Context, owner, name string) (model.Playlist, error)
Get(ctx context.Context, id int, viewer string) (model.PlaylistDetail, error)
List(ctx context.Context, username string) ([]model.Playlist, error)
AddSong(ctx context.Context, id int, username string, songID int) error
RemoveSong(ctx context.Context, id int, username string, songID int) error
}
PlaylistStore is the persistence layer that the playlist handler depends on.
type SignUp ¶
Click to show internal directories.
Click to hide internal directories.