Documentation ¶
Index ¶
- func ComposeOAuth2Google(url string) *resources.OAuth2Google200Response
- func ComposePostHeaderListResponse(headers []data.PostHeader, r *http.Request) (*resources.GetConfirmedPostsHeaders200Response, error)
- func ComposePostsAmount(amount int64) *resources.GetPostsAmount200Response
- func ComposeStarredPostHeaderListResponse(headers []data.PostHeader, usersQ data.Users) (*resources.GetConfirmedPostsHeaders200Response, error)
- func ConvertToAuthTokenResource(access string, expiresAt int64) *resources.AuthToken
- type AuthTokenResponse
- type EmailResponse
- type PostKeyResponse
- type PostWithUserResponse
- type UserResponse
- type UserWithAuthTokenResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ComposeOAuth2Google ¶
func ComposeOAuth2Google(url string) *resources.OAuth2Google200Response
func ComposePostHeaderListResponse ¶
func ComposePostHeaderListResponse( headers []data.PostHeader, r *http.Request, ) (*resources.GetConfirmedPostsHeaders200Response, error)
func ComposePostsAmount ¶
func ComposePostsAmount(amount int64) *resources.GetPostsAmount200Response
func ComposeStarredPostHeaderListResponse ¶
func ComposeStarredPostHeaderListResponse( headers []data.PostHeader, usersQ data.Users, ) (*resources.GetConfirmedPostsHeaders200Response, error)
Types ¶
type AuthTokenResponse ¶
func ComposeAuthToken ¶
func ComposeAuthToken(authToken *resources.AuthToken) *AuthTokenResponse
type EmailResponse ¶
func ComposeEmail ¶
func ComposeEmail(email string) *EmailResponse
type PostKeyResponse ¶
func ComposePostKey ¶
func ComposePostKey(postID int64) *PostKeyResponse
type PostWithUserResponse ¶
type PostWithUserResponse struct { Data resources.Post `json:"data"` Included resources.CreatePost201ResponseIncludedInner `json:"included"` }
func ComposePostWithUser ¶
type UserResponse ¶
func ComposeUser ¶
func ComposeUser(user *data.User) *UserResponse
type UserWithAuthTokenResponse ¶
type UserWithAuthTokenResponse struct { Data resources.User `json:"data"` Included resources.Login200ResponseIncludedInner `json:"included"` }
func ComposeUserWithAuthToken ¶
func ComposeUserWithAuthToken(user *data.User, authToken *resources.AuthToken) *UserWithAuthTokenResponse
Click to show internal directories.
Click to hide internal directories.