Documentation ¶
Index ¶
- type Repo
- func (repo *Repo) Create(post model.BlogPost) (model.BlogPost, error)
- func (repo *Repo) Delete(id string) (bool, error)
- func (repo *Repo) Get(id string) (model.BlogPost, bool, error)
- func (repo *Repo) GetAll(pageSize int64) ([]model.BlogPost, error)
- func (repo *Repo) GetMore(lastID string, pageSize int64) ([]model.BlogPost, error)
- func (repo *Repo) Update(revision int64, post model.BlogPost) (model.BlogPost, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repo ¶
type Repo struct {
// contains filtered or unexported fields
}
Repo represents a repository for blog posts that uses DynamoDB.
Click to show internal directories.
Click to hide internal directories.