Documentation ¶
Index ¶
Constants ¶
View Source
const ChapterCollection = "chapters"
View Source
const GraphCollection = "graphs"
View Source
const PaperCollection = "papers"
View Source
const ProjectCollection = "projects"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChapterRepository ¶
type ChapterRepository interface { FetchChapters( userId string, projectId string, ) (map[string]record.ChapterEntry, *Error) FetchChapter( userId string, projectId string, chapterId string, ) (*record.ChapterEntry, *Error) InsertChapter( userId string, projectId string, entry record.ChapterWithoutAutofieldEntry, ) (string, *record.ChapterEntry, *Error) UpdateChapter( userId string, projectId string, chapterId string, entry record.ChapterWithoutAutofieldEntry, ) (*record.ChapterEntry, *Error) UpdateChapterSections( userId string, projectId string, chapterId string, entries []record.SectionWithoutAutofieldEntry, ) ([]record.SectionEntry, *Error) }
func NewChapterRepository ¶
func NewChapterRepository(client firestore.Client) ChapterRepository
type GraphRepository ¶
type GraphRepository interface { GraphExists( userId string, projectId string, chapterId string, ) (bool, *Error) FetchGraph( userId string, projectId string, chapterId string, sectionId string, ) (*record.GraphEntry, *Error) InsertGraphs( userId string, projectId string, chapterId string, entries []record.GraphWithoutAutofieldEntry, ) ([]string, []record.GraphEntry, *Error) UpdateGraphContent( userId string, projectId string, chapterId string, sectionId string, entry record.GraphContentWithoutAutofieldEntry, ) (*record.GraphContentEntry, *Error) }
func NewGraphRepository ¶
func NewGraphRepository(client firestore.Client) GraphRepository
type PaperRepository ¶
type PaperRepository interface { FetchPaper( userId string, projectId string, chapterId string, ) (*record.PaperEntry, *Error) InsertPaper( userId string, projectId string, chapterId string, entry record.PaperWithoutAutofieldEntry, ) (string, *record.PaperEntry, *Error) UpdatePaper( userId string, projectId string, chapterId string, entry record.PaperWithoutAutofieldEntry, ) (*record.PaperEntry, *Error) }
func NewPaperRepository ¶
func NewPaperRepository(client firestore.Client) PaperRepository
type ProjectRepository ¶
type ProjectRepository interface { FetchProjects( userId string, ) (map[string]record.ProjectEntry, *Error) FetchProject( userId string, projectId string, ) (*record.ProjectEntry, *Error) InsertProject( userId string, entry record.ProjectWithoutAutofieldEntry, ) (string, *record.ProjectEntry, *Error) UpdateProject( userId string, projectId string, entry record.ProjectWithoutAutofieldEntry, ) (*record.ProjectEntry, *Error) }
func NewProjectRepository ¶
func NewProjectRepository(client firestore.Client) ProjectRepository
Click to show internal directories.
Click to hide internal directories.