Documentation ¶
Index ¶
- type SnippetStore
- func (store *SnippetStore) DeleteFileFromS3(fileID string) error
- func (store *SnippetStore) DeletePost(pk string, sk string) error
- func (store *SnippetStore) GetFileContentFromS3(fileID string) (string, error)
- func (store *SnippetStore) GetPost(postSK string) models.Post
- func (store *SnippetStore) GetPostsByUser(postPK string) ([]models.Post, error)
- func (store *SnippetStore) GetUser(pk string, sk string) models.User
- func (store *SnippetStore) PutPost(post models.Post) error
- func (store *SnippetStore) PutUser(user models.User) error
- func (store *SnippetStore) UploadFileToS3(file io.Reader, key string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SnippetStore ¶
type SnippetStore struct {
// contains filtered or unexported fields
}
func NewSnippetStore ¶
func (*SnippetStore) DeleteFileFromS3 ¶
func (store *SnippetStore) DeleteFileFromS3(fileID string) error
func (*SnippetStore) DeletePost ¶
func (store *SnippetStore) DeletePost(pk string, sk string) error
func (*SnippetStore) GetFileContentFromS3 ¶
func (store *SnippetStore) GetFileContentFromS3(fileID string) (string, error)
func (*SnippetStore) GetPostsByUser ¶
func (store *SnippetStore) GetPostsByUser(postPK string) ([]models.Post, error)
func (*SnippetStore) UploadFileToS3 ¶
func (store *SnippetStore) UploadFileToS3(file io.Reader, key string) error
Click to show internal directories.
Click to hide internal directories.