mongodb

package
v0.0.0-...-09d31aa Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2022 License: ISC Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DisableFixes bool

Functions

This section is empty.

Types

type MongoDB

type MongoDB struct {
	// contains filtered or unexported fields
}

func Init

func Init(cfg config.Database) (*MongoDB, error)

Init initializes the mongodb database

func (*MongoDB) Changes

func (m *MongoDB) Changes() repositories.ChangeRepository

func (*MongoDB) Channels

func (m *MongoDB) Channels() repositories.ChannelRepository

func (*MongoDB) Chapters

func (m *MongoDB) Chapters() repositories.ChapterRepository

func (*MongoDB) Characters

func (m *MongoDB) Characters() repositories.CharacterRepository

func (*MongoDB) Close

func (m *MongoDB) Close(ctx context.Context) error

func (*MongoDB) Comments

func (m *MongoDB) Comments() repositories.CommentRepository

func (*MongoDB) Files

func (m *MongoDB) Files() repositories.FileRepository

func (*MongoDB) Keys

func (*MongoDB) Logs

func (*MongoDB) Posts

func (m *MongoDB) Posts() repositories.PostRepository

func (*MongoDB) Stories

func (m *MongoDB) Stories() repositories.StoryRepository

func (*MongoDB) Tags

func (*MongoDB) Users

func (m *MongoDB) Users() repositories.UserRepository

Jump to

Keyboard shortcuts

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