Documentation ¶ Index ¶ type Comment type Storage Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Comment ¶ type Comment struct { ID int `json:"id"` ArticleID int `json:"article_id"` ParentID int `json:"parent_id"` Author string `json:"author"` Text string `json:"text"` PubTime int64 `json:"pub_time"` } type Storage ¶ type Storage interface { AddComment(ctx context.Context, comment Comment) (int, error) GetCommentsByArticleID(ctx context.Context, articleID int) ([]Comment, error) DeleteComment(ctx context.Context, commentID int) error } Source Files ¶ View all Source files contract.go Directories ¶ Show internal Expand all Path Synopsis pg Click to show internal directories. Click to hide internal directories.