repository

package
v0.0.0-...-c33e8bb Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IComic

type IComic interface {
	Find(name string) (model.Comic, error)
	FindByID(id primitive.ObjectID) (model.Comic, error)
	FindByName(context.Context, string) (model.Comic, error)
	FindAll(ctx context.Context, name string, first, offset int) ([]model.Comic, error)
	Insert(*model.Comic) error
	CreateIndex(context.Context) error
}

IComic ...

func NewComic

func NewComic(db external.MongoDatabase) IComic

NewComic ...

type IEpisode

type IEpisode interface {
	FindByNo(comicID primitive.ObjectID, no int) (*model.Episode, error)
	FindAll(ctx context.Context, comicID primitive.ObjectID, first, offset int) ([]model.Episode, error)
	Insert(*model.Episode) error
	CreateIndex(context.Context) error
}

IEpisode ...

func NewEpisode

func NewEpisode(db external.MongoDatabase) IEpisode

NewEpisode ...

type IPage

type IPage interface {
	FindByEpisodeSource(episodeID, sourceID primitive.ObjectID) (model.Page, error)
	FindByEpisode(ctx context.Context, episodeID primitive.ObjectID, first, offset int) ([]model.Page, error)
	Insert(*model.Page) error
	CreateIndex(context.Context) error
}

IPage ...

func NewPage

func NewPage(db external.MongoDatabase) IPage

NewPage ...

type ISource

type ISource interface {
	FindByID(id primitive.ObjectID) (model.Source, error)
	Insert(s *model.Source) error
}

ISource ...

func NewSource

func NewSource(db external.MongoDatabase) ISource

NewSource ...

type Interface

type Interface interface {
	CreateIndex(context.Context) error
}

Directories

Path Synopsis
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.

Jump to

Keyboard shortcuts

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