Documentation ¶
Index ¶
Constants ¶
View Source
const ChapterCollection = "chapters"
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 { FetchProjectChapters( userId string, projectId string, ) (map[string]record.ChapterEntry, *Error) InsertChapter( projectId string, entry record.ChapterWithoutAutofieldEntry, ) (string, *record.ChapterEntry, *Error) UpdateChapter( projectId string, chapterId string, entry record.ChapterWithoutAutofieldEntry, ) (*record.ChapterEntry, *Error) }
func NewChapterRepository ¶
func NewChapterRepository(client firestore.Client) ChapterRepository
type PaperRepository ¶
type PaperRepository interface { FetchPaper( userId string, projectId string, chapterId string, ) (*record.PaperEntry, *Error) InsertPaper( projectId string, chapterId string, entry record.PaperWithoutAutofieldEntry, ) (string, *record.PaperEntry, *Error) UpdatePaper( 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( entry record.ProjectWithoutAutofieldEntry, ) (string, *record.ProjectEntry, *Error) UpdateProject( 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.