Documentation ¶
Index ¶
- type Store
- func (s *Store) AddSHOUTcastGenre(genre string) error
- func (s *Store) AddSHOUTcastStation(station shoutcastcom.Station) error
- func (s *Store) AddTuneInGenre(genre tunein.Genre) error
- func (s *Store) AddTuneInStation(station tunein.Station) error
- func (s *Store) Close()
- func (s *Store) EnsureIndex(ctx context.Context, c *mongo.Collection, keys []string, ...) error
- func (s *Store) GetSHOUTcastGenres() ([]string, error)
- func (s *Store) Migrate()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store allows interaction with the discover.fm database
func (*Store) AddSHOUTcastGenre ¶
AddSHOUTcastGenre adds a roved SHOUTcast.com genre
func (*Store) AddSHOUTcastStation ¶ added in v0.3.0
func (s *Store) AddSHOUTcastStation(station shoutcastcom.Station) error
AddSHOUTcastStation adds a roved SHOUTcast.com station
func (*Store) AddTuneInGenre ¶ added in v0.5.0
AddTuneInGenre adds a roved TuneIn genre
func (*Store) AddTuneInStation ¶ added in v0.5.0
AddTuneInStation adds a roved TuneIn station
func (*Store) Close ¶ added in v0.5.0
func (s *Store) Close()
Close closes the connection to the server
func (*Store) EnsureIndex ¶ added in v0.4.0
func (s *Store) EnsureIndex(ctx context.Context, c *mongo.Collection, keys []string, opts *options.IndexOptions) error
EnsureIndex will ensure the index model provided is on the given collection.
func (*Store) GetSHOUTcastGenres ¶
GetSHOUTcastGenres gets the roved SHOUTcast.com genres
Click to show internal directories.
Click to hide internal directories.