Documentation
¶
Index ¶
- func RegisterServices(s *grpc.Server)
- type ChatsServiceServer
- func (c *ChatsServiceServer) AddUsersToChat(ctx context.Context, addUsersReq *pb.AddUsersToChatRequest) (*pb.AddUsersToChatResponse, error)
- func (c *ChatsServiceServer) CreateChat(ctx context.Context, createReq *pb.CreateChatRequest) (*pb.CreateChatResponse, error)
- func (c *ChatsServiceServer) DeleteChat(ctx context.Context, deleteReq *pb.DeleteChatRequest) (*pb.DeleteChatResponse, error)
- func (c *ChatsServiceServer) GetChat(ctx context.Context, getReq *pb.GetChatRequest) (*pb.GetChatResponse, error)
- func (c *ChatsServiceServer) GetChatMessages(ctx context.Context, getMessagesReq *pb.GetChatMessagesRequest) (*pb.GetChatMessagesResponse, error)
- func (c *ChatsServiceServer) GetChatUserMessages(ctx context.Context, getUserMessagesReq *pb.GetChatUserMessagesRequest) (*pb.GetChatUserMessagesResponse, error)
- func (c *ChatsServiceServer) ListChats(ctx context.Context, listReq *pb.ListChatsRequest) (*pb.ListChatsResponse, error)
- type CommentsServiceServer
- func (c *CommentsServiceServer) CreateComment(ctx context.Context, createReq *pb.CreateCommentRequest) (*pb.CreateCommentResponse, error)
- func (c *CommentsServiceServer) DeleteComment(ctx context.Context, deleteReq *pb.DeleteCommentRequest) (*pb.DeleteCommentResponse, error)
- func (c *CommentsServiceServer) GetComment(ctx context.Context, getReq *pb.GetCommentRequest) (*pb.GetCommentResponse, error)
- func (c *CommentsServiceServer) ListComments(ctx context.Context, listReq *pb.ListCommentsRequest) (*pb.ListCommentsResponse, error)
- func (c *CommentsServiceServer) UpdateComment(ctx context.Context, updateReq *pb.UpdateCommentRequest) (*pb.UpdateCommentResponse, error)
- type MessagesServiceServer
- func (m *MessagesServiceServer) CreateMessage(ctx context.Context, createReq *pb.CreateMessageRequest) (*pb.CreateMessageResponse, error)
- func (m *MessagesServiceServer) DeleteMessage(ctx context.Context, deleteReq *pb.DeleteMessageRequest) (*pb.DeleteMessageResponse, error)
- func (m *MessagesServiceServer) GetMessage(ctx context.Context, getReq *pb.GetMessageRequest) (*pb.GetMessageResponse, error)
- func (m *MessagesServiceServer) ListMessages(ctx context.Context, listReq *pb.ListMessagesRequest) (*pb.ListMessagesResponse, error)
- func (m *MessagesServiceServer) UpdateMessage(ctx context.Context, updateReq *pb.UpdateMessageRequest) (*pb.UpdateMessageResponse, error)
- type PostsServiceServer
- func (p *PostsServiceServer) CreatePost(ctx context.Context, createReq *pb.CreatePostRequest) (*pb.CreatePostResponse, error)
- func (p *PostsServiceServer) DeletePost(ctx context.Context, deleteReq *pb.DeletePostRequest) (*pb.DeletePostResponse, error)
- func (p *PostsServiceServer) GetPost(ctx context.Context, getReq *pb.GetPostRequest) (*pb.GetPostResponse, error)
- func (p *PostsServiceServer) GetPostsComments(ctx context.Context, getCommentsReq *pb.GetPostsCommentsRequest) (*pb.GetPostsCommentsResponse, error)
- func (p *PostsServiceServer) ListPosts(ctx context.Context, listReq *pb.ListPostsRequest) (*pb.ListPostsResponse, error)
- func (p *PostsServiceServer) UpdatePost(ctx context.Context, updateReq *pb.UpdatePostRequest) (*pb.UpdatePostResponse, error)
- type RedisServiceServer
- func (rr *RedisServiceServer) Get(ctx context.Context, getReq *pb.GetRedisRecordRequest) (*pb.GetRedisRecordResponse, error)
- func (rr *RedisServiceServer) Ping(ctx context.Context, pingReq *pb.PingRequest) (*pb.PingResponse, error)
- func (rr *RedisServiceServer) Set(ctx context.Context, setReq *pb.SetRedisRecordRequest) (*pb.SetRedisRecordResponse, error)
- type UserServiceServer
- func (u *UserServiceServer) CreateUser(ctx context.Context, createReq *pb.CreateUserRequest) (*pb.CreateUserResponse, error)
- func (u *UserServiceServer) DeleteUser(ctx context.Context, deleteReq *pb.DeleteUserRequest) (*pb.DeleteUserResponse, error)
- func (u *UserServiceServer) GetUser(ctx context.Context, getReq *pb.GetUserRequest) (*pb.GetUserResponse, error)
- func (u *UserServiceServer) GetUsersComments(ctx context.Context, getCommentsReq *pb.GetUsersCommentsRequest) (*pb.ListCommentsResponse, error)
- func (u *UserServiceServer) GetUsersMessages(ctx context.Context, getMessagesReq *pb.GetUsersMessagesRequest) (*pb.ListMessagesResponse, error)
- func (u *UserServiceServer) GetUsersMessagesFromChat(ctx context.Context, getChatMessagesReq *pb.GetUsersMessagesFromChatRequest) (*pb.ListMessagesResponse, error)
- func (u *UserServiceServer) GetUsersPosts(ctx context.Context, getPostsReq *pb.GetUsersPostsRequest) (*pb.ListPostsResponse, error)
- func (u *UserServiceServer) ListUsers(ctx context.Context, listReq *pb.ListUsersRequest) (*pb.ListUsersResponse, error)
- func (u *UserServiceServer) UpdateUser(ctx context.Context, updateReq *pb.UpdateUserRequest) (*pb.UpdateUserResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterServices ¶
Types ¶
type ChatsServiceServer ¶
type ChatsServiceServer struct {
pb.UnimplementedChatsServiceServer
}
func (*ChatsServiceServer) AddUsersToChat ¶
func (c *ChatsServiceServer) AddUsersToChat(ctx context.Context, addUsersReq *pb.AddUsersToChatRequest) (*pb.AddUsersToChatResponse, error)
func (*ChatsServiceServer) CreateChat ¶
func (c *ChatsServiceServer) CreateChat(ctx context.Context, createReq *pb.CreateChatRequest) (*pb.CreateChatResponse, error)
func (*ChatsServiceServer) DeleteChat ¶
func (c *ChatsServiceServer) DeleteChat(ctx context.Context, deleteReq *pb.DeleteChatRequest) (*pb.DeleteChatResponse, error)
func (*ChatsServiceServer) GetChat ¶
func (c *ChatsServiceServer) GetChat(ctx context.Context, getReq *pb.GetChatRequest) (*pb.GetChatResponse, error)
func (*ChatsServiceServer) GetChatMessages ¶
func (c *ChatsServiceServer) GetChatMessages(ctx context.Context, getMessagesReq *pb.GetChatMessagesRequest) (*pb.GetChatMessagesResponse, error)
func (*ChatsServiceServer) GetChatUserMessages ¶
func (c *ChatsServiceServer) GetChatUserMessages(ctx context.Context, getUserMessagesReq *pb.GetChatUserMessagesRequest) (*pb.GetChatUserMessagesResponse, error)
func (*ChatsServiceServer) ListChats ¶
func (c *ChatsServiceServer) ListChats(ctx context.Context, listReq *pb.ListChatsRequest) (*pb.ListChatsResponse, error)
type CommentsServiceServer ¶
type CommentsServiceServer struct {
pb.UnimplementedCommentsServiceServer
}
func (*CommentsServiceServer) CreateComment ¶
func (c *CommentsServiceServer) CreateComment(ctx context.Context, createReq *pb.CreateCommentRequest) (*pb.CreateCommentResponse, error)
func (*CommentsServiceServer) DeleteComment ¶
func (c *CommentsServiceServer) DeleteComment(ctx context.Context, deleteReq *pb.DeleteCommentRequest) (*pb.DeleteCommentResponse, error)
func (*CommentsServiceServer) GetComment ¶
func (c *CommentsServiceServer) GetComment(ctx context.Context, getReq *pb.GetCommentRequest) (*pb.GetCommentResponse, error)
func (*CommentsServiceServer) ListComments ¶
func (c *CommentsServiceServer) ListComments(ctx context.Context, listReq *pb.ListCommentsRequest) (*pb.ListCommentsResponse, error)
func (*CommentsServiceServer) UpdateComment ¶
func (c *CommentsServiceServer) UpdateComment(ctx context.Context, updateReq *pb.UpdateCommentRequest) (*pb.UpdateCommentResponse, error)
type MessagesServiceServer ¶
type MessagesServiceServer struct {
pb.UnimplementedMessagesServiceServer
}
func (*MessagesServiceServer) CreateMessage ¶
func (m *MessagesServiceServer) CreateMessage(ctx context.Context, createReq *pb.CreateMessageRequest) (*pb.CreateMessageResponse, error)
func (*MessagesServiceServer) DeleteMessage ¶
func (m *MessagesServiceServer) DeleteMessage(ctx context.Context, deleteReq *pb.DeleteMessageRequest) (*pb.DeleteMessageResponse, error)
func (*MessagesServiceServer) GetMessage ¶
func (m *MessagesServiceServer) GetMessage(ctx context.Context, getReq *pb.GetMessageRequest) (*pb.GetMessageResponse, error)
func (*MessagesServiceServer) ListMessages ¶
func (m *MessagesServiceServer) ListMessages(ctx context.Context, listReq *pb.ListMessagesRequest) (*pb.ListMessagesResponse, error)
func (*MessagesServiceServer) UpdateMessage ¶
func (m *MessagesServiceServer) UpdateMessage(ctx context.Context, updateReq *pb.UpdateMessageRequest) (*pb.UpdateMessageResponse, error)
type PostsServiceServer ¶
type PostsServiceServer struct {
pb.UnimplementedPostsServiceServer
}
func (*PostsServiceServer) CreatePost ¶
func (p *PostsServiceServer) CreatePost(ctx context.Context, createReq *pb.CreatePostRequest) (*pb.CreatePostResponse, error)
func (*PostsServiceServer) DeletePost ¶
func (p *PostsServiceServer) DeletePost(ctx context.Context, deleteReq *pb.DeletePostRequest) (*pb.DeletePostResponse, error)
func (*PostsServiceServer) GetPost ¶
func (p *PostsServiceServer) GetPost(ctx context.Context, getReq *pb.GetPostRequest) (*pb.GetPostResponse, error)
func (*PostsServiceServer) GetPostsComments ¶
func (p *PostsServiceServer) GetPostsComments(ctx context.Context, getCommentsReq *pb.GetPostsCommentsRequest) (*pb.GetPostsCommentsResponse, error)
func (*PostsServiceServer) ListPosts ¶
func (p *PostsServiceServer) ListPosts(ctx context.Context, listReq *pb.ListPostsRequest) (*pb.ListPostsResponse, error)
func (*PostsServiceServer) UpdatePost ¶
func (p *PostsServiceServer) UpdatePost(ctx context.Context, updateReq *pb.UpdatePostRequest) (*pb.UpdatePostResponse, error)
type RedisServiceServer ¶
type RedisServiceServer struct {
pb.UnimplementedRedisServiceServer
}
func (*RedisServiceServer) Get ¶
func (rr *RedisServiceServer) Get(ctx context.Context, getReq *pb.GetRedisRecordRequest) (*pb.GetRedisRecordResponse, error)
func (*RedisServiceServer) Ping ¶
func (rr *RedisServiceServer) Ping(ctx context.Context, pingReq *pb.PingRequest) (*pb.PingResponse, error)
func (*RedisServiceServer) Set ¶
func (rr *RedisServiceServer) Set(ctx context.Context, setReq *pb.SetRedisRecordRequest) (*pb.SetRedisRecordResponse, error)
type UserServiceServer ¶
type UserServiceServer struct {
pb.UnimplementedUserServiceServer
}
func (*UserServiceServer) CreateUser ¶
func (u *UserServiceServer) CreateUser(ctx context.Context, createReq *pb.CreateUserRequest) (*pb.CreateUserResponse, error)
func (*UserServiceServer) DeleteUser ¶
func (u *UserServiceServer) DeleteUser(ctx context.Context, deleteReq *pb.DeleteUserRequest) (*pb.DeleteUserResponse, error)
func (*UserServiceServer) GetUser ¶
func (u *UserServiceServer) GetUser(ctx context.Context, getReq *pb.GetUserRequest) (*pb.GetUserResponse, error)
func (*UserServiceServer) GetUsersComments ¶
func (u *UserServiceServer) GetUsersComments(ctx context.Context, getCommentsReq *pb.GetUsersCommentsRequest) (*pb.ListCommentsResponse, error)
func (*UserServiceServer) GetUsersMessages ¶
func (u *UserServiceServer) GetUsersMessages(ctx context.Context, getMessagesReq *pb.GetUsersMessagesRequest) (*pb.ListMessagesResponse, error)
func (*UserServiceServer) GetUsersMessagesFromChat ¶
func (u *UserServiceServer) GetUsersMessagesFromChat(ctx context.Context, getChatMessagesReq *pb.GetUsersMessagesFromChatRequest) (*pb.ListMessagesResponse, error)
func (*UserServiceServer) GetUsersPosts ¶
func (u *UserServiceServer) GetUsersPosts(ctx context.Context, getPostsReq *pb.GetUsersPostsRequest) (*pb.ListPostsResponse, error)
func (*UserServiceServer) ListUsers ¶
func (u *UserServiceServer) ListUsers(ctx context.Context, listReq *pb.ListUsersRequest) (*pb.ListUsersResponse, error)
func (*UserServiceServer) UpdateUser ¶
func (u *UserServiceServer) UpdateUser(ctx context.Context, updateReq *pb.UpdateUserRequest) (*pb.UpdateUserResponse, error)
Click to show internal directories.
Click to hide internal directories.