Documentation ¶
Index ¶
- type AddTracklistParams
- type Store
- func (s *Store) AddTracklist(ctx context.Context, model *AddTracklistParams) (*Tracklist, error)
- func (s *Store) GetTracklist(ctx context.Context, id string) (*Tracklist, error)
- func (s *Store) GetTracklists(ctx context.Context, page, limit int32) ([]*Tracklist, int64, error)
- func (s *Store) GetTracklistsByTrack(ctx context.Context, id string, page, limit int32) ([]*Tracklist, int64, error)
- func (s *Store) UpdateTracklist(ctx context.Context, id string, model *UpdateTracklistParams) (*Tracklist, error)
- type Tracklist
- type UpdateTracklistParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddTracklistParams ¶
type AddTracklistParams struct { Name string `json:"name"` Date string `json:"date"` URL string `json:"url"` Artwork string `json:"artwork"` Tracks [][]string `json:"tracks"` }
func (*AddTracklistParams) ToDatabaseParams ¶
func (t *AddTracklistParams) ToDatabaseParams() db.AddTracklistParams
func (*AddTracklistParams) Validate ¶
func (t *AddTracklistParams) Validate() valid.Error
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) AddTracklist ¶
func (*Store) GetTracklist ¶
func (*Store) GetTracklists ¶
func (*Store) GetTracklistsByTrack ¶
func (*Store) UpdateTracklist ¶
type Tracklist ¶
type Tracklist struct { ID string `json:"id"` Name string `json:"name"` Date time.Time `json:"date"` URL string `json:"url"` Artwork string `json:"artwork"` Created time.Time `json:"-"` Updated time.Time `json:"-"` Tracks []*trackstore.Track `json:"tracks,omitempty"` TrackCount int `json:"trackCount"` }
type UpdateTracklistParams ¶
type UpdateTracklistParams struct { Name string `json:"name"` Date string `json:"date"` URL string `json:"url"` }
func (*UpdateTracklistParams) ToDatabaseParams ¶
func (t *UpdateTracklistParams) ToDatabaseParams(id string) db.UpdateTracklistParams
func (*UpdateTracklistParams) Validate ¶
func (t *UpdateTracklistParams) Validate() valid.Error
Click to show internal directories.
Click to hide internal directories.