Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrCanNotGetUser = errors.New("could not get user from context")
)
Functions ¶
This section is empty.
Types ¶
type Handlers ¶
type Handlers struct {
// contains filtered or unexported fields
}
func (*Handlers) CreateTweet ¶
func (*Handlers) DeleteTweet ¶
func (*Handlers) FindTweetById ¶
func (*Handlers) UpdateTweet ¶
type Service ¶
type Service 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) (string, error) }
Click to show internal directories.
Click to hide internal directories.