Documentation ¶
Index ¶
Constants ¶
View Source
const ArticleKind = "Article"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Article ¶
type Article struct { ID int64 UserId int64 `datastore:"user_id"` Title string `datastore:"title"` Number int64 Message string Category string Url string MdGcsPath string Attachments []*Attachment MDBody string `datastore:",noindex"` CreatedAt time.Time UpdatedAt time.Time }
func NewArticle ¶
type ArticleRepository ¶
type ArticleRepository interface { Get(id int64) (*Article, error) Put(*Article) (int64, error) Delete(id int64) error }
func NewArticleRepository ¶
func NewArticleRepository(dsClient *datastore.Client) ArticleRepository
type Attachment ¶
func NewAttachment ¶
func NewAttachment(id, name string, url string) *Attachment
Directories ¶
Path | Synopsis |
---|---|
Package mock_entity is a generated GoMock package.
|
Package mock_entity is a generated GoMock package. |
Click to show internal directories.
Click to hide internal directories.