Documentation ¶
Index ¶
- type AccountStore
- type PostStore
- func (s PostStore) Create(post *yoblog.Post) (postID string, err error)
- func (s PostStore) CreateComment(comment *yoblog.Comment) (commentID string, err error)
- func (s PostStore) Delete(id string) (err error)
- func (s PostStore) GetAll() (posts []yoblog.Post, err error)
- func (s PostStore) GetByID(id string) (post yoblog.Post, err error)
- func (s PostStore) GetByOwnerID(ownerID string) (posts []yoblog.Post, err error)
- func (s PostStore) GetPostComments(postID string) (comments []yoblog.Comment, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountStore ¶
type AccountStore struct {
// contains filtered or unexported fields
}
AccountStore implement yoblog.AccountStore interface
func NewAccountStore ¶
func NewAccountStore(db *sqlx.DB) AccountStore
NewAccountStore create new store.User
func (AccountStore) Create ¶
func (a AccountStore) Create(account *yoblog.Account) (accountID string, err error)
Create implement AccountStore.Create
func (AccountStore) Delete ¶
func (a AccountStore) Delete(id string) (err error)
Delete implement AccountStore.Delete
type PostStore ¶
type PostStore struct {
// contains filtered or unexported fields
}
PostStore implement yoblog.PostStore
func (PostStore) CreateComment ¶
func (PostStore) GetByOwnerID ¶
Click to show internal directories.
Click to hide internal directories.