mongodb

package
v0.0.0-...-a560954 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 11, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	*mongo.Client
	// contains filtered or unexported fields
}

func NewEpisode

func NewEpisode(cli *mongo.Client, db string) *Client

func NewSeason

func NewSeason(cli *mongo.Client, db string) *Client

func NewSeries

func NewSeries(cli *mongo.Client, db string) *Client

func (*Client) GetEpisode

func (c *Client) GetEpisode(ctx context.Context, id string) (model.Episode, error)

func (*Client) GetEpisodeWithSeq

func (c *Client) GetEpisodeWithSeq(ctx context.Context, seriesID, seasonID string, seq int32) (model.Episode, error)

func (*Client) GetSeason

func (c *Client) GetSeason(ctx context.Context, seasonID string) (model.Season, error)

func (*Client) GetSeries

func (c *Client) GetSeries(ctx context.Context, id string) (model.Series, error)

func (*Client) ListEpisodesBySeason

func (c *Client) ListEpisodesBySeason(ctx context.Context, seasonID string) ([]model.Episode, error)

func (*Client) ListSeasonsBySeries

func (c *Client) ListSeasonsBySeries(ctx context.Context, seriesID string) ([]model.Season, error)

func (*Client) ListSeries

func (c *Client) ListSeries(ctx context.Context, limit int, since string) ([]model.Series, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL