Documentation ¶
Index ¶
- func Start(rsaPrivateKeyPath string, rsaPublicteKeyPath string, network string)
- func StartAuthServer(network, address string)
- func StartFollowService(network, address string)
- func StartPostsService(network string, address string)
- func StartUserService(network string, address string)
- func StreamLoggingInterceptor(srv interface{}, ss grpc.ServerStream, info *grpc.StreamServerInfo, ...) error
- func StreamServerInterceptor(srv interface{}, ss grpc.ServerStream, info *grpc.StreamServerInfo, ...) error
- func UnaryLoggingInterceptor(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, ...) (interface{}, error)
- func UnaryServerInterceptor(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, ...) (interface{}, error)
- type AuthServer
- type FollowServer
- func (*FollowServer) FollowUser(ctx context.Context, request *socialnetwork_pb.FollowUserRequest) (*socialnetwork_pb.FollowUserResponse, error)
- func (*FollowServer) GetFollowing(ctx context.Context, request *socialnetwork_pb.GetFollowingRequest) (*socialnetwork_pb.GetFollowingResponse, error)
- func (*FollowServer) UnfollowUser(ctx context.Context, request *socialnetwork_pb.UnfollowUserRequest) (*socialnetwork_pb.UnfollowUserResponse, error)
- type PostServer
- func (*PostServer) CreatePost(ctx context.Context, request *socialnetwork_pb.CreatePostRequest) (*socialnetwork_pb.CreatePostResponse, error)
- func (*PostServer) DeletePost(ctx context.Context, request *socialnetwork_pb.DeletePostRequest) (*socialnetwork_pb.DeletePostResponse, error)
- func (*PostServer) GetPost(_ context.Context, request *socialnetwork_pb.GetPostRequest) (*socialnetwork_pb.GetPostResponse, error)
- func (*PostServer) GetUserPosts(_ context.Context, request *socialnetwork_pb.GetUserPostsRequest) (*socialnetwork_pb.GetUserPostsResponse, error)
- func (*PostServer) Repost(ctx context.Context, request *socialnetwork_pb.RepostRequest) (*socialnetwork_pb.RepostResponse, error)
- type UserServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StartAuthServer ¶
func StartAuthServer(network, address string)
func StartFollowService ¶
func StartFollowService(network, address string)
func StartPostsService ¶
func StartUserService ¶
func StreamLoggingInterceptor ¶
func StreamLoggingInterceptor(srv interface{}, ss grpc.ServerStream, info *grpc.StreamServerInfo, handler grpc.StreamHandler) error
This interceptor is used for logging streaming gRPC requests
func StreamServerInterceptor ¶
func StreamServerInterceptor(srv interface{}, ss grpc.ServerStream, info *grpc.StreamServerInfo, handler grpc.StreamHandler) error
This interceptor is used for streaming gRPC methods.
func UnaryLoggingInterceptor ¶
func UnaryLoggingInterceptor(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (interface{}, error)
This interceptor is used for logging unary (single request-response) gRPC requests
func UnaryServerInterceptor ¶
func UnaryServerInterceptor(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (interface{}, error)
This interceptor is used for unary (single request-response) gRPC methods.
Types ¶
type AuthServer ¶
type AuthServer struct { *socialnetwork_pb.UnimplementedAuthServer // contains filtered or unexported fields }
func (*AuthServer) Login ¶
func (server *AuthServer) Login(ctx context.Context, request *socialnetwork_pb.LoginRequest) (*socialnetwork_pb.LoginResponse, error)
func (*AuthServer) SignUp ¶
func (server *AuthServer) SignUp(ctx context.Context, request *socialnetwork_pb.SignUpRequest) (*socialnetwork_pb.SignUpResponse, error)
type FollowServer ¶
type FollowServer struct {
*socialnetwork_pb.UnimplementedFollowServiceServer
}
func (*FollowServer) FollowUser ¶
func (*FollowServer) FollowUser(ctx context.Context, request *socialnetwork_pb.FollowUserRequest) (*socialnetwork_pb.FollowUserResponse, error)
func (*FollowServer) GetFollowing ¶
func (*FollowServer) GetFollowing(ctx context.Context, request *socialnetwork_pb.GetFollowingRequest) (*socialnetwork_pb.GetFollowingResponse, error)
func (*FollowServer) UnfollowUser ¶
func (*FollowServer) UnfollowUser(ctx context.Context, request *socialnetwork_pb.UnfollowUserRequest) (*socialnetwork_pb.UnfollowUserResponse, error)
type PostServer ¶
type PostServer struct {
socialnetwork_pb.UnimplementedPostServiceServer
}
func (*PostServer) CreatePost ¶
func (*PostServer) CreatePost(ctx context.Context, request *socialnetwork_pb.CreatePostRequest) (*socialnetwork_pb.CreatePostResponse, error)
func (*PostServer) DeletePost ¶
func (*PostServer) DeletePost(ctx context.Context, request *socialnetwork_pb.DeletePostRequest) (*socialnetwork_pb.DeletePostResponse, error)
func (*PostServer) GetPost ¶
func (*PostServer) GetPost(_ context.Context, request *socialnetwork_pb.GetPostRequest) (*socialnetwork_pb.GetPostResponse, error)
func (*PostServer) GetUserPosts ¶
func (*PostServer) GetUserPosts(_ context.Context, request *socialnetwork_pb.GetUserPostsRequest) (*socialnetwork_pb.GetUserPostsResponse, error)
func (*PostServer) Repost ¶
func (*PostServer) Repost(ctx context.Context, request *socialnetwork_pb.RepostRequest) (*socialnetwork_pb.RepostResponse, error)
type UserServer ¶
type UserServer struct {
socialnetwork_pb.UnimplementedUserServiceServer
}
func (*UserServer) EditUser ¶
func (s *UserServer) EditUser(ctx context.Context, request *socialnetwork_pb.EditUserRequest) (*socialnetwork_pb.EditUserResponse, error)
func (*UserServer) GetUser ¶
func (*UserServer) GetUser(_ context.Context, request *socialnetwork_pb.GetUserRequest) (*socialnetwork_pb.GetUserResponse, error)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.