Documentation ¶
Index ¶
Constants ¶
View Source
const ChapterCollection = "chapters"
View Source
const ProjectCollection = "projects"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChapterRepository ¶
type ChapterRepository interface {
FetchProjectChapters(projectId string) (map[string]record.ChapterEntry, *Error)
}
func NewChapterRepository ¶
func NewChapterRepository(client firestore.Client) ChapterRepository
type ProjectRepository ¶
type ProjectRepository interface { FetchUserProjects(userId string) (map[string]record.ProjectEntry, *Error) FetchProject(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.