Documentation ¶
Index ¶
- type Postgres
- type Redis
- type Services
- func (s *Services) CreateTweet(ctx context.Context, username, content string) (*models.Tweet, error)
- func (s *Services) DeleteTweet(ctx context.Context, id string) (string, error)
- func (s *Services) FindTweetById(ctx context.Context, id string) (*models.Tweet, error)
- func (s *Services) UpdateTweet(ctx context.Context, id, content string) (*models.Tweet, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Postgres ¶
type Postgres interface { FindTweetById(ctx context.Context, id string) (*models.Tweet, error) CreateTweet(ctx context.Context, username, content string) (*models.Tweet, error) UpdateTweet(ctx context.Context, id, content string) (*models.Tweet, error) DeleteTweet(ctx context.Context, id string) error }
type Services ¶
type Services struct {
// contains filtered or unexported fields
}
func (*Services) CreateTweet ¶
func (*Services) DeleteTweet ¶
func (*Services) FindTweetById ¶
Click to show internal directories.
Click to hide internal directories.