Documentation ¶
Index ¶
- type NoteService
- func (p *NoteService) BatchNotesFetcher()
- func (p *NoteService) Create(u *root.Note) error
- func (p *NoteService) GetByNoteAddress(address string) (*root.Note, error)
- func (p *NoteService) GetByNoteID(id string) (*root.Note, error)
- func (p *NoteService) ListNotes(nsr root.NoteSearch) ([]*root.Note, int, error)
- func (p *NoteService) NotesFetcher()
- func (p *NoteService) NotesFixer()
- func (p *NoteService) Remove(id string) error
- func (p *NoteService) Update(u *root.Note) error
- type Session
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) 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
type Session ¶
type Session struct {
// contains filtered or unexported fields
}
func NewSession ¶
func (*Session) DropDatabase ¶
func (*Session) GetCollection ¶
func (s *Session) GetCollection(db string, col string) *mgo.Collection
Click to show internal directories.
Click to hide internal directories.