Documentation ¶
Index ¶
- func New(conn *sql.DB) model.DataStore
- func NewAlbumRepository(ctx context.Context, db dbx.Builder) model.AlbumRepository
- func NewArtistRepository(ctx context.Context, db dbx.Builder) model.ArtistRepository
- func NewGenreRepository(ctx context.Context, db dbx.Builder) model.GenreRepository
- func NewMediaFileRepository(ctx context.Context, db dbx.Builder) *mediaFileRepository
- func NewMediaFolderRepository(ctx context.Context, _ dbx.Builder) model.MediaFolderRepository
- func NewPlayQueueRepository(ctx context.Context, db dbx.Builder) model.PlayQueueRepository
- func NewPlayerRepository(ctx context.Context, db dbx.Builder) model.PlayerRepository
- func NewPlaylistRepository(ctx context.Context, db dbx.Builder) model.PlaylistRepository
- func NewPropertyRepository(ctx context.Context, db dbx.Builder) model.PropertyRepository
- func NewRadioRepository(ctx context.Context, db dbx.Builder) model.RadioRepository
- func NewScrobbleBufferRepository(ctx context.Context, db dbx.Builder) model.ScrobbleBufferRepository
- func NewShareRepository(ctx context.Context, db dbx.Builder) model.ShareRepository
- func NewTranscodingRepository(ctx context.Context, db dbx.Builder) model.TranscodingRepository
- func NewUserPropsRepository(ctx context.Context, db dbx.Builder) model.UserPropsRepository
- func NewUserRepository(ctx context.Context, db dbx.Builder) model.UserRepository
- type PostMapper
- type SQLStore
- func (s *SQLStore) Album(ctx context.Context) model.AlbumRepository
- func (s *SQLStore) Artist(ctx context.Context) model.ArtistRepository
- func (s *SQLStore) GC(ctx context.Context, rootFolder string) error
- func (s *SQLStore) Genre(ctx context.Context) model.GenreRepository
- func (s *SQLStore) MediaFile(ctx context.Context) model.MediaFileRepository
- func (s *SQLStore) MediaFolder(ctx context.Context) model.MediaFolderRepository
- func (s *SQLStore) PlayQueue(ctx context.Context) model.PlayQueueRepository
- func (s *SQLStore) Player(ctx context.Context) model.PlayerRepository
- func (s *SQLStore) Playlist(ctx context.Context) model.PlaylistRepository
- func (s *SQLStore) Property(ctx context.Context) model.PropertyRepository
- func (s *SQLStore) Radio(ctx context.Context) model.RadioRepository
- func (s *SQLStore) Resource(ctx context.Context, m interface{}) model.ResourceRepository
- func (s *SQLStore) ScrobbleBuffer(ctx context.Context) model.ScrobbleBufferRepository
- func (s *SQLStore) Share(ctx context.Context) model.ShareRepository
- func (s *SQLStore) Transcoding(ctx context.Context) model.TranscodingRepository
- func (s *SQLStore) User(ctx context.Context) model.UserRepository
- func (s *SQLStore) UserProps(ctx context.Context) model.UserPropsRepository
- func (s *SQLStore) WithTx(block func(tx model.DataStore) error) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAlbumRepository ¶
func NewArtistRepository ¶
func NewGenreRepository ¶
func NewMediaFileRepository ¶
func NewPlayQueueRepository ¶
func NewPlayerRepository ¶
func NewPlaylistRepository ¶
func NewPropertyRepository ¶
func NewRadioRepository ¶ added in v0.49.0
func NewScrobbleBufferRepository ¶ added in v0.45.0
func NewShareRepository ¶ added in v0.44.0
func NewUserPropsRepository ¶ added in v0.44.0
func NewUserRepository ¶
Types ¶
type PostMapper ¶ added in v0.51.0
type SQLStore ¶
type SQLStore struct {
// contains filtered or unexported fields
}
func (*SQLStore) MediaFile ¶
func (s *SQLStore) MediaFile(ctx context.Context) model.MediaFileRepository
func (*SQLStore) MediaFolder ¶
func (s *SQLStore) MediaFolder(ctx context.Context) model.MediaFolderRepository
func (*SQLStore) PlayQueue ¶
func (s *SQLStore) PlayQueue(ctx context.Context) model.PlayQueueRepository
func (*SQLStore) Playlist ¶
func (s *SQLStore) Playlist(ctx context.Context) model.PlaylistRepository
func (*SQLStore) Property ¶
func (s *SQLStore) Property(ctx context.Context) model.PropertyRepository
func (*SQLStore) Radio ¶ added in v0.49.0
func (s *SQLStore) Radio(ctx context.Context) model.RadioRepository
func (*SQLStore) Resource ¶
func (s *SQLStore) Resource(ctx context.Context, m interface{}) model.ResourceRepository
func (*SQLStore) ScrobbleBuffer ¶ added in v0.45.0
func (s *SQLStore) ScrobbleBuffer(ctx context.Context) model.ScrobbleBufferRepository
func (*SQLStore) Share ¶ added in v0.44.0
func (s *SQLStore) Share(ctx context.Context) model.ShareRepository
func (*SQLStore) Transcoding ¶
func (s *SQLStore) Transcoding(ctx context.Context) model.TranscodingRepository
Source Files ¶
- album_repository.go
- artist_repository.go
- genre_repository.go
- helpers.go
- mediafile_repository.go
- mediafolders_repository.go
- persistence.go
- player_repository.go
- playlist_repository.go
- playlist_track_repository.go
- playqueue_repository.go
- property_repository.go
- radio_repository.go
- scrobble_buffer_repository.go
- share_repository.go
- sql_annotations.go
- sql_base_repository.go
- sql_bookmarks.go
- sql_genres.go
- sql_restful.go
- sql_search.go
- transcoding_repository.go
- user_props_repository.go
- user_repository.go
Click to show internal directories.
Click to hide internal directories.