Documentation ¶
Index ¶
- Constants
- type Affiliation
- type Author
- type Citation
- type Collection
- func (collection *Collection) Decode(results interface{}) error
- func (collection *Collection) Drop(ctx context.Context) error
- func (collection *Collection) Filter(key string, filter interface{}) *Search
- func (collection *Collection) Insert(item interface{}) error
- func (collection *Collection) Project(includeFields ...string) *Projection
- func (collection *Collection) Search() *Search
- type Connection
- type DatabaseInfo
- type Department
- type Faculty
- type Pending
- type Projection
- type Record
- type Search
- type Status
- type Strength
- type Theme
Constants ¶
View Source
const ( META = "__dbinfo__" DEPARTMENTS = "Departments" FACULTY = "Faculty" CITATIONS = "Citations" THEMES = "Themes" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Affiliation ¶
type Collection ¶
type Collection struct {
// contains filtered or unexported fields
}
func (*Collection) Decode ¶
func (collection *Collection) Decode(results interface{}) error
func (*Collection) Filter ¶
func (collection *Collection) Filter(key string, filter interface{}) *Search
func (*Collection) Insert ¶
func (collection *Collection) Insert(item interface{}) error
func (*Collection) Project ¶
func (collection *Collection) Project(includeFields ...string) *Projection
func (*Collection) Search ¶
func (collection *Collection) Search() *Search
type Connection ¶
type Connection struct { Departments *Collection Faculty *Collection Citations *Collection Themes *Collection // contains filtered or unexported fields }
func Connect ¶
func Connect() *Connection
func (*Connection) Disconnect ¶
func (conn *Connection) Disconnect(ctx context.Context) error
func (*Connection) LoadCitations ¶
func (db *Connection) LoadCitations(citationsJSON io.Reader)
func (*Connection) LoadFaculty ¶
func (db *Connection) LoadFaculty(facultyCSV io.Reader)
func (*Connection) LoadThemes ¶
func (db *Connection) LoadThemes(themesXML io.Reader)
type DatabaseInfo ¶
type Department ¶
type Projection ¶
type Projection Search
func (*Projection) Decode ¶
func (projection *Projection) Decode(results interface{}) error
type Search ¶
type Search struct {
// contains filtered or unexported fields
}
func (*Search) Project ¶
func (search *Search) Project(fields ...string) *Projection
Click to show internal directories.
Click to hide internal directories.