Documentation ¶
Index ¶
- type AcceptFriendRequestRequest
- type AcceptFriendRequestResponse
- type AuthTokenResponse
- type AuthenticateThroughTelergamRequest
- type Author
- type BasicResponse
- type CheckDialogRequest
- type Comment
- type Community
- type CommunityProfile
- type CreateChatRequest
- type CreateChatResponse
- type CreateCommentRequest
- type CreateCommentResponse
- type CreateCommunityRequest
- type CreateCommunityResponse
- type CreatePostCommunityRequest
- type CreatePostCommunityResponse
- type CreatePostRequest
- type CreatePostResponse
- type DeleteCommentRequest
- type DeleteCommentResponse
- type DeleteCommunityRequest
- type DeleteCommunityResponse
- type DeleteFriendRequest
- type DeleteFriendResponse
- type DeletePostCommunityRequest
- type DeletePostCommunityResponse
- type DeletePostRequest
- type DeletePostResponse
- type Dialog
- type EditCommentRequest
- type EditCommentResponse
- type EditCommunityRequest
- type EditCommunityResponse
- type EditPostCommunityRequest
- type EditPostCommunityResponse
- type EditPostRequest
- type EditPostResponse
- type EditProfile
- type EditProfileRequest
- type EditProfileResponse
- type ErrorResponse
- type GetCommentsRequest
- type GetCommentsResponse
- type GetCommunitiesRequest
- type GetCommunitiesResponse
- type GetCommunityPostsRequest
- type GetCommunityPostsResponse
- type GetCommunityRequest
- type GetCommunityResponse
- type GetDialogByUserIDRequest
- type GetDialogByUserIDResponse
- type GetDialogRequest
- type GetDialogResponse
- type GetDialogsRequest
- type GetDialogsResponse
- type GetFileRequest
- type GetFollowersRequest
- type GetFollowersResponse
- type GetFriendsRequest
- type GetFriendsResponse
- type GetIncomingRequestsRequest
- type GetIncomingRequestsResponse
- type GetLikePhotoRequest
- type GetLikePhotoResponse
- type GetLikePostRequest
- type GetLikePostResponse
- type GetMutualFriendsRequest
- type GetMutualFriendsResponse
- type GetOutcomingRequestsRequest
- type GetOutcomingRequestsResponse
- type GetPostRequest
- type GetPostResponse
- type GetPosts
- type GetProfileRequest
- type GetProfileResponse
- type GetUserCommunitiesRequest
- type GetUserCommunitiesResponse
- type GetUserFeedRequest
- type GetUserFeedResponse
- type GetUserManageCommunitiesRequest
- type GetUserManageCommunitiesResponse
- type GetUserPostsRequest
- type GetUserPostsResponse
- type GetUserRequest
- type GetUserResponse
- type IncreaseLikeRequest
- type IncreaseLikeResponse
- type JoinCommunityRequest
- type JoinCommunityResponse
- type LeaveCommunityRequest
- type LeaveCommunityResponse
- type Like
- type LoginUserRequest
- type LoginUserResponse
- type Message
- type MessageInfo
- type Post
- type ReadMessageRequest
- type ReadMessageResponse
- type ReduceLikeRequest
- type ReduceLikeResponse
- type RevokeFriendRequestRequest
- type RevokeFriendRequestResponse
- type SearchCommunitiesRequest
- type SearchCommunitiesResponse
- type SearchUsersRequest
- type SearchUsersResponse
- type SendFriendRequestRequest
- type SendFriendRequestResponse
- type SendMessageRequest
- type SendMessageResponse
- type SignupUserRequest
- type SignupUserResponse
- type UpdatePhotoCommunityRequest
- type UpdatePhotoCommunityResponse
- type UpdatePhotoRequest
- type UpdatePhotoResponse
- type UploadFileResponse
- type UploadImageResponse
- type User
- type UserProfile
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AcceptFriendRequestResponse ¶
type AcceptFriendRequestResponse BasicResponse
type AuthTokenResponse ¶
type BasicResponse ¶
type BasicResponse struct{}
type CheckDialogRequest ¶
type Community ¶
type Community struct { ID string `json:"id"` Name string `json:"name"` Info string `json:"info"` Image string `json:"image"` }
Only used in responses! Does not need validation.
type CommunityProfile ¶
type CommunityProfile struct { ID string `json:"id"` Name string `json:"name"` Image string `json:"image"` Info string `json:"info"` Followers int64 `json:"followers"` Admins []User `json:"admins"` }
Only used in responses! Does not need validation.
type CreateChatRequest ¶
type CreateChatResponse ¶
type CreateChatResponse struct {
DialogID string `json:"dialog_id"`
}
type CreateCommentRequest ¶
type CreateCommentResponse ¶
type CreateCommentResponse BasicResponse
type CreateCommunityRequest ¶
type CreateCommunityResponse ¶
type CreateCommunityResponse BasicResponse
type CreatePostCommunityResponse ¶
type CreatePostCommunityResponse BasicResponse
type CreatePostRequest ¶
type CreatePostResponse ¶
type CreatePostResponse BasicResponse
type DeleteCommentRequest ¶
type DeleteCommentResponse ¶
type DeleteCommentResponse struct{}
type DeleteCommunityRequest ¶
type DeleteCommunityRequest struct {
CommunityID string `query:"community_id"`
}
type DeleteCommunityResponse ¶
type DeleteCommunityResponse BasicResponse
type DeleteFriendRequest ¶
type DeleteFriendResponse ¶
type DeleteFriendResponse BasicResponse
type DeletePostCommunityResponse ¶
type DeletePostCommunityResponse struct{}
type DeletePostRequest ¶
type DeletePostRequest struct {
PostID string `query:"post_id"`
}
type DeletePostResponse ¶
type DeletePostResponse struct{}
type EditCommentRequest ¶
type EditCommentResponse ¶
type EditCommentResponse BasicResponse
type EditCommunityRequest ¶
type EditCommunityResponse ¶
type EditCommunityResponse BasicResponse
type EditPostCommunityResponse ¶
type EditPostCommunityResponse BasicResponse
type EditPostRequest ¶
type EditPostResponse ¶
type EditPostResponse BasicResponse
type EditProfile ¶
type EditProfileRequest ¶
type EditProfileResponse ¶
type EditProfileResponse BasicResponse
type ErrorResponse ¶
type GetCommentsRequest ¶
type GetCommentsResponse ¶
type GetCommunitiesRequest ¶
type GetCommunitiesResponse ¶
type GetCommunityRequest ¶
type GetCommunityRequest struct {
CommunityID string `query:"community_id"`
}
type GetCommunityResponse ¶
type GetCommunityResponse struct {
Community CommunityProfile `json:"community,omitempty"`
}
type GetDialogByUserIDRequest ¶
type GetDialogByUserIDRequest struct {
UserID string `query:"user_id"`
}
type GetDialogByUserIDResponse ¶
type GetDialogByUserIDResponse struct {
DialogID string `json:"dialog_id"`
}
type GetDialogRequest ¶
type GetDialogResponse ¶
type GetDialogResponse struct { Dialog Dialog `json:"dialog"` Messages []MessageInfo `json:"messages"` Total int64 `json:"total"` AmountPages int64 `json:"amount_pages"` }
type GetDialogsRequest ¶
type GetDialogsResponse ¶
type GetFileRequest ¶
type GetFileRequest struct {
URL string `query:"url" validate:"required"`
}
type GetFollowersRequest ¶
type GetFollowersResponse ¶
type GetFriendsRequest ¶
type GetFriendsResponse ¶
type GetFriendsResponse struct {
FriendIDs []string `json:"friend_ids"`
}
type GetIncomingRequestsRequest ¶
type GetIncomingRequestsRequest struct {
UserID string `header:"User-Id" validate:"required"`
}
type GetIncomingRequestsResponse ¶
type GetIncomingRequestsResponse struct {
RequestIDs []string `json:"request_ids"`
}
type GetLikePhotoRequest ¶
type GetLikePhotoRequest struct {
PhotoID string `query:"photo_id" validate:"required"`
}
type GetLikePhotoResponse ¶
type GetLikePhotoResponse struct {
Likes Like `json:"likes"`
}
type GetLikePostRequest ¶
type GetLikePostRequest struct {
PostID string `query:"post_id" validate:"required"`
}
type GetLikePostResponse ¶
type GetLikePostResponse struct {
Likes Like `json:"likes"`
}
type GetMutualFriendsRequest ¶
type GetOutcomingRequestsRequest ¶
type GetOutcomingRequestsRequest struct {
UserID string `header:"User-Id" validate:"required"`
}
type GetOutcomingRequestsResponse ¶
type GetOutcomingRequestsResponse struct {
RequestIDs []string `json:"request_ids"`
}
type GetPostRequest ¶
type GetPostRequest struct {
PostID string `query:"post_id" validate:"required"`
}
type GetPostResponse ¶
type GetProfileRequest ¶
type GetProfileRequest struct {
UserID string `query:"user_id"`
}
type GetProfileResponse ¶
type GetProfileResponse struct {
UserProfile UserProfile `json:"user_profile"`
}
type GetUserFeedRequest ¶
type GetUserFeedResponse ¶
type GetUserPostsRequest ¶
type GetUserPostsResponse ¶
type GetUserRequest ¶
type GetUserRequest struct {
UserID string `query:"user_id"`
}
type GetUserResponse ¶
type GetUserResponse struct {
User User `json:"user"`
}
type IncreaseLikeRequest ¶
type IncreaseLikeResponse ¶
type IncreaseLikeResponse BasicResponse
type JoinCommunityRequest ¶
type JoinCommunityRequest struct {
CommunityID string `query:"community_id" validate:"required"`
}
type JoinCommunityResponse ¶
type JoinCommunityResponse BasicResponse
type LeaveCommunityRequest ¶
type LeaveCommunityRequest struct {
CommunityID string `query:"community_id" validate:"required"`
}
type LeaveCommunityResponse ¶
type LeaveCommunityResponse BasicResponse
type Like ¶
type Like struct { Amount int64 `json:"amount"` MyLike bool `json:"my_like"` UserIDs []string `json:"user_ids,omitempty"` }
Only used in responses! Does not need validation.
type LoginUserRequest ¶
type LoginUserResponse ¶
type LoginUserResponse AuthTokenResponse
type Message ¶
type Message struct { ID string `json:"_id"` DialogID string `json:"dialog_id"` Event string `json:"event"` AuthorID string `json:"author_id"` DestinID string `json:"dst,omitempty"` Body string `json:"body"` Attachments []string `json:"attachments"` Images []string `json:"images"` CreatedAt int64 `json:"created_at"` }
Message for chat for wb
type MessageInfo ¶
type MessageInfo struct { AuthorID string `json:"author_id"` Body string `json:"body"` IsRead []core.IsRead `json:"is_read,omitempty"` Attachments []string `json:"attachments"` Images []string `json:"images"` CreatedAt int64 `json:"created_at"` }
Message for chat for giving
type ReadMessageRequest ¶
type ReadMessageRequest struct {
Message Message `json:"message"`
}
type ReadMessageResponse ¶
type ReadMessageResponse struct{}
type ReduceLikeRequest ¶
type ReduceLikeResponse ¶
type ReduceLikeResponse BasicResponse
type RevokeFriendRequestResponse ¶
type RevokeFriendRequestResponse BasicResponse
type SearchUsersRequest ¶
type SearchUsersResponse ¶
type SendFriendRequestResponse ¶
type SendFriendRequestResponse BasicResponse
type SendMessageRequest ¶
type SendMessageRequest struct {
Message Message `json:"message"`
}
type SendMessageResponse ¶
type SendMessageResponse struct{}
type SignupUserRequest ¶
type SignupUserResponse ¶
type SignupUserResponse AuthTokenResponse
type UpdatePhotoCommunityRequest ¶
type UpdatePhotoCommunityRequest struct {
CommunityID string `query:"community_id" validate:"required"`
}
type UpdatePhotoCommunityResponse ¶
type UpdatePhotoCommunityResponse struct {
URL string `json:"url"`
}
type UpdatePhotoRequest ¶
type UpdatePhotoRequest struct{}
type UpdatePhotoResponse ¶
type UpdatePhotoResponse struct {
URL string `json:"url"`
}
type UploadFileResponse ¶
type UploadFileResponse struct {
URL string `json:"url"`
}
type UploadImageResponse ¶
type UploadImageResponse struct {
URL string `json:"url"`
}
Click to show internal directories.
Click to hide internal directories.