mongo

package
v0.0.0-...-c75db07 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2019 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NoteService

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

func NewNoteService

func NewNoteService(session *Session, dbName string, collectionName string) *NoteService

func (*NoteService) BatchNotesFetcher

func (p *NoteService) BatchNotesFetcher()

func (*NoteService) Create

func (p *NoteService) Create(u *root.Note) error

func (*NoteService) GetByNoteAddress

func (p *NoteService) GetByNoteAddress(address string) (*root.Note, error)

func (*NoteService) GetByNoteID

func (p *NoteService) GetByNoteID(id string) (*root.Note, error)

func (*NoteService) ListNotes

func (p *NoteService) ListNotes(nsr root.NoteSearch) ([]*root.Note, int, error)

func (*NoteService) NotesFetcher

func (p *NoteService) NotesFetcher()

func (*NoteService) NotesFixer

func (p *NoteService) NotesFixer()

func (*NoteService) Remove

func (p *NoteService) Remove(id string) error

func (*NoteService) Update

func (p *NoteService) Update(u *root.Note) error

type Session

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

func NewSession

func NewSession(url string) (*Session, error)

func (*Session) Close

func (s *Session) Close()

func (*Session) Copy

func (s *Session) Copy() *Session

func (*Session) DropDatabase

func (s *Session) DropDatabase(db string) error

func (*Session) GetCollection

func (s *Session) GetCollection(db string, col string) *mgo.Collection

Jump to

Keyboard shortcuts

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