Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Issue ¶
type Issue struct { ID int64 `db:"id"` Title string `db:"title"` Description string `db:"description"` ProjectID int64 `db:"project_id"` OwnerID int64 `db:"owner_id"` Status Status `db:"status"` Priority Priority `db:"priority"` }
Issue represents a Project task
type IssueRepository ¶
type IssueRepository interface { GetById(id int64) (*Issue, error) All() ([]*Issue, error) Create(issue *Issue) error Delete(id int64) error }
IssueRepository contains methods to handles issue database operations
type IssueService ¶
type IssueService interface { Issue(id int64) (*Issue, error) Issues() ([]*Issue, error) Create(issue *Issue) error Delete(id int64) error }
IssueService contains methods do Handle issue model
type ProjectRepository ¶
type ProjectRepository interface { GetByID(id int64) (*Project, error) All() ([]*Project, error) Create(p *Project) error Delete(id int64) error }
ProjectRepository is a repository which interact with the database layer
type ProjectService ¶
type ProjectService interface { Project(id int64) (*Project, error) Projects() ([]*Project, error) Create(p *Project) error Delete(id int64) error }
ProjectService is an interface to handle projects
Click to show internal directories.
Click to hide internal directories.