Documentation
¶
Index ¶
- func NewSQLiteDB(file string) (*sql.DB, error)
- type IndexedStore
- type RawStore
- func (s *RawStore) CountVideos(ctx context.Context, ids []string) (int, error)
- func (s *RawStore) DumpChannels(ctx context.Context) chu.ReadChan[*youtube.Channel]
- func (s *RawStore) DumpVideos(ctx context.Context) chu.ReadChan[*youtube.SearchResult]
- func (s *RawStore) ListChannelIDs(ctx context.Context, channelIDs []string) ([]string, error)
- func (s *RawStore) Prepare(ctx context.Context) error
- func (s *RawStore) WriteChannels(ctx context.Context, fetchedAt time.Time, channels []*youtube.Channel) error
- func (s *RawStore) WriteVideos(ctx context.Context, videos []*youtube.SearchResult) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type IndexedStore ¶
type IndexedStore struct {
// contains filtered or unexported fields
}
func NewIndexedStore ¶
func NewIndexedStore(db *sql.DB) *IndexedStore
func (*IndexedStore) DumpVideos ¶
func (*IndexedStore) WriteVideos ¶
type RawStore ¶
type RawStore struct {
// contains filtered or unexported fields
}
func NewRawStore ¶
func (*RawStore) CountVideos ¶
func (*RawStore) DumpChannels ¶
func (*RawStore) DumpVideos ¶
func (*RawStore) ListChannelIDs ¶
func (*RawStore) WriteChannels ¶
Click to show internal directories.
Click to hide internal directories.