Documentation ¶
Index ¶
- Variables
- func RegisterAuthServiceServer(s grpc.ServiceRegistrar, srv AuthServiceServer)
- func RegisterMediaServiceServer(s grpc.ServiceRegistrar, srv MediaServiceServer)
- func RegisterPostServiceServer(s grpc.ServiceRegistrar, srv PostServiceServer)
- func RegisterUserServiceServer(s grpc.ServiceRegistrar, srv UserServiceServer)
- type AuthServiceClient
- type AuthServiceServer
- type CheckFavoritesRequest
- func (*CheckFavoritesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CheckFavoritesRequest) GetEmail() string
- func (x *CheckFavoritesRequest) GetPostID() uint64
- func (*CheckFavoritesRequest) ProtoMessage()
- func (x *CheckFavoritesRequest) ProtoReflect() protoreflect.Message
- func (x *CheckFavoritesRequest) Reset()
- func (x *CheckFavoritesRequest) String() string
- type CheckFavoritesResponse
- func (*CheckFavoritesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CheckFavoritesResponse) GetInFavorites() bool
- func (*CheckFavoritesResponse) ProtoMessage()
- func (x *CheckFavoritesResponse) ProtoReflect() protoreflect.Message
- func (x *CheckFavoritesResponse) Reset()
- func (x *CheckFavoritesResponse) String() string
- type CheckIfUserIsBlockedRequest
- func (*CheckIfUserIsBlockedRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CheckIfUserIsBlockedRequest) GetBlockedUser() string
- func (x *CheckIfUserIsBlockedRequest) GetUser() string
- func (*CheckIfUserIsBlockedRequest) ProtoMessage()
- func (x *CheckIfUserIsBlockedRequest) ProtoReflect() protoreflect.Message
- func (x *CheckIfUserIsBlockedRequest) Reset()
- func (x *CheckIfUserIsBlockedRequest) String() string
- type CheckIfUserIsBlockedResponse
- func (*CheckIfUserIsBlockedResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CheckIfUserIsBlockedResponse) GetBlocked() bool
- func (*CheckIfUserIsBlockedResponse) ProtoMessage()
- func (x *CheckIfUserIsBlockedResponse) ProtoReflect() protoreflect.Message
- func (x *CheckIfUserIsBlockedResponse) Reset()
- func (x *CheckIfUserIsBlockedResponse) String() string
- type CheckTaggableRequest
- func (*CheckTaggableRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CheckTaggableRequest) GetUsername() string
- func (*CheckTaggableRequest) ProtoMessage()
- func (x *CheckTaggableRequest) ProtoReflect() protoreflect.Message
- func (x *CheckTaggableRequest) Reset()
- func (x *CheckTaggableRequest) String() string
- type CheckTaggableResponse
- func (*CheckTaggableResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CheckTaggableResponse) GetTaggable() bool
- func (*CheckTaggableResponse) ProtoMessage()
- func (x *CheckTaggableResponse) ProtoReflect() protoreflect.Message
- func (x *CheckTaggableResponse) Reset()
- func (x *CheckTaggableResponse) String() string
- type DecideOnPostRequest
- func (*DecideOnPostRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DecideOnPostRequest) GetDelete() bool
- func (x *DecideOnPostRequest) GetPost() uint64
- func (*DecideOnPostRequest) ProtoMessage()
- func (x *DecideOnPostRequest) ProtoReflect() protoreflect.Message
- func (x *DecideOnPostRequest) Reset()
- func (x *DecideOnPostRequest) String() string
- type DecideOnPostResponse
- func (*DecideOnPostResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DecideOnPostResponse) GetSuccess() bool
- func (*DecideOnPostResponse) ProtoMessage()
- func (x *DecideOnPostResponse) ProtoReflect() protoreflect.Message
- func (x *DecideOnPostResponse) Reset()
- func (x *DecideOnPostResponse) String() string
- type DeleteUserRequest
- func (*DeleteUserRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteUserRequest) GetId() uint64
- func (x *DeleteUserRequest) GetRole() Role
- func (*DeleteUserRequest) ProtoMessage()
- func (x *DeleteUserRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteUserRequest) Reset()
- func (x *DeleteUserRequest) String() string
- type DeleteUserResponse
- func (*DeleteUserResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteUserResponse) GetSuccess() bool
- func (*DeleteUserResponse) ProtoMessage()
- func (x *DeleteUserResponse) ProtoReflect() protoreflect.Message
- func (x *DeleteUserResponse) Reset()
- func (x *DeleteUserResponse) String() string
- type GetFollowingUsersRequest
- func (*GetFollowingUsersRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetFollowingUsersRequest) GetUserEmail() string
- func (*GetFollowingUsersRequest) ProtoMessage()
- func (x *GetFollowingUsersRequest) ProtoReflect() protoreflect.Message
- func (x *GetFollowingUsersRequest) Reset()
- func (x *GetFollowingUsersRequest) String() string
- type GetFollowingUsersResponse
- func (*GetFollowingUsersResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetFollowingUsersResponse) GetUser() string
- func (*GetFollowingUsersResponse) ProtoMessage()
- func (x *GetFollowingUsersResponse) ProtoReflect() protoreflect.Message
- func (x *GetFollowingUsersResponse) Reset()
- func (x *GetFollowingUsersResponse) String() string
- type GetMediaRequest
- type GetMediaResponse
- type GetUserEmailRequest
- func (*GetUserEmailRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetUserEmailRequest) GetId() uint64
- func (*GetUserEmailRequest) ProtoMessage()
- func (x *GetUserEmailRequest) ProtoReflect() protoreflect.Message
- func (x *GetUserEmailRequest) Reset()
- func (x *GetUserEmailRequest) String() string
- type GetUserEmailResponse
- func (*GetUserEmailResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetUserEmailResponse) GetEmail() string
- func (*GetUserEmailResponse) ProtoMessage()
- func (x *GetUserEmailResponse) ProtoReflect() protoreflect.Message
- func (x *GetUserEmailResponse) Reset()
- func (x *GetUserEmailResponse) String() string
- type GetUsernameRequest
- func (*GetUsernameRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetUsernameRequest) GetEmail() string
- func (*GetUsernameRequest) ProtoMessage()
- func (x *GetUsernameRequest) ProtoReflect() protoreflect.Message
- func (x *GetUsernameRequest) Reset()
- func (x *GetUsernameRequest) String() string
- type GetUsernameResponse
- func (*GetUsernameResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetUsernameResponse) GetUsername() string
- func (*GetUsernameResponse) ProtoMessage()
- func (x *GetUsernameResponse) ProtoReflect() protoreflect.Message
- func (x *GetUsernameResponse) Reset()
- func (x *GetUsernameResponse) String() string
- type MediaMessage
- type MediaServiceClient
- type MediaServiceServer
- type PostServiceClient
- type PostServiceServer
- type RegistrationRequest
- func (*RegistrationRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RegistrationRequest) GetRegistration() *UserMessage
- func (*RegistrationRequest) ProtoMessage()
- func (x *RegistrationRequest) ProtoReflect() protoreflect.Message
- func (x *RegistrationRequest) Reset()
- func (x *RegistrationRequest) String() string
- type RegistrationResponse
- func (*RegistrationResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RegistrationResponse) GetId() uint64
- func (*RegistrationResponse) ProtoMessage()
- func (x *RegistrationResponse) ProtoReflect() protoreflect.Message
- func (x *RegistrationResponse) Reset()
- func (x *RegistrationResponse) String() string
- type Role
- type SaveMediaRequest
- type SaveMediaResponse
- type TerminateProfileRequest
- func (*TerminateProfileRequest) Descriptor() ([]byte, []int)deprecated
- func (x *TerminateProfileRequest) GetEmail() string
- func (*TerminateProfileRequest) ProtoMessage()
- func (x *TerminateProfileRequest) ProtoReflect() protoreflect.Message
- func (x *TerminateProfileRequest) Reset()
- func (x *TerminateProfileRequest) String() string
- type TerminateProfileResponse
- func (*TerminateProfileResponse) Descriptor() ([]byte, []int)deprecated
- func (x *TerminateProfileResponse) GetSuccess() bool
- func (*TerminateProfileResponse) ProtoMessage()
- func (x *TerminateProfileResponse) ProtoReflect() protoreflect.Message
- func (x *TerminateProfileResponse) Reset()
- func (x *TerminateProfileResponse) String() string
- type UnimplementedAuthServiceServer
- type UnimplementedMediaServiceServer
- type UnimplementedPostServiceServer
- type UnimplementedUserServiceServer
- func (UnimplementedUserServiceServer) CheckIfPostIsInFavorites(context.Context, *CheckFavoritesRequest) (*CheckFavoritesResponse, error)
- func (UnimplementedUserServiceServer) CheckIfUserIsBlocked(context.Context, *CheckIfUserIsBlockedRequest) (*CheckIfUserIsBlockedResponse, error)
- func (UnimplementedUserServiceServer) CheckIfUserIsTaggable(context.Context, *CheckTaggableRequest) (*CheckTaggableResponse, error)
- func (UnimplementedUserServiceServer) CreateUser(context.Context, *RegistrationRequest) (*RegistrationResponse, error)
- func (UnimplementedUserServiceServer) DeleteUser(context.Context, *DeleteUserRequest) (*DeleteUserResponse, error)
- func (UnimplementedUserServiceServer) GetFollowingUsers(*GetFollowingUsersRequest, UserService_GetFollowingUsersServer) error
- func (UnimplementedUserServiceServer) GetUserEmail(context.Context, *GetUserEmailRequest) (*GetUserEmailResponse, error)
- func (UnimplementedUserServiceServer) GetUsername(context.Context, *GetUsernameRequest) (*GetUsernameResponse, error)
- type UnsafeAuthServiceServer
- type UnsafeMediaServiceServer
- type UnsafePostServiceServer
- type UnsafeUserServiceServer
- type UserMessage
- func (*UserMessage) Descriptor() ([]byte, []int)deprecated
- func (x *UserMessage) GetActive() bool
- func (x *UserMessage) GetBiography() string
- func (x *UserMessage) GetBirthDate() int64
- func (x *UserMessage) GetEmail() string
- func (x *UserMessage) GetGender() UserMessage_Gender
- func (x *UserMessage) GetName() string
- func (x *UserMessage) GetPassword() string
- func (x *UserMessage) GetPhone() string
- func (x *UserMessage) GetPublic() bool
- func (x *UserMessage) GetRole() Role
- func (x *UserMessage) GetSurname() string
- func (x *UserMessage) GetTaggable() bool
- func (x *UserMessage) GetUsername() string
- func (x *UserMessage) GetWebsite() string
- func (*UserMessage) ProtoMessage()
- func (x *UserMessage) ProtoReflect() protoreflect.Message
- func (x *UserMessage) Reset()
- func (x *UserMessage) String() string
- type UserMessage_Gender
- func (UserMessage_Gender) Descriptor() protoreflect.EnumDescriptor
- func (x UserMessage_Gender) Enum() *UserMessage_Gender
- func (UserMessage_Gender) EnumDescriptor() ([]byte, []int)deprecated
- func (x UserMessage_Gender) Number() protoreflect.EnumNumber
- func (x UserMessage_Gender) String() string
- func (UserMessage_Gender) Type() protoreflect.EnumType
- type UserServiceClient
- type UserServiceServer
- type UserService_GetFollowingUsersClient
- type UserService_GetFollowingUsersServer
Constants ¶
This section is empty.
Variables ¶
var ( Role_name = map[int32]string{ 0: "UNKNOWN", 1: "USER", 2: "AGENT", } Role_value = map[string]int32{ "UNKNOWN": 0, "USER": 1, "AGENT": 2, } )
Enum value maps for Role.
var ( UserMessage_Gender_name = map[int32]string{ 0: "UNKNOWN", 1: "MALE", 2: "FEMALE", } UserMessage_Gender_value = map[string]int32{ "UNKNOWN": 0, "MALE": 1, "FEMALE": 2, } )
Enum value maps for UserMessage_Gender.
var AuthService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "proto.AuthService", HandlerType: (*AuthServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "TerminateProfile", Handler: _AuthService_TerminateProfile_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "auth_service.proto", }
AuthService_ServiceDesc is the grpc.ServiceDesc for AuthService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_auth_service_proto protoreflect.FileDescriptor
var File_media_message_proto protoreflect.FileDescriptor
var File_media_service_proto protoreflect.FileDescriptor
var File_post_service_proto protoreflect.FileDescriptor
var File_user_message_proto protoreflect.FileDescriptor
var File_user_service_proto protoreflect.FileDescriptor
var MediaService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "proto.MediaService", HandlerType: (*MediaServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "SaveMedia", Handler: _MediaService_SaveMedia_Handler, }, { MethodName: "GetMedia", Handler: _MediaService_GetMedia_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "media_service.proto", }
MediaService_ServiceDesc is the grpc.ServiceDesc for MediaService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var PostService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "proto.PostService", HandlerType: (*PostServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "DecideOnPost", Handler: _PostService_DecideOnPost_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "post_service.proto", }
PostService_ServiceDesc is the grpc.ServiceDesc for PostService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var UserService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "proto.UserService", HandlerType: (*UserServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateUser", Handler: _UserService_CreateUser_Handler, }, { MethodName: "DeleteUser", Handler: _UserService_DeleteUser_Handler, }, { MethodName: "GetUserEmail", Handler: _UserService_GetUserEmail_Handler, }, { MethodName: "GetUsername", Handler: _UserService_GetUsername_Handler, }, { MethodName: "CheckIfPostIsInFavorites", Handler: _UserService_CheckIfPostIsInFavorites_Handler, }, { MethodName: "CheckIfUserIsTaggable", Handler: _UserService_CheckIfUserIsTaggable_Handler, }, { MethodName: "CheckIfUserIsBlocked", Handler: _UserService_CheckIfUserIsBlocked_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "GetFollowingUsers", Handler: _UserService_GetFollowingUsers_Handler, ServerStreams: true, }, }, Metadata: "user_service.proto", }
UserService_ServiceDesc is the grpc.ServiceDesc for UserService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterAuthServiceServer ¶
func RegisterAuthServiceServer(s grpc.ServiceRegistrar, srv AuthServiceServer)
func RegisterMediaServiceServer ¶
func RegisterMediaServiceServer(s grpc.ServiceRegistrar, srv MediaServiceServer)
func RegisterPostServiceServer ¶
func RegisterPostServiceServer(s grpc.ServiceRegistrar, srv PostServiceServer)
func RegisterUserServiceServer ¶
func RegisterUserServiceServer(s grpc.ServiceRegistrar, srv UserServiceServer)
Types ¶
type AuthServiceClient ¶
type AuthServiceClient interface {
TerminateProfile(ctx context.Context, in *TerminateProfileRequest, opts ...grpc.CallOption) (*TerminateProfileResponse, error)
}
AuthServiceClient is the client API for AuthService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewAuthServiceClient ¶
func NewAuthServiceClient(cc grpc.ClientConnInterface) AuthServiceClient
type AuthServiceServer ¶
type AuthServiceServer interface { TerminateProfile(context.Context, *TerminateProfileRequest) (*TerminateProfileResponse, error) // contains filtered or unexported methods }
AuthServiceServer is the server API for AuthService service. All implementations must embed UnimplementedAuthServiceServer for forward compatibility
type CheckFavoritesRequest ¶
type CheckFavoritesRequest struct { Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` PostID uint64 `protobuf:"varint,2,opt,name=postID,proto3" json:"postID,omitempty"` // contains filtered or unexported fields }
func (*CheckFavoritesRequest) Descriptor
deprecated
func (*CheckFavoritesRequest) Descriptor() ([]byte, []int)
Deprecated: Use CheckFavoritesRequest.ProtoReflect.Descriptor instead.
func (*CheckFavoritesRequest) GetEmail ¶
func (x *CheckFavoritesRequest) GetEmail() string
func (*CheckFavoritesRequest) GetPostID ¶
func (x *CheckFavoritesRequest) GetPostID() uint64
func (*CheckFavoritesRequest) ProtoMessage ¶
func (*CheckFavoritesRequest) ProtoMessage()
func (*CheckFavoritesRequest) ProtoReflect ¶
func (x *CheckFavoritesRequest) ProtoReflect() protoreflect.Message
func (*CheckFavoritesRequest) Reset ¶
func (x *CheckFavoritesRequest) Reset()
func (*CheckFavoritesRequest) String ¶
func (x *CheckFavoritesRequest) String() string
type CheckFavoritesResponse ¶
type CheckFavoritesResponse struct { InFavorites bool `protobuf:"varint,1,opt,name=inFavorites,proto3" json:"inFavorites,omitempty"` // contains filtered or unexported fields }
func (*CheckFavoritesResponse) Descriptor
deprecated
func (*CheckFavoritesResponse) Descriptor() ([]byte, []int)
Deprecated: Use CheckFavoritesResponse.ProtoReflect.Descriptor instead.
func (*CheckFavoritesResponse) GetInFavorites ¶
func (x *CheckFavoritesResponse) GetInFavorites() bool
func (*CheckFavoritesResponse) ProtoMessage ¶
func (*CheckFavoritesResponse) ProtoMessage()
func (*CheckFavoritesResponse) ProtoReflect ¶
func (x *CheckFavoritesResponse) ProtoReflect() protoreflect.Message
func (*CheckFavoritesResponse) Reset ¶
func (x *CheckFavoritesResponse) Reset()
func (*CheckFavoritesResponse) String ¶
func (x *CheckFavoritesResponse) String() string
type CheckIfUserIsBlockedRequest ¶
type CheckIfUserIsBlockedRequest struct { User string `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` BlockedUser string `protobuf:"bytes,2,opt,name=blockedUser,proto3" json:"blockedUser,omitempty"` // contains filtered or unexported fields }
func (*CheckIfUserIsBlockedRequest) Descriptor
deprecated
func (*CheckIfUserIsBlockedRequest) Descriptor() ([]byte, []int)
Deprecated: Use CheckIfUserIsBlockedRequest.ProtoReflect.Descriptor instead.
func (*CheckIfUserIsBlockedRequest) GetBlockedUser ¶
func (x *CheckIfUserIsBlockedRequest) GetBlockedUser() string
func (*CheckIfUserIsBlockedRequest) GetUser ¶
func (x *CheckIfUserIsBlockedRequest) GetUser() string
func (*CheckIfUserIsBlockedRequest) ProtoMessage ¶
func (*CheckIfUserIsBlockedRequest) ProtoMessage()
func (*CheckIfUserIsBlockedRequest) ProtoReflect ¶
func (x *CheckIfUserIsBlockedRequest) ProtoReflect() protoreflect.Message
func (*CheckIfUserIsBlockedRequest) Reset ¶
func (x *CheckIfUserIsBlockedRequest) Reset()
func (*CheckIfUserIsBlockedRequest) String ¶
func (x *CheckIfUserIsBlockedRequest) String() string
type CheckIfUserIsBlockedResponse ¶
type CheckIfUserIsBlockedResponse struct { Blocked bool `protobuf:"varint,1,opt,name=blocked,proto3" json:"blocked,omitempty"` // contains filtered or unexported fields }
func (*CheckIfUserIsBlockedResponse) Descriptor
deprecated
func (*CheckIfUserIsBlockedResponse) Descriptor() ([]byte, []int)
Deprecated: Use CheckIfUserIsBlockedResponse.ProtoReflect.Descriptor instead.
func (*CheckIfUserIsBlockedResponse) GetBlocked ¶
func (x *CheckIfUserIsBlockedResponse) GetBlocked() bool
func (*CheckIfUserIsBlockedResponse) ProtoMessage ¶
func (*CheckIfUserIsBlockedResponse) ProtoMessage()
func (*CheckIfUserIsBlockedResponse) ProtoReflect ¶
func (x *CheckIfUserIsBlockedResponse) ProtoReflect() protoreflect.Message
func (*CheckIfUserIsBlockedResponse) Reset ¶
func (x *CheckIfUserIsBlockedResponse) Reset()
func (*CheckIfUserIsBlockedResponse) String ¶
func (x *CheckIfUserIsBlockedResponse) String() string
type CheckTaggableRequest ¶
type CheckTaggableRequest struct { Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` // contains filtered or unexported fields }
func (*CheckTaggableRequest) Descriptor
deprecated
func (*CheckTaggableRequest) Descriptor() ([]byte, []int)
Deprecated: Use CheckTaggableRequest.ProtoReflect.Descriptor instead.
func (*CheckTaggableRequest) GetUsername ¶
func (x *CheckTaggableRequest) GetUsername() string
func (*CheckTaggableRequest) ProtoMessage ¶
func (*CheckTaggableRequest) ProtoMessage()
func (*CheckTaggableRequest) ProtoReflect ¶
func (x *CheckTaggableRequest) ProtoReflect() protoreflect.Message
func (*CheckTaggableRequest) Reset ¶
func (x *CheckTaggableRequest) Reset()
func (*CheckTaggableRequest) String ¶
func (x *CheckTaggableRequest) String() string
type CheckTaggableResponse ¶
type CheckTaggableResponse struct { Taggable bool `protobuf:"varint,1,opt,name=taggable,proto3" json:"taggable,omitempty"` // contains filtered or unexported fields }
func (*CheckTaggableResponse) Descriptor
deprecated
func (*CheckTaggableResponse) Descriptor() ([]byte, []int)
Deprecated: Use CheckTaggableResponse.ProtoReflect.Descriptor instead.
func (*CheckTaggableResponse) GetTaggable ¶
func (x *CheckTaggableResponse) GetTaggable() bool
func (*CheckTaggableResponse) ProtoMessage ¶
func (*CheckTaggableResponse) ProtoMessage()
func (*CheckTaggableResponse) ProtoReflect ¶
func (x *CheckTaggableResponse) ProtoReflect() protoreflect.Message
func (*CheckTaggableResponse) Reset ¶
func (x *CheckTaggableResponse) Reset()
func (*CheckTaggableResponse) String ¶
func (x *CheckTaggableResponse) String() string
type DecideOnPostRequest ¶
type DecideOnPostRequest struct { Post uint64 `protobuf:"varint,1,opt,name=post,proto3" json:"post,omitempty"` Delete bool `protobuf:"varint,2,opt,name=delete,proto3" json:"delete,omitempty"` // contains filtered or unexported fields }
func (*DecideOnPostRequest) Descriptor
deprecated
func (*DecideOnPostRequest) Descriptor() ([]byte, []int)
Deprecated: Use DecideOnPostRequest.ProtoReflect.Descriptor instead.
func (*DecideOnPostRequest) GetDelete ¶
func (x *DecideOnPostRequest) GetDelete() bool
func (*DecideOnPostRequest) GetPost ¶
func (x *DecideOnPostRequest) GetPost() uint64
func (*DecideOnPostRequest) ProtoMessage ¶
func (*DecideOnPostRequest) ProtoMessage()
func (*DecideOnPostRequest) ProtoReflect ¶
func (x *DecideOnPostRequest) ProtoReflect() protoreflect.Message
func (*DecideOnPostRequest) Reset ¶
func (x *DecideOnPostRequest) Reset()
func (*DecideOnPostRequest) String ¶
func (x *DecideOnPostRequest) String() string
type DecideOnPostResponse ¶
type DecideOnPostResponse struct { Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` // contains filtered or unexported fields }
func (*DecideOnPostResponse) Descriptor
deprecated
func (*DecideOnPostResponse) Descriptor() ([]byte, []int)
Deprecated: Use DecideOnPostResponse.ProtoReflect.Descriptor instead.
func (*DecideOnPostResponse) GetSuccess ¶
func (x *DecideOnPostResponse) GetSuccess() bool
func (*DecideOnPostResponse) ProtoMessage ¶
func (*DecideOnPostResponse) ProtoMessage()
func (*DecideOnPostResponse) ProtoReflect ¶
func (x *DecideOnPostResponse) ProtoReflect() protoreflect.Message
func (*DecideOnPostResponse) Reset ¶
func (x *DecideOnPostResponse) Reset()
func (*DecideOnPostResponse) String ¶
func (x *DecideOnPostResponse) String() string
type DeleteUserRequest ¶
type DeleteUserRequest struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Role Role `protobuf:"varint,2,opt,name=role,proto3,enum=proto.Role" json:"role,omitempty"` // contains filtered or unexported fields }
func (*DeleteUserRequest) Descriptor
deprecated
func (*DeleteUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteUserRequest.ProtoReflect.Descriptor instead.
func (*DeleteUserRequest) GetId ¶
func (x *DeleteUserRequest) GetId() uint64
func (*DeleteUserRequest) GetRole ¶
func (x *DeleteUserRequest) GetRole() Role
func (*DeleteUserRequest) ProtoMessage ¶
func (*DeleteUserRequest) ProtoMessage()
func (*DeleteUserRequest) ProtoReflect ¶
func (x *DeleteUserRequest) ProtoReflect() protoreflect.Message
func (*DeleteUserRequest) Reset ¶
func (x *DeleteUserRequest) Reset()
func (*DeleteUserRequest) String ¶
func (x *DeleteUserRequest) String() string
type DeleteUserResponse ¶
type DeleteUserResponse struct { Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` // contains filtered or unexported fields }
func (*DeleteUserResponse) Descriptor
deprecated
func (*DeleteUserResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteUserResponse.ProtoReflect.Descriptor instead.
func (*DeleteUserResponse) GetSuccess ¶
func (x *DeleteUserResponse) GetSuccess() bool
func (*DeleteUserResponse) ProtoMessage ¶
func (*DeleteUserResponse) ProtoMessage()
func (*DeleteUserResponse) ProtoReflect ¶
func (x *DeleteUserResponse) ProtoReflect() protoreflect.Message
func (*DeleteUserResponse) Reset ¶
func (x *DeleteUserResponse) Reset()
func (*DeleteUserResponse) String ¶
func (x *DeleteUserResponse) String() string
type GetFollowingUsersRequest ¶
type GetFollowingUsersRequest struct { UserEmail string `protobuf:"bytes,1,opt,name=userEmail,proto3" json:"userEmail,omitempty"` // contains filtered or unexported fields }
func (*GetFollowingUsersRequest) Descriptor
deprecated
func (*GetFollowingUsersRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetFollowingUsersRequest.ProtoReflect.Descriptor instead.
func (*GetFollowingUsersRequest) GetUserEmail ¶
func (x *GetFollowingUsersRequest) GetUserEmail() string
func (*GetFollowingUsersRequest) ProtoMessage ¶
func (*GetFollowingUsersRequest) ProtoMessage()
func (*GetFollowingUsersRequest) ProtoReflect ¶
func (x *GetFollowingUsersRequest) ProtoReflect() protoreflect.Message
func (*GetFollowingUsersRequest) Reset ¶
func (x *GetFollowingUsersRequest) Reset()
func (*GetFollowingUsersRequest) String ¶
func (x *GetFollowingUsersRequest) String() string
type GetFollowingUsersResponse ¶
type GetFollowingUsersResponse struct { User string `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` // contains filtered or unexported fields }
func (*GetFollowingUsersResponse) Descriptor
deprecated
func (*GetFollowingUsersResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetFollowingUsersResponse.ProtoReflect.Descriptor instead.
func (*GetFollowingUsersResponse) GetUser ¶
func (x *GetFollowingUsersResponse) GetUser() string
func (*GetFollowingUsersResponse) ProtoMessage ¶
func (*GetFollowingUsersResponse) ProtoMessage()
func (*GetFollowingUsersResponse) ProtoReflect ¶
func (x *GetFollowingUsersResponse) ProtoReflect() protoreflect.Message
func (*GetFollowingUsersResponse) Reset ¶
func (x *GetFollowingUsersResponse) Reset()
func (*GetFollowingUsersResponse) String ¶
func (x *GetFollowingUsersResponse) String() string
type GetMediaRequest ¶
type GetMediaRequest struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*GetMediaRequest) Descriptor
deprecated
func (*GetMediaRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetMediaRequest.ProtoReflect.Descriptor instead.
func (*GetMediaRequest) GetId ¶
func (x *GetMediaRequest) GetId() uint64
func (*GetMediaRequest) ProtoMessage ¶
func (*GetMediaRequest) ProtoMessage()
func (*GetMediaRequest) ProtoReflect ¶
func (x *GetMediaRequest) ProtoReflect() protoreflect.Message
func (*GetMediaRequest) Reset ¶
func (x *GetMediaRequest) Reset()
func (*GetMediaRequest) String ¶
func (x *GetMediaRequest) String() string
type GetMediaResponse ¶
type GetMediaResponse struct { Image *MediaMessage `protobuf:"bytes,1,opt,name=image,proto3" json:"image,omitempty"` // contains filtered or unexported fields }
func (*GetMediaResponse) Descriptor
deprecated
func (*GetMediaResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetMediaResponse.ProtoReflect.Descriptor instead.
func (*GetMediaResponse) GetImage ¶
func (x *GetMediaResponse) GetImage() *MediaMessage
func (*GetMediaResponse) ProtoMessage ¶
func (*GetMediaResponse) ProtoMessage()
func (*GetMediaResponse) ProtoReflect ¶
func (x *GetMediaResponse) ProtoReflect() protoreflect.Message
func (*GetMediaResponse) Reset ¶
func (x *GetMediaResponse) Reset()
func (*GetMediaResponse) String ¶
func (x *GetMediaResponse) String() string
type GetUserEmailRequest ¶
type GetUserEmailRequest struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*GetUserEmailRequest) Descriptor
deprecated
func (*GetUserEmailRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetUserEmailRequest.ProtoReflect.Descriptor instead.
func (*GetUserEmailRequest) GetId ¶
func (x *GetUserEmailRequest) GetId() uint64
func (*GetUserEmailRequest) ProtoMessage ¶
func (*GetUserEmailRequest) ProtoMessage()
func (*GetUserEmailRequest) ProtoReflect ¶
func (x *GetUserEmailRequest) ProtoReflect() protoreflect.Message
func (*GetUserEmailRequest) Reset ¶
func (x *GetUserEmailRequest) Reset()
func (*GetUserEmailRequest) String ¶
func (x *GetUserEmailRequest) String() string
type GetUserEmailResponse ¶
type GetUserEmailResponse struct { Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` // contains filtered or unexported fields }
func (*GetUserEmailResponse) Descriptor
deprecated
func (*GetUserEmailResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetUserEmailResponse.ProtoReflect.Descriptor instead.
func (*GetUserEmailResponse) GetEmail ¶
func (x *GetUserEmailResponse) GetEmail() string
func (*GetUserEmailResponse) ProtoMessage ¶
func (*GetUserEmailResponse) ProtoMessage()
func (*GetUserEmailResponse) ProtoReflect ¶
func (x *GetUserEmailResponse) ProtoReflect() protoreflect.Message
func (*GetUserEmailResponse) Reset ¶
func (x *GetUserEmailResponse) Reset()
func (*GetUserEmailResponse) String ¶
func (x *GetUserEmailResponse) String() string
type GetUsernameRequest ¶
type GetUsernameRequest struct { Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` // contains filtered or unexported fields }
func (*GetUsernameRequest) Descriptor
deprecated
func (*GetUsernameRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetUsernameRequest.ProtoReflect.Descriptor instead.
func (*GetUsernameRequest) GetEmail ¶
func (x *GetUsernameRequest) GetEmail() string
func (*GetUsernameRequest) ProtoMessage ¶
func (*GetUsernameRequest) ProtoMessage()
func (*GetUsernameRequest) ProtoReflect ¶
func (x *GetUsernameRequest) ProtoReflect() protoreflect.Message
func (*GetUsernameRequest) Reset ¶
func (x *GetUsernameRequest) Reset()
func (*GetUsernameRequest) String ¶
func (x *GetUsernameRequest) String() string
type GetUsernameResponse ¶
type GetUsernameResponse struct { Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` // contains filtered or unexported fields }
func (*GetUsernameResponse) Descriptor
deprecated
func (*GetUsernameResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetUsernameResponse.ProtoReflect.Descriptor instead.
func (*GetUsernameResponse) GetUsername ¶
func (x *GetUsernameResponse) GetUsername() string
func (*GetUsernameResponse) ProtoMessage ¶
func (*GetUsernameResponse) ProtoMessage()
func (*GetUsernameResponse) ProtoReflect ¶
func (x *GetUsernameResponse) ProtoReflect() protoreflect.Message
func (*GetUsernameResponse) Reset ¶
func (x *GetUsernameResponse) Reset()
func (*GetUsernameResponse) String ¶
func (x *GetUsernameResponse) String() string
type MediaMessage ¶
type MediaMessage struct { ImageBase64 string `protobuf:"bytes,1,opt,name=imageBase64,proto3" json:"imageBase64,omitempty"` // contains filtered or unexported fields }
func (*MediaMessage) Descriptor
deprecated
func (*MediaMessage) Descriptor() ([]byte, []int)
Deprecated: Use MediaMessage.ProtoReflect.Descriptor instead.
func (*MediaMessage) GetImageBase64 ¶
func (x *MediaMessage) GetImageBase64() string
func (*MediaMessage) ProtoMessage ¶
func (*MediaMessage) ProtoMessage()
func (*MediaMessage) ProtoReflect ¶
func (x *MediaMessage) ProtoReflect() protoreflect.Message
func (*MediaMessage) Reset ¶
func (x *MediaMessage) Reset()
func (*MediaMessage) String ¶
func (x *MediaMessage) String() string
type MediaServiceClient ¶
type MediaServiceClient interface { SaveMedia(ctx context.Context, in *SaveMediaRequest, opts ...grpc.CallOption) (*SaveMediaResponse, error) GetMedia(ctx context.Context, in *GetMediaRequest, opts ...grpc.CallOption) (*GetMediaResponse, error) }
MediaServiceClient is the client API for MediaService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewMediaServiceClient ¶
func NewMediaServiceClient(cc grpc.ClientConnInterface) MediaServiceClient
type MediaServiceServer ¶
type MediaServiceServer interface { SaveMedia(context.Context, *SaveMediaRequest) (*SaveMediaResponse, error) GetMedia(context.Context, *GetMediaRequest) (*GetMediaResponse, error) // contains filtered or unexported methods }
MediaServiceServer is the server API for MediaService service. All implementations must embed UnimplementedMediaServiceServer for forward compatibility
type PostServiceClient ¶
type PostServiceClient interface {
DecideOnPost(ctx context.Context, in *DecideOnPostRequest, opts ...grpc.CallOption) (*DecideOnPostResponse, error)
}
PostServiceClient is the client API for PostService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewPostServiceClient ¶
func NewPostServiceClient(cc grpc.ClientConnInterface) PostServiceClient
type PostServiceServer ¶
type PostServiceServer interface { DecideOnPost(context.Context, *DecideOnPostRequest) (*DecideOnPostResponse, error) // contains filtered or unexported methods }
PostServiceServer is the server API for PostService service. All implementations must embed UnimplementedPostServiceServer for forward compatibility
type RegistrationRequest ¶
type RegistrationRequest struct { Registration *UserMessage `protobuf:"bytes,1,opt,name=registration,proto3" json:"registration,omitempty"` // contains filtered or unexported fields }
func (*RegistrationRequest) Descriptor
deprecated
func (*RegistrationRequest) Descriptor() ([]byte, []int)
Deprecated: Use RegistrationRequest.ProtoReflect.Descriptor instead.
func (*RegistrationRequest) GetRegistration ¶
func (x *RegistrationRequest) GetRegistration() *UserMessage
func (*RegistrationRequest) ProtoMessage ¶
func (*RegistrationRequest) ProtoMessage()
func (*RegistrationRequest) ProtoReflect ¶
func (x *RegistrationRequest) ProtoReflect() protoreflect.Message
func (*RegistrationRequest) Reset ¶
func (x *RegistrationRequest) Reset()
func (*RegistrationRequest) String ¶
func (x *RegistrationRequest) String() string
type RegistrationResponse ¶
type RegistrationResponse struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*RegistrationResponse) Descriptor
deprecated
func (*RegistrationResponse) Descriptor() ([]byte, []int)
Deprecated: Use RegistrationResponse.ProtoReflect.Descriptor instead.
func (*RegistrationResponse) GetId ¶
func (x *RegistrationResponse) GetId() uint64
func (*RegistrationResponse) ProtoMessage ¶
func (*RegistrationResponse) ProtoMessage()
func (*RegistrationResponse) ProtoReflect ¶
func (x *RegistrationResponse) ProtoReflect() protoreflect.Message
func (*RegistrationResponse) Reset ¶
func (x *RegistrationResponse) Reset()
func (*RegistrationResponse) String ¶
func (x *RegistrationResponse) String() string
type Role ¶
type Role int32
func (Role) Descriptor ¶
func (Role) Descriptor() protoreflect.EnumDescriptor
func (Role) EnumDescriptor
deprecated
func (Role) Number ¶
func (x Role) Number() protoreflect.EnumNumber
func (Role) Type ¶
func (Role) Type() protoreflect.EnumType
type SaveMediaRequest ¶
type SaveMediaRequest struct { Image *MediaMessage `protobuf:"bytes,1,opt,name=image,proto3" json:"image,omitempty"` // contains filtered or unexported fields }
func (*SaveMediaRequest) Descriptor
deprecated
func (*SaveMediaRequest) Descriptor() ([]byte, []int)
Deprecated: Use SaveMediaRequest.ProtoReflect.Descriptor instead.
func (*SaveMediaRequest) GetImage ¶
func (x *SaveMediaRequest) GetImage() *MediaMessage
func (*SaveMediaRequest) ProtoMessage ¶
func (*SaveMediaRequest) ProtoMessage()
func (*SaveMediaRequest) ProtoReflect ¶
func (x *SaveMediaRequest) ProtoReflect() protoreflect.Message
func (*SaveMediaRequest) Reset ¶
func (x *SaveMediaRequest) Reset()
func (*SaveMediaRequest) String ¶
func (x *SaveMediaRequest) String() string
type SaveMediaResponse ¶
type SaveMediaResponse struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*SaveMediaResponse) Descriptor
deprecated
func (*SaveMediaResponse) Descriptor() ([]byte, []int)
Deprecated: Use SaveMediaResponse.ProtoReflect.Descriptor instead.
func (*SaveMediaResponse) GetId ¶
func (x *SaveMediaResponse) GetId() uint64
func (*SaveMediaResponse) ProtoMessage ¶
func (*SaveMediaResponse) ProtoMessage()
func (*SaveMediaResponse) ProtoReflect ¶
func (x *SaveMediaResponse) ProtoReflect() protoreflect.Message
func (*SaveMediaResponse) Reset ¶
func (x *SaveMediaResponse) Reset()
func (*SaveMediaResponse) String ¶
func (x *SaveMediaResponse) String() string
type TerminateProfileRequest ¶
type TerminateProfileRequest struct { Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` // contains filtered or unexported fields }
func (*TerminateProfileRequest) Descriptor
deprecated
func (*TerminateProfileRequest) Descriptor() ([]byte, []int)
Deprecated: Use TerminateProfileRequest.ProtoReflect.Descriptor instead.
func (*TerminateProfileRequest) GetEmail ¶
func (x *TerminateProfileRequest) GetEmail() string
func (*TerminateProfileRequest) ProtoMessage ¶
func (*TerminateProfileRequest) ProtoMessage()
func (*TerminateProfileRequest) ProtoReflect ¶
func (x *TerminateProfileRequest) ProtoReflect() protoreflect.Message
func (*TerminateProfileRequest) Reset ¶
func (x *TerminateProfileRequest) Reset()
func (*TerminateProfileRequest) String ¶
func (x *TerminateProfileRequest) String() string
type TerminateProfileResponse ¶
type TerminateProfileResponse struct { Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` // contains filtered or unexported fields }
func (*TerminateProfileResponse) Descriptor
deprecated
func (*TerminateProfileResponse) Descriptor() ([]byte, []int)
Deprecated: Use TerminateProfileResponse.ProtoReflect.Descriptor instead.
func (*TerminateProfileResponse) GetSuccess ¶
func (x *TerminateProfileResponse) GetSuccess() bool
func (*TerminateProfileResponse) ProtoMessage ¶
func (*TerminateProfileResponse) ProtoMessage()
func (*TerminateProfileResponse) ProtoReflect ¶
func (x *TerminateProfileResponse) ProtoReflect() protoreflect.Message
func (*TerminateProfileResponse) Reset ¶
func (x *TerminateProfileResponse) Reset()
func (*TerminateProfileResponse) String ¶
func (x *TerminateProfileResponse) String() string
type UnimplementedAuthServiceServer ¶
type UnimplementedAuthServiceServer struct { }
UnimplementedAuthServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedAuthServiceServer) TerminateProfile ¶
func (UnimplementedAuthServiceServer) TerminateProfile(context.Context, *TerminateProfileRequest) (*TerminateProfileResponse, error)
type UnimplementedMediaServiceServer ¶
type UnimplementedMediaServiceServer struct { }
UnimplementedMediaServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedMediaServiceServer) GetMedia ¶
func (UnimplementedMediaServiceServer) GetMedia(context.Context, *GetMediaRequest) (*GetMediaResponse, error)
func (UnimplementedMediaServiceServer) SaveMedia ¶
func (UnimplementedMediaServiceServer) SaveMedia(context.Context, *SaveMediaRequest) (*SaveMediaResponse, error)
type UnimplementedPostServiceServer ¶
type UnimplementedPostServiceServer struct { }
UnimplementedPostServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedPostServiceServer) DecideOnPost ¶
func (UnimplementedPostServiceServer) DecideOnPost(context.Context, *DecideOnPostRequest) (*DecideOnPostResponse, error)
type UnimplementedUserServiceServer ¶
type UnimplementedUserServiceServer struct { }
UnimplementedUserServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedUserServiceServer) CheckIfPostIsInFavorites ¶
func (UnimplementedUserServiceServer) CheckIfPostIsInFavorites(context.Context, *CheckFavoritesRequest) (*CheckFavoritesResponse, error)
func (UnimplementedUserServiceServer) CheckIfUserIsBlocked ¶
func (UnimplementedUserServiceServer) CheckIfUserIsBlocked(context.Context, *CheckIfUserIsBlockedRequest) (*CheckIfUserIsBlockedResponse, error)
func (UnimplementedUserServiceServer) CheckIfUserIsTaggable ¶
func (UnimplementedUserServiceServer) CheckIfUserIsTaggable(context.Context, *CheckTaggableRequest) (*CheckTaggableResponse, error)
func (UnimplementedUserServiceServer) CreateUser ¶
func (UnimplementedUserServiceServer) CreateUser(context.Context, *RegistrationRequest) (*RegistrationResponse, error)
func (UnimplementedUserServiceServer) DeleteUser ¶
func (UnimplementedUserServiceServer) DeleteUser(context.Context, *DeleteUserRequest) (*DeleteUserResponse, error)
func (UnimplementedUserServiceServer) GetFollowingUsers ¶
func (UnimplementedUserServiceServer) GetFollowingUsers(*GetFollowingUsersRequest, UserService_GetFollowingUsersServer) error
func (UnimplementedUserServiceServer) GetUserEmail ¶
func (UnimplementedUserServiceServer) GetUserEmail(context.Context, *GetUserEmailRequest) (*GetUserEmailResponse, error)
func (UnimplementedUserServiceServer) GetUsername ¶
func (UnimplementedUserServiceServer) GetUsername(context.Context, *GetUsernameRequest) (*GetUsernameResponse, error)
type UnsafeAuthServiceServer ¶
type UnsafeAuthServiceServer interface {
// contains filtered or unexported methods
}
UnsafeAuthServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AuthServiceServer will result in compilation errors.
type UnsafeMediaServiceServer ¶
type UnsafeMediaServiceServer interface {
// contains filtered or unexported methods
}
UnsafeMediaServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MediaServiceServer will result in compilation errors.
type UnsafePostServiceServer ¶
type UnsafePostServiceServer interface {
// contains filtered or unexported methods
}
UnsafePostServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to PostServiceServer will result in compilation errors.
type UnsafeUserServiceServer ¶
type UnsafeUserServiceServer interface {
// contains filtered or unexported methods
}
UnsafeUserServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to UserServiceServer will result in compilation errors.
type UserMessage ¶
type UserMessage struct { Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` Surname string `protobuf:"bytes,4,opt,name=surname,proto3" json:"surname,omitempty"` BirthDate int64 `protobuf:"varint,5,opt,name=birth_date,json=birthDate,proto3" json:"birth_date,omitempty"` Website string `protobuf:"bytes,6,opt,name=website,proto3" json:"website,omitempty"` Biography string `protobuf:"bytes,7,opt,name=biography,proto3" json:"biography,omitempty"` Gender UserMessage_Gender `protobuf:"varint,8,opt,name=gender,proto3,enum=proto.UserMessage_Gender" json:"gender,omitempty"` Public bool `protobuf:"varint,9,opt,name=public,proto3" json:"public,omitempty"` Taggable bool `protobuf:"varint,10,opt,name=taggable,proto3" json:"taggable,omitempty"` Active bool `protobuf:"varint,11,opt,name=active,proto3" json:"active,omitempty"` Email string `protobuf:"bytes,12,opt,name=email,proto3" json:"email,omitempty"` Role Role `protobuf:"varint,13,opt,name=role,proto3,enum=proto.Role" json:"role,omitempty"` Phone string `protobuf:"bytes,14,opt,name=phone,proto3" json:"phone,omitempty"` // contains filtered or unexported fields }
func (*UserMessage) Descriptor
deprecated
func (*UserMessage) Descriptor() ([]byte, []int)
Deprecated: Use UserMessage.ProtoReflect.Descriptor instead.
func (*UserMessage) GetActive ¶
func (x *UserMessage) GetActive() bool
func (*UserMessage) GetBiography ¶
func (x *UserMessage) GetBiography() string
func (*UserMessage) GetBirthDate ¶
func (x *UserMessage) GetBirthDate() int64
func (*UserMessage) GetEmail ¶
func (x *UserMessage) GetEmail() string
func (*UserMessage) GetGender ¶
func (x *UserMessage) GetGender() UserMessage_Gender
func (*UserMessage) GetName ¶
func (x *UserMessage) GetName() string
func (*UserMessage) GetPassword ¶
func (x *UserMessage) GetPassword() string
func (*UserMessage) GetPhone ¶
func (x *UserMessage) GetPhone() string
func (*UserMessage) GetPublic ¶
func (x *UserMessage) GetPublic() bool
func (*UserMessage) GetRole ¶
func (x *UserMessage) GetRole() Role
func (*UserMessage) GetSurname ¶
func (x *UserMessage) GetSurname() string
func (*UserMessage) GetTaggable ¶
func (x *UserMessage) GetTaggable() bool
func (*UserMessage) GetUsername ¶
func (x *UserMessage) GetUsername() string
func (*UserMessage) GetWebsite ¶
func (x *UserMessage) GetWebsite() string
func (*UserMessage) ProtoMessage ¶
func (*UserMessage) ProtoMessage()
func (*UserMessage) ProtoReflect ¶
func (x *UserMessage) ProtoReflect() protoreflect.Message
func (*UserMessage) Reset ¶
func (x *UserMessage) Reset()
func (*UserMessage) String ¶
func (x *UserMessage) String() string
type UserMessage_Gender ¶
type UserMessage_Gender int32
const ( UserMessage_UNKNOWN UserMessage_Gender = 0 UserMessage_MALE UserMessage_Gender = 1 UserMessage_FEMALE UserMessage_Gender = 2 )
func (UserMessage_Gender) Descriptor ¶
func (UserMessage_Gender) Descriptor() protoreflect.EnumDescriptor
func (UserMessage_Gender) Enum ¶
func (x UserMessage_Gender) Enum() *UserMessage_Gender
func (UserMessage_Gender) EnumDescriptor
deprecated
func (UserMessage_Gender) EnumDescriptor() ([]byte, []int)
Deprecated: Use UserMessage_Gender.Descriptor instead.
func (UserMessage_Gender) Number ¶
func (x UserMessage_Gender) Number() protoreflect.EnumNumber
func (UserMessage_Gender) String ¶
func (x UserMessage_Gender) String() string
func (UserMessage_Gender) Type ¶
func (UserMessage_Gender) Type() protoreflect.EnumType
type UserServiceClient ¶
type UserServiceClient interface { CreateUser(ctx context.Context, in *RegistrationRequest, opts ...grpc.CallOption) (*RegistrationResponse, error) DeleteUser(ctx context.Context, in *DeleteUserRequest, opts ...grpc.CallOption) (*DeleteUserResponse, error) GetUserEmail(ctx context.Context, in *GetUserEmailRequest, opts ...grpc.CallOption) (*GetUserEmailResponse, error) GetUsername(ctx context.Context, in *GetUsernameRequest, opts ...grpc.CallOption) (*GetUsernameResponse, error) CheckIfPostIsInFavorites(ctx context.Context, in *CheckFavoritesRequest, opts ...grpc.CallOption) (*CheckFavoritesResponse, error) CheckIfUserIsTaggable(ctx context.Context, in *CheckTaggableRequest, opts ...grpc.CallOption) (*CheckTaggableResponse, error) GetFollowingUsers(ctx context.Context, in *GetFollowingUsersRequest, opts ...grpc.CallOption) (UserService_GetFollowingUsersClient, error) CheckIfUserIsBlocked(ctx context.Context, in *CheckIfUserIsBlockedRequest, opts ...grpc.CallOption) (*CheckIfUserIsBlockedResponse, error) }
UserServiceClient is the client API for UserService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewUserServiceClient ¶
func NewUserServiceClient(cc grpc.ClientConnInterface) UserServiceClient
type UserServiceServer ¶
type UserServiceServer interface { CreateUser(context.Context, *RegistrationRequest) (*RegistrationResponse, error) DeleteUser(context.Context, *DeleteUserRequest) (*DeleteUserResponse, error) GetUserEmail(context.Context, *GetUserEmailRequest) (*GetUserEmailResponse, error) GetUsername(context.Context, *GetUsernameRequest) (*GetUsernameResponse, error) CheckIfPostIsInFavorites(context.Context, *CheckFavoritesRequest) (*CheckFavoritesResponse, error) CheckIfUserIsTaggable(context.Context, *CheckTaggableRequest) (*CheckTaggableResponse, error) GetFollowingUsers(*GetFollowingUsersRequest, UserService_GetFollowingUsersServer) error CheckIfUserIsBlocked(context.Context, *CheckIfUserIsBlockedRequest) (*CheckIfUserIsBlockedResponse, error) // contains filtered or unexported methods }
UserServiceServer is the server API for UserService service. All implementations must embed UnimplementedUserServiceServer for forward compatibility
type UserService_GetFollowingUsersClient ¶
type UserService_GetFollowingUsersClient interface { Recv() (*GetFollowingUsersResponse, error) grpc.ClientStream }
type UserService_GetFollowingUsersServer ¶
type UserService_GetFollowingUsersServer interface { Send(*GetFollowingUsersResponse) error grpc.ServerStream }