Documentation ¶
Index ¶
- type API
- func (api *API) CreateOrLoginUserWithGoogle(context *gin.Context)
- func (api *API) DeleteTweet(context *gin.Context)
- func (api *API) Feed(context *gin.Context)
- func (api *API) FollowUser(context *gin.Context)
- func (api *API) GetGoogleAuthorizationURL(context *gin.Context)
- func (api *API) GetTweet(context *gin.Context)
- func (api *API) GetUser(context *gin.Context)
- func (api *API) LikeTweet(context *gin.Context)
- func (api *API) LoginUser(context *gin.Context)
- func (api *API) PostTweet(context *gin.Context)
- func (api *API) RefreshAuthToken(context *gin.Context)
- func (api *API) RegisterUser(context *gin.Context)
- func (api *API) Search(context *gin.Context)
- func (api *API) UnfollowUser(context *gin.Context)
- func (api *API) UnlikeTweet(context *gin.Context)
- func (api *API) UserFollowees(context *gin.Context)
- func (api *API) UserFollowers(context *gin.Context)
- func (api *API) UserTweets(context *gin.Context)
- type APIProvider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct {
// contains filtered or unexported fields
}
Struct that implements APIProvider
func (*API) CreateOrLoginUserWithGoogle ¶
func (*API) DeleteTweet ¶
func (*API) FollowUser ¶
func (*API) GetGoogleAuthorizationURL ¶
func (*API) RefreshAuthToken ¶
func (*API) RegisterUser ¶
func (*API) UnfollowUser ¶
func (*API) UnlikeTweet ¶
func (*API) UserFollowees ¶
func (*API) UserFollowers ¶
func (*API) UserTweets ¶
type APIProvider ¶
type APIProvider interface { RegisterUser(context *gin.Context) LoginUser(context *gin.Context) RefreshAuthToken(context *gin.Context) GetGoogleAuthorizationURL(context *gin.Context) CreateOrLoginUserWithGoogle(context *gin.Context) GetTweet(context *gin.Context) PostTweet(context *gin.Context) DeleteTweet(context *gin.Context) LikeTweet(context *gin.Context) UnlikeTweet(context *gin.Context) Feed(context *gin.Context) GetUser(context *gin.Context) FollowUser(context *gin.Context) UnfollowUser(context *gin.Context) UserFollowers(context *gin.Context) UserFollowees(context *gin.Context) UserTweets(context *gin.Context) Search(context *gin.Context) }
func New ¶
func New( service service.ServiceProvider, tokenManager token.Manager, authorizationGoogleConfig config.AuthorizationGoogleConfigProvider, ) APIProvider
Constructs an API object that uses given ServiceProvider.
Click to show internal directories.
Click to hide internal directories.