Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterUserHTTPServer(s *http.Server, srv UserHTTPServer)
- func RegisterUserServer(s grpc.ServiceRegistrar, srv UserServer)
- type BindEmailReq
- func (*BindEmailReq) Descriptor() ([]byte, []int)deprecated
- func (x *BindEmailReq) GetEmail() string
- func (x *BindEmailReq) GetId() string
- func (*BindEmailReq) ProtoMessage()
- func (x *BindEmailReq) ProtoReflect() protoreflect.Message
- func (x *BindEmailReq) Reset()
- func (x *BindEmailReq) String() string
- type CreateUserReq
- func (*CreateUserReq) Descriptor() ([]byte, []int)deprecated
- func (x *CreateUserReq) GetPassword() string
- func (x *CreateUserReq) GetRole() Role
- func (x *CreateUserReq) GetStatus() Status
- func (x *CreateUserReq) GetUsername() string
- func (*CreateUserReq) ProtoMessage()
- func (x *CreateUserReq) ProtoReflect() protoreflect.Message
- func (x *CreateUserReq) Reset()
- func (x *CreateUserReq) String() string
- type Empty
- type FollowAllDeviceReq
- func (*FollowAllDeviceReq) Descriptor() ([]byte, []int)deprecated
- func (x *FollowAllDeviceReq) GetUserId() string
- func (*FollowAllDeviceReq) ProtoMessage()
- func (x *FollowAllDeviceReq) ProtoReflect() protoreflect.Message
- func (x *FollowAllDeviceReq) Reset()
- func (x *FollowAllDeviceReq) String() string
- type FollowDeviceReq
- func (*FollowDeviceReq) Descriptor() ([]byte, []int)deprecated
- func (x *FollowDeviceReq) GetDeviceId() uint64
- func (x *FollowDeviceReq) GetUserId() string
- func (*FollowDeviceReq) ProtoMessage()
- func (x *FollowDeviceReq) ProtoReflect() protoreflect.Message
- func (x *FollowDeviceReq) Reset()
- func (x *FollowDeviceReq) String() string
- type GetUserIdReq
- type GetUserIdResp
- type GetUserInfoByUsernameReq
- func (*GetUserInfoByUsernameReq) Descriptor() ([]byte, []int)deprecated
- func (x *GetUserInfoByUsernameReq) GetFields() []string
- func (x *GetUserInfoByUsernameReq) GetUsername() string
- func (*GetUserInfoByUsernameReq) ProtoMessage()
- func (x *GetUserInfoByUsernameReq) ProtoReflect() protoreflect.Message
- func (x *GetUserInfoByUsernameReq) Reset()
- func (x *GetUserInfoByUsernameReq) String() string
- type GetUserInfoReq
- func (*GetUserInfoReq) Descriptor() ([]byte, []int)deprecated
- func (x *GetUserInfoReq) GetFields() []string
- func (x *GetUserInfoReq) GetId() string
- func (*GetUserInfoReq) ProtoMessage()
- func (x *GetUserInfoReq) ProtoReflect() protoreflect.Message
- func (x *GetUserInfoReq) Reset()
- func (x *GetUserInfoReq) String() string
- type GetUserLastSeenReq
- type GetUserPasswordVersionReq
- func (*GetUserPasswordVersionReq) Descriptor() ([]byte, []int)deprecated
- func (x *GetUserPasswordVersionReq) GetId() string
- func (*GetUserPasswordVersionReq) ProtoMessage()
- func (x *GetUserPasswordVersionReq) ProtoReflect() protoreflect.Message
- func (x *GetUserPasswordVersionReq) Reset()
- func (x *GetUserPasswordVersionReq) String() string
- type GetUserPasswordVersionResp
- func (*GetUserPasswordVersionResp) Descriptor() ([]byte, []int)deprecated
- func (x *GetUserPasswordVersionResp) GetVersion() uint32
- func (*GetUserPasswordVersionResp) ProtoMessage()
- func (x *GetUserPasswordVersionResp) ProtoReflect() protoreflect.Message
- func (x *GetUserPasswordVersionResp) Reset()
- func (x *GetUserPasswordVersionResp) String() string
- type HasFollowedDeviceReq
- func (*HasFollowedDeviceReq) Descriptor() ([]byte, []int)deprecated
- func (x *HasFollowedDeviceReq) GetDeviceId() uint64
- func (x *HasFollowedDeviceReq) GetUserId() string
- func (*HasFollowedDeviceReq) ProtoMessage()
- func (x *HasFollowedDeviceReq) ProtoReflect() protoreflect.Message
- func (x *HasFollowedDeviceReq) Reset()
- func (x *HasFollowedDeviceReq) String() string
- type HasFollowedDeviceResp
- func (*HasFollowedDeviceResp) Descriptor() ([]byte, []int)deprecated
- func (x *HasFollowedDeviceResp) GetFollowed() bool
- func (*HasFollowedDeviceResp) ProtoMessage()
- func (x *HasFollowedDeviceResp) ProtoReflect() protoreflect.Message
- func (x *HasFollowedDeviceResp) Reset()
- func (x *HasFollowedDeviceResp) String() string
- type ListFollowedDeviceIDsReq
- func (*ListFollowedDeviceIDsReq) Descriptor() ([]byte, []int)deprecated
- func (x *ListFollowedDeviceIDsReq) GetUserId() string
- func (*ListFollowedDeviceIDsReq) ProtoMessage()
- func (x *ListFollowedDeviceIDsReq) ProtoReflect() protoreflect.Message
- func (x *ListFollowedDeviceIDsReq) Reset()
- func (x *ListFollowedDeviceIDsReq) String() string
- type ListFollowedDeviceIDsResp
- func (*ListFollowedDeviceIDsResp) Descriptor() ([]byte, []int)deprecated
- func (x *ListFollowedDeviceIDsResp) GetDeviceIds() []uint64
- func (*ListFollowedDeviceIDsResp) ProtoMessage()
- func (x *ListFollowedDeviceIDsResp) ProtoReflect() protoreflect.Message
- func (x *ListFollowedDeviceIDsResp) Reset()
- func (x *ListFollowedDeviceIDsResp) String() string
- type ListFollowedUserIDsByDeviceReq
- func (*ListFollowedUserIDsByDeviceReq) Descriptor() ([]byte, []int)deprecated
- func (x *ListFollowedUserIDsByDeviceReq) GetDeviceId() uint64
- func (*ListFollowedUserIDsByDeviceReq) ProtoMessage()
- func (x *ListFollowedUserIDsByDeviceReq) ProtoReflect() protoreflect.Message
- func (x *ListFollowedUserIDsByDeviceReq) Reset()
- func (x *ListFollowedUserIDsByDeviceReq) String() string
- type ListFollowedUserIDsByDeviceResp
- func (*ListFollowedUserIDsByDeviceResp) Descriptor() ([]byte, []int)deprecated
- func (x *ListFollowedUserIDsByDeviceResp) GetUserIds() []string
- func (*ListFollowedUserIDsByDeviceResp) ProtoMessage()
- func (x *ListFollowedUserIDsByDeviceResp) ProtoReflect() protoreflect.Message
- func (x *ListFollowedUserIDsByDeviceResp) Reset()
- func (x *ListFollowedUserIDsByDeviceResp) String() string
- type ListFollowedUserNotificationMethodsByDeviceReq
- func (*ListFollowedUserNotificationMethodsByDeviceReq) Descriptor() ([]byte, []int)deprecated
- func (x *ListFollowedUserNotificationMethodsByDeviceReq) GetDeviceId() uint64
- func (*ListFollowedUserNotificationMethodsByDeviceReq) ProtoMessage()
- func (x *ListFollowedUserNotificationMethodsByDeviceReq) ProtoReflect() protoreflect.Message
- func (x *ListFollowedUserNotificationMethodsByDeviceReq) Reset()
- func (x *ListFollowedUserNotificationMethodsByDeviceReq) String() string
- type ListFollowedUserNotificationMethodsByDeviceResp
- func (*ListFollowedUserNotificationMethodsByDeviceResp) Descriptor() ([]byte, []int)deprecated
- func (x *ListFollowedUserNotificationMethodsByDeviceResp) GetUserNotificationMethods() map[string]*NotificationMethod
- func (*ListFollowedUserNotificationMethodsByDeviceResp) ProtoMessage()
- func (x *ListFollowedUserNotificationMethodsByDeviceResp) ProtoReflect() protoreflect.Message
- func (x *ListFollowedUserNotificationMethodsByDeviceResp) Reset()
- func (x *ListFollowedUserNotificationMethodsByDeviceResp) String() string
- type ListUserOrder
- func (ListUserOrder) Descriptor() protoreflect.EnumDescriptor
- func (x ListUserOrder) Enum() *ListUserOrder
- func (ListUserOrder) EnumDescriptor() ([]byte, []int)deprecated
- func (x ListUserOrder) Number() protoreflect.EnumNumber
- func (x ListUserOrder) String() string
- func (ListUserOrder) Type() protoreflect.EnumType
- type ListUserReq
- func (*ListUserReq) Descriptor() ([]byte, []int)deprecated
- func (x *ListUserReq) GetFields() []string
- func (x *ListUserReq) GetId() string
- func (x *ListUserReq) GetOrder() ListUserOrder
- func (x *ListUserReq) GetPage() int32
- func (x *ListUserReq) GetRole() string
- func (x *ListUserReq) GetSize() int32
- func (x *ListUserReq) GetSort() Sort
- func (x *ListUserReq) GetStatus() string
- func (x *ListUserReq) GetUsername() string
- func (*ListUserReq) ProtoMessage()
- func (x *ListUserReq) ProtoReflect() protoreflect.Message
- func (x *ListUserReq) Reset()
- func (x *ListUserReq) String() string
- type ListUserResp
- func (*ListUserResp) Descriptor() ([]byte, []int)deprecated
- func (x *ListUserResp) GetTotal() int32
- func (x *ListUserResp) GetUsers() []*UserInfo
- func (*ListUserResp) ProtoMessage()
- func (x *ListUserResp) ProtoReflect() protoreflect.Message
- func (x *ListUserResp) Reset()
- func (x *ListUserResp) String() string
- type NotificationMethod
- func (*NotificationMethod) Descriptor() ([]byte, []int)deprecated
- func (x *NotificationMethod) GetEmail() string
- func (x *NotificationMethod) GetPhone() string
- func (*NotificationMethod) ProtoMessage()
- func (x *NotificationMethod) ProtoReflect() protoreflect.Message
- func (x *NotificationMethod) Reset()
- func (x *NotificationMethod) String() string
- type Role
- func (Role) Descriptor() protoreflect.EnumDescriptor
- func (x Role) Enum() *Role
- func (Role) EnumDescriptor() ([]byte, []int)deprecated
- func (u Role) IsAdmin() bool
- func (u Role) MarshalBinary() ([]byte, error)
- func (x Role) Number() protoreflect.EnumNumber
- func (u *Role) ScanRedis(s string) error
- func (x Role) String() string
- func (Role) Type() protoreflect.EnumType
- type SetUserPasswordReq
- func (*SetUserPasswordReq) Descriptor() ([]byte, []int)deprecated
- func (x *SetUserPasswordReq) GetId() string
- func (x *SetUserPasswordReq) GetPassword() string
- func (*SetUserPasswordReq) ProtoMessage()
- func (x *SetUserPasswordReq) ProtoReflect() protoreflect.Message
- func (x *SetUserPasswordReq) Reset()
- func (x *SetUserPasswordReq) String() string
- type SetUserRoleReq
- func (*SetUserRoleReq) Descriptor() ([]byte, []int)deprecated
- func (x *SetUserRoleReq) GetId() string
- func (x *SetUserRoleReq) GetRole() Role
- func (*SetUserRoleReq) ProtoMessage()
- func (x *SetUserRoleReq) ProtoReflect() protoreflect.Message
- func (x *SetUserRoleReq) Reset()
- func (x *SetUserRoleReq) String() string
- type SetUserStatusReq
- func (*SetUserStatusReq) Descriptor() ([]byte, []int)deprecated
- func (x *SetUserStatusReq) GetId() string
- func (x *SetUserStatusReq) GetStatus() Status
- func (*SetUserStatusReq) ProtoMessage()
- func (x *SetUserStatusReq) ProtoReflect() protoreflect.Message
- func (x *SetUserStatusReq) Reset()
- func (x *SetUserStatusReq) String() string
- type SetUsernameReq
- func (*SetUsernameReq) Descriptor() ([]byte, []int)deprecated
- func (x *SetUsernameReq) GetId() string
- func (x *SetUsernameReq) GetUsername() string
- func (*SetUsernameReq) ProtoMessage()
- func (x *SetUsernameReq) ProtoReflect() protoreflect.Message
- func (x *SetUsernameReq) Reset()
- func (x *SetUsernameReq) String() string
- type SetUsernameResp
- type Sort
- type Status
- func (Status) Descriptor() protoreflect.EnumDescriptor
- func (x Status) Enum() *Status
- func (Status) EnumDescriptor() ([]byte, []int)deprecated
- func (u Status) IsActice() bool
- func (u Status) IsInActive() bool
- func (u Status) MarshalBinary() ([]byte, error)
- func (x Status) Number() protoreflect.EnumNumber
- func (u *Status) ScanRedis(s string) error
- func (x Status) String() string
- func (Status) Type() protoreflect.EnumType
- type UnbindEmailReq
- type UnfollowAllDeviceReq
- func (*UnfollowAllDeviceReq) Descriptor() ([]byte, []int)deprecated
- func (x *UnfollowAllDeviceReq) GetUserId() string
- func (*UnfollowAllDeviceReq) ProtoMessage()
- func (x *UnfollowAllDeviceReq) ProtoReflect() protoreflect.Message
- func (x *UnfollowAllDeviceReq) Reset()
- func (x *UnfollowAllDeviceReq) String() string
- type UnfollowDeviceReq
- func (*UnfollowDeviceReq) Descriptor() ([]byte, []int)deprecated
- func (x *UnfollowDeviceReq) GetDeviceId() uint64
- func (x *UnfollowDeviceReq) GetUserId() string
- func (*UnfollowDeviceReq) ProtoMessage()
- func (x *UnfollowDeviceReq) ProtoReflect() protoreflect.Message
- func (x *UnfollowDeviceReq) Reset()
- func (x *UnfollowDeviceReq) String() string
- type UnimplementedUserServer
- func (UnimplementedUserServer) BindEmail(context.Context, *BindEmailReq) (*Empty, error)
- func (UnimplementedUserServer) CreateUser(context.Context, *CreateUserReq) (*UserInfo, error)
- func (UnimplementedUserServer) FollowAllDevice(context.Context, *FollowAllDeviceReq) (*Empty, error)
- func (UnimplementedUserServer) FollowDevice(context.Context, *FollowDeviceReq) (*Empty, error)
- func (UnimplementedUserServer) GetUserId(context.Context, *GetUserIdReq) (*GetUserIdResp, error)
- func (UnimplementedUserServer) GetUserInfo(context.Context, *GetUserInfoReq) (*UserInfo, error)
- func (UnimplementedUserServer) GetUserInfoByUsername(context.Context, *GetUserInfoByUsernameReq) (*UserInfo, error)
- func (UnimplementedUserServer) GetUserLastSeen(context.Context, *GetUserLastSeenReq) (*UserLastSeen, error)
- func (UnimplementedUserServer) GetUserPasswordVersion(context.Context, *GetUserPasswordVersionReq) (*GetUserPasswordVersionResp, error)
- func (UnimplementedUserServer) HasFollowedDevice(context.Context, *HasFollowedDeviceReq) (*HasFollowedDeviceResp, error)
- func (UnimplementedUserServer) ListFollowedDeviceIDs(context.Context, *ListFollowedDeviceIDsReq) (*ListFollowedDeviceIDsResp, error)
- func (UnimplementedUserServer) ListFollowedUserIDsByDevice(context.Context, *ListFollowedUserIDsByDeviceReq) (*ListFollowedUserIDsByDeviceResp, error)
- func (UnimplementedUserServer) ListFollowedUserNotificationMethodsByDevice(context.Context, *ListFollowedUserNotificationMethodsByDeviceReq) (*ListFollowedUserNotificationMethodsByDeviceResp, error)
- func (UnimplementedUserServer) ListUser(context.Context, *ListUserReq) (*ListUserResp, error)
- func (UnimplementedUserServer) SetUserPassword(context.Context, *SetUserPasswordReq) (*Empty, error)
- func (UnimplementedUserServer) SetUserRole(context.Context, *SetUserRoleReq) (*Empty, error)
- func (UnimplementedUserServer) SetUserStatus(context.Context, *SetUserStatusReq) (*Empty, error)
- func (UnimplementedUserServer) SetUsername(context.Context, *SetUsernameReq) (*SetUsernameResp, error)
- func (UnimplementedUserServer) UnbindEmail(context.Context, *UnbindEmailReq) (*Empty, error)
- func (UnimplementedUserServer) UnfollowAllDevice(context.Context, *UnfollowAllDeviceReq) (*Empty, error)
- func (UnimplementedUserServer) UnfollowDevice(context.Context, *UnfollowDeviceReq) (*Empty, error)
- func (UnimplementedUserServer) UpdateUserLastSeen(context.Context, *UpdateUserLastSeenReq) (*Empty, error)
- func (UnimplementedUserServer) ValidateUserPassword(context.Context, *ValidateUserPasswordReq) (*ValidateUserPasswordResp, error)
- type UnsafeUserServer
- type UpdateUserLastSeenReq
- func (*UpdateUserLastSeenReq) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateUserLastSeenReq) GetId() string
- func (x *UpdateUserLastSeenReq) GetLastSeen() *UserLastSeen
- func (*UpdateUserLastSeenReq) ProtoMessage()
- func (x *UpdateUserLastSeenReq) ProtoReflect() protoreflect.Message
- func (x *UpdateUserLastSeenReq) Reset()
- func (x *UpdateUserLastSeenReq) String() string
- type UserClient
- type UserHTTPClient
- type UserHTTPClientImpl
- func (c *UserHTTPClientImpl) BindEmail(ctx context.Context, in *BindEmailReq, opts ...http.CallOption) (*Empty, error)
- func (c *UserHTTPClientImpl) CreateUser(ctx context.Context, in *CreateUserReq, opts ...http.CallOption) (*UserInfo, error)
- func (c *UserHTTPClientImpl) FollowAllDevice(ctx context.Context, in *FollowAllDeviceReq, opts ...http.CallOption) (*Empty, error)
- func (c *UserHTTPClientImpl) FollowDevice(ctx context.Context, in *FollowDeviceReq, opts ...http.CallOption) (*Empty, error)
- func (c *UserHTTPClientImpl) GetUserId(ctx context.Context, in *GetUserIdReq, opts ...http.CallOption) (*GetUserIdResp, error)
- func (c *UserHTTPClientImpl) GetUserInfo(ctx context.Context, in *GetUserInfoReq, opts ...http.CallOption) (*UserInfo, error)
- func (c *UserHTTPClientImpl) GetUserInfoByUsername(ctx context.Context, in *GetUserInfoByUsernameReq, opts ...http.CallOption) (*UserInfo, error)
- func (c *UserHTTPClientImpl) GetUserLastSeen(ctx context.Context, in *GetUserLastSeenReq, opts ...http.CallOption) (*UserLastSeen, error)
- func (c *UserHTTPClientImpl) GetUserPasswordVersion(ctx context.Context, in *GetUserPasswordVersionReq, opts ...http.CallOption) (*GetUserPasswordVersionResp, error)
- func (c *UserHTTPClientImpl) HasFollowedDevice(ctx context.Context, in *HasFollowedDeviceReq, opts ...http.CallOption) (*HasFollowedDeviceResp, error)
- func (c *UserHTTPClientImpl) ListFollowedDeviceIDs(ctx context.Context, in *ListFollowedDeviceIDsReq, opts ...http.CallOption) (*ListFollowedDeviceIDsResp, error)
- func (c *UserHTTPClientImpl) ListFollowedUserIDsByDevice(ctx context.Context, in *ListFollowedUserIDsByDeviceReq, ...) (*ListFollowedUserIDsByDeviceResp, error)
- func (c *UserHTTPClientImpl) ListFollowedUserNotificationMethodsByDevice(ctx context.Context, in *ListFollowedUserNotificationMethodsByDeviceReq, ...) (*ListFollowedUserNotificationMethodsByDeviceResp, error)
- func (c *UserHTTPClientImpl) ListUser(ctx context.Context, in *ListUserReq, opts ...http.CallOption) (*ListUserResp, error)
- func (c *UserHTTPClientImpl) SetUserPassword(ctx context.Context, in *SetUserPasswordReq, opts ...http.CallOption) (*Empty, error)
- func (c *UserHTTPClientImpl) SetUserRole(ctx context.Context, in *SetUserRoleReq, opts ...http.CallOption) (*Empty, error)
- func (c *UserHTTPClientImpl) SetUserStatus(ctx context.Context, in *SetUserStatusReq, opts ...http.CallOption) (*Empty, error)
- func (c *UserHTTPClientImpl) SetUsername(ctx context.Context, in *SetUsernameReq, opts ...http.CallOption) (*SetUsernameResp, error)
- func (c *UserHTTPClientImpl) UnbindEmail(ctx context.Context, in *UnbindEmailReq, opts ...http.CallOption) (*Empty, error)
- func (c *UserHTTPClientImpl) UnfollowAllDevice(ctx context.Context, in *UnfollowAllDeviceReq, opts ...http.CallOption) (*Empty, error)
- func (c *UserHTTPClientImpl) UnfollowDevice(ctx context.Context, in *UnfollowDeviceReq, opts ...http.CallOption) (*Empty, error)
- func (c *UserHTTPClientImpl) UpdateUserLastSeen(ctx context.Context, in *UpdateUserLastSeenReq, opts ...http.CallOption) (*Empty, error)
- func (c *UserHTTPClientImpl) ValidateUserPassword(ctx context.Context, in *ValidateUserPasswordReq, opts ...http.CallOption) (*ValidateUserPasswordResp, error)
- type UserHTTPServer
- type UserInfo
- func (*UserInfo) Descriptor() ([]byte, []int)deprecated
- func (x *UserInfo) GetCreatedAt() int64
- func (x *UserInfo) GetEmail() string
- func (x *UserInfo) GetId() string
- func (x *UserInfo) GetPhone() string
- func (x *UserInfo) GetRole() Role
- func (x *UserInfo) GetStatus() Status
- func (x *UserInfo) GetUpdatedAt() int64
- func (x *UserInfo) GetUsername() string
- func (*UserInfo) ProtoMessage()
- func (x *UserInfo) ProtoReflect() protoreflect.Message
- func (x *UserInfo) Reset()
- func (x *UserInfo) String() string
- type UserLastSeen
- func (*UserLastSeen) Descriptor() ([]byte, []int)deprecated
- func (x *UserLastSeen) GetLastSeenAt() int64
- func (x *UserLastSeen) GetLastSeenIp() string
- func (*UserLastSeen) ProtoMessage()
- func (x *UserLastSeen) ProtoReflect() protoreflect.Message
- func (x *UserLastSeen) Reset()
- func (x *UserLastSeen) String() string
- type UserServer
- type ValidateUserPasswordReq
- func (*ValidateUserPasswordReq) Descriptor() ([]byte, []int)deprecated
- func (x *ValidateUserPasswordReq) GetId() string
- func (x *ValidateUserPasswordReq) GetPassword() string
- func (*ValidateUserPasswordReq) ProtoMessage()
- func (x *ValidateUserPasswordReq) ProtoReflect() protoreflect.Message
- func (x *ValidateUserPasswordReq) Reset()
- func (x *ValidateUserPasswordReq) String() string
- type ValidateUserPasswordResp
- func (*ValidateUserPasswordResp) Descriptor() ([]byte, []int)deprecated
- func (x *ValidateUserPasswordResp) GetValid() bool
- func (*ValidateUserPasswordResp) ProtoMessage()
- func (x *ValidateUserPasswordResp) ProtoReflect() protoreflect.Message
- func (x *ValidateUserPasswordResp) Reset()
- func (x *ValidateUserPasswordResp) String() string
Constants ¶
const ( User_CreateUser_FullMethodName = "/api.user.User/CreateUser" User_GetUserInfo_FullMethodName = "/api.user.User/GetUserInfo" User_GetUserInfoByUsername_FullMethodName = "/api.user.User/GetUserInfoByUsername" User_GetUserId_FullMethodName = "/api.user.User/GetUserId" User_ValidateUserPassword_FullMethodName = "/api.user.User/ValidateUserPassword" User_GetUserPasswordVersion_FullMethodName = "/api.user.User/GetUserPasswordVersion" User_SetUserPassword_FullMethodName = "/api.user.User/SetUserPassword" User_SetUserRole_FullMethodName = "/api.user.User/SetUserRole" User_SetUserStatus_FullMethodName = "/api.user.User/SetUserStatus" User_SetUsername_FullMethodName = "/api.user.User/SetUsername" User_ListUser_FullMethodName = "/api.user.User/ListUser" User_UpdateUserLastSeen_FullMethodName = "/api.user.User/UpdateUserLastSeen" User_GetUserLastSeen_FullMethodName = "/api.user.User/GetUserLastSeen" User_FollowDevice_FullMethodName = "/api.user.User/FollowDevice" User_UnfollowDevice_FullMethodName = "/api.user.User/UnfollowDevice" User_ListFollowedDeviceIDs_FullMethodName = "/api.user.User/ListFollowedDeviceIDs" User_ListFollowedUserIDsByDevice_FullMethodName = "/api.user.User/ListFollowedUserIDsByDevice" User_ListFollowedUserNotificationMethodsByDevice_FullMethodName = "/api.user.User/ListFollowedUserNotificationMethodsByDevice" User_HasFollowedDevice_FullMethodName = "/api.user.User/HasFollowedDevice" User_FollowAllDevice_FullMethodName = "/api.user.User/FollowAllDevice" User_UnfollowAllDevice_FullMethodName = "/api.user.User/UnfollowAllDevice" User_BindEmail_FullMethodName = "/api.user.User/BindEmail" User_UnbindEmail_FullMethodName = "/api.user.User/UnbindEmail" )
const OperationUserBindEmail = "/api.user.User/BindEmail"
const OperationUserCreateUser = "/api.user.User/CreateUser"
const OperationUserFollowAllDevice = "/api.user.User/FollowAllDevice"
const OperationUserFollowDevice = "/api.user.User/FollowDevice"
const OperationUserGetUserId = "/api.user.User/GetUserId"
const OperationUserGetUserInfo = "/api.user.User/GetUserInfo"
const OperationUserGetUserInfoByUsername = "/api.user.User/GetUserInfoByUsername"
const OperationUserGetUserLastSeen = "/api.user.User/GetUserLastSeen"
const OperationUserGetUserPasswordVersion = "/api.user.User/GetUserPasswordVersion"
const OperationUserHasFollowedDevice = "/api.user.User/HasFollowedDevice"
const OperationUserListFollowedDeviceIDs = "/api.user.User/ListFollowedDeviceIDs"
const OperationUserListFollowedUserIDsByDevice = "/api.user.User/ListFollowedUserIDsByDevice"
const OperationUserListFollowedUserNotificationMethodsByDevice = "/api.user.User/ListFollowedUserNotificationMethodsByDevice"
const OperationUserListUser = "/api.user.User/ListUser"
const OperationUserSetUserPassword = "/api.user.User/SetUserPassword"
const OperationUserSetUserRole = "/api.user.User/SetUserRole"
const OperationUserSetUserStatus = "/api.user.User/SetUserStatus"
const OperationUserSetUsername = "/api.user.User/SetUsername"
const OperationUserUnbindEmail = "/api.user.User/UnbindEmail"
const OperationUserUnfollowAllDevice = "/api.user.User/UnfollowAllDevice"
const OperationUserUnfollowDevice = "/api.user.User/UnfollowDevice"
const OperationUserUpdateUserLastSeen = "/api.user.User/UpdateUserLastSeen"
const OperationUserValidateUserPassword = "/api.user.User/ValidateUserPassword"
Variables ¶
var ( Role_name = map[int32]string{ 0: "USER", 1: "ADMIN", } Role_value = map[string]int32{ "USER": 0, "ADMIN": 1, } )
Enum value maps for Role.
var ( Status_name = map[int32]string{ 0: "ACTIVE", 1: "INACTIVE", } Status_value = map[string]int32{ "ACTIVE": 0, "INACTIVE": 1, } )
Enum value maps for Status.
var ( ListUserOrder_name = map[int32]string{ 0: "NAME", 1: "ROLE", 2: "STATUS", 3: "CREATED_AT", 4: "UPDATED_AT", } ListUserOrder_value = map[string]int32{ "NAME": 0, "ROLE": 1, "STATUS": 2, "CREATED_AT": 3, "UPDATED_AT": 4, } )
Enum value maps for ListUserOrder.
var ( Sort_name = map[int32]string{ 0: "DESC", 1: "ASC", } Sort_value = map[string]int32{ "DESC": 0, "ASC": 1, } )
Enum value maps for Sort.
var File_user_user_proto protoreflect.FileDescriptor
var User_ServiceDesc = grpc.ServiceDesc{ ServiceName: "api.user.User", HandlerType: (*UserServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateUser", Handler: _User_CreateUser_Handler, }, { MethodName: "GetUserInfo", Handler: _User_GetUserInfo_Handler, }, { MethodName: "GetUserInfoByUsername", Handler: _User_GetUserInfoByUsername_Handler, }, { MethodName: "GetUserId", Handler: _User_GetUserId_Handler, }, { MethodName: "ValidateUserPassword", Handler: _User_ValidateUserPassword_Handler, }, { MethodName: "GetUserPasswordVersion", Handler: _User_GetUserPasswordVersion_Handler, }, { MethodName: "SetUserPassword", Handler: _User_SetUserPassword_Handler, }, { MethodName: "SetUserRole", Handler: _User_SetUserRole_Handler, }, { MethodName: "SetUserStatus", Handler: _User_SetUserStatus_Handler, }, { MethodName: "SetUsername", Handler: _User_SetUsername_Handler, }, { MethodName: "ListUser", Handler: _User_ListUser_Handler, }, { MethodName: "UpdateUserLastSeen", Handler: _User_UpdateUserLastSeen_Handler, }, { MethodName: "GetUserLastSeen", Handler: _User_GetUserLastSeen_Handler, }, { MethodName: "FollowDevice", Handler: _User_FollowDevice_Handler, }, { MethodName: "UnfollowDevice", Handler: _User_UnfollowDevice_Handler, }, { MethodName: "ListFollowedDeviceIDs", Handler: _User_ListFollowedDeviceIDs_Handler, }, { MethodName: "ListFollowedUserIDsByDevice", Handler: _User_ListFollowedUserIDsByDevice_Handler, }, { MethodName: "ListFollowedUserNotificationMethodsByDevice", Handler: _User_ListFollowedUserNotificationMethodsByDevice_Handler, }, { MethodName: "HasFollowedDevice", Handler: _User_HasFollowedDevice_Handler, }, { MethodName: "FollowAllDevice", Handler: _User_FollowAllDevice_Handler, }, { MethodName: "UnfollowAllDevice", Handler: _User_UnfollowAllDevice_Handler, }, { MethodName: "BindEmail", Handler: _User_BindEmail_Handler, }, { MethodName: "UnbindEmail", Handler: _User_UnbindEmail_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "user/user.proto", }
User_ServiceDesc is the grpc.ServiceDesc for User service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterUserHTTPServer ¶
func RegisterUserHTTPServer(s *http.Server, srv UserHTTPServer)
func RegisterUserServer ¶
func RegisterUserServer(s grpc.ServiceRegistrar, srv UserServer)
Types ¶
type BindEmailReq ¶ added in v0.3.0
type BindEmailReq struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id" binding:"required"` // @gotags: json:"id" binding:"required" Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email" binding:"required"` // @gotags: json:"email" binding:"required" // contains filtered or unexported fields }
func (*BindEmailReq) Descriptor
deprecated
added in
v0.3.0
func (*BindEmailReq) Descriptor() ([]byte, []int)
Deprecated: Use BindEmailReq.ProtoReflect.Descriptor instead.
func (*BindEmailReq) GetEmail ¶ added in v0.3.0
func (x *BindEmailReq) GetEmail() string
func (*BindEmailReq) GetId ¶ added in v0.3.0
func (x *BindEmailReq) GetId() string
func (*BindEmailReq) ProtoMessage ¶ added in v0.3.0
func (*BindEmailReq) ProtoMessage()
func (*BindEmailReq) ProtoReflect ¶ added in v0.3.0
func (x *BindEmailReq) ProtoReflect() protoreflect.Message
func (*BindEmailReq) Reset ¶ added in v0.3.0
func (x *BindEmailReq) Reset()
func (*BindEmailReq) String ¶ added in v0.3.0
func (x *BindEmailReq) String() string
type CreateUserReq ¶
type CreateUserReq 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"` Role Role `protobuf:"varint,3,opt,name=role,proto3,enum=api.user.Role" json:"role,omitempty"` Status Status `protobuf:"varint,4,opt,name=status,proto3,enum=api.user.Status" json:"status,omitempty"` // contains filtered or unexported fields }
func (*CreateUserReq) Descriptor
deprecated
func (*CreateUserReq) Descriptor() ([]byte, []int)
Deprecated: Use CreateUserReq.ProtoReflect.Descriptor instead.
func (*CreateUserReq) GetPassword ¶
func (x *CreateUserReq) GetPassword() string
func (*CreateUserReq) GetRole ¶
func (x *CreateUserReq) GetRole() Role
func (*CreateUserReq) GetStatus ¶
func (x *CreateUserReq) GetStatus() Status
func (*CreateUserReq) GetUsername ¶ added in v0.2.2
func (x *CreateUserReq) GetUsername() string
func (*CreateUserReq) ProtoMessage ¶
func (*CreateUserReq) ProtoMessage()
func (*CreateUserReq) ProtoReflect ¶
func (x *CreateUserReq) ProtoReflect() protoreflect.Message
func (*CreateUserReq) Reset ¶
func (x *CreateUserReq) Reset()
func (*CreateUserReq) String ¶
func (x *CreateUserReq) String() string
type Empty ¶
type Empty struct {
// contains filtered or unexported fields
}
func (*Empty) Descriptor
deprecated
func (*Empty) ProtoMessage ¶
func (*Empty) ProtoMessage()
func (*Empty) ProtoReflect ¶
func (x *Empty) ProtoReflect() protoreflect.Message
type FollowAllDeviceReq ¶ added in v0.3.0
type FollowAllDeviceReq struct { UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // contains filtered or unexported fields }
func (*FollowAllDeviceReq) Descriptor
deprecated
added in
v0.3.0
func (*FollowAllDeviceReq) Descriptor() ([]byte, []int)
Deprecated: Use FollowAllDeviceReq.ProtoReflect.Descriptor instead.
func (*FollowAllDeviceReq) GetUserId ¶ added in v0.3.0
func (x *FollowAllDeviceReq) GetUserId() string
func (*FollowAllDeviceReq) ProtoMessage ¶ added in v0.3.0
func (*FollowAllDeviceReq) ProtoMessage()
func (*FollowAllDeviceReq) ProtoReflect ¶ added in v0.3.0
func (x *FollowAllDeviceReq) ProtoReflect() protoreflect.Message
func (*FollowAllDeviceReq) Reset ¶ added in v0.3.0
func (x *FollowAllDeviceReq) Reset()
func (*FollowAllDeviceReq) String ¶ added in v0.3.0
func (x *FollowAllDeviceReq) String() string
type FollowDeviceReq ¶ added in v0.3.0
type FollowDeviceReq struct { UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` DeviceId uint64 `protobuf:"varint,2,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"` // contains filtered or unexported fields }
func (*FollowDeviceReq) Descriptor
deprecated
added in
v0.3.0
func (*FollowDeviceReq) Descriptor() ([]byte, []int)
Deprecated: Use FollowDeviceReq.ProtoReflect.Descriptor instead.
func (*FollowDeviceReq) GetDeviceId ¶ added in v0.3.0
func (x *FollowDeviceReq) GetDeviceId() uint64
func (*FollowDeviceReq) GetUserId ¶ added in v0.3.0
func (x *FollowDeviceReq) GetUserId() string
func (*FollowDeviceReq) ProtoMessage ¶ added in v0.3.0
func (*FollowDeviceReq) ProtoMessage()
func (*FollowDeviceReq) ProtoReflect ¶ added in v0.3.0
func (x *FollowDeviceReq) ProtoReflect() protoreflect.Message
func (*FollowDeviceReq) Reset ¶ added in v0.3.0
func (x *FollowDeviceReq) Reset()
func (*FollowDeviceReq) String ¶ added in v0.3.0
func (x *FollowDeviceReq) String() string
type GetUserIdReq ¶
type GetUserIdReq struct { Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` // contains filtered or unexported fields }
func (*GetUserIdReq) Descriptor
deprecated
func (*GetUserIdReq) Descriptor() ([]byte, []int)
Deprecated: Use GetUserIdReq.ProtoReflect.Descriptor instead.
func (*GetUserIdReq) GetUsername ¶ added in v0.2.2
func (x *GetUserIdReq) GetUsername() string
func (*GetUserIdReq) ProtoMessage ¶
func (*GetUserIdReq) ProtoMessage()
func (*GetUserIdReq) ProtoReflect ¶
func (x *GetUserIdReq) ProtoReflect() protoreflect.Message
func (*GetUserIdReq) Reset ¶
func (x *GetUserIdReq) Reset()
func (*GetUserIdReq) String ¶
func (x *GetUserIdReq) String() string
type GetUserIdResp ¶
type GetUserIdResp struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*GetUserIdResp) Descriptor
deprecated
func (*GetUserIdResp) Descriptor() ([]byte, []int)
Deprecated: Use GetUserIdResp.ProtoReflect.Descriptor instead.
func (*GetUserIdResp) GetId ¶
func (x *GetUserIdResp) GetId() string
func (*GetUserIdResp) ProtoMessage ¶
func (*GetUserIdResp) ProtoMessage()
func (*GetUserIdResp) ProtoReflect ¶
func (x *GetUserIdResp) ProtoReflect() protoreflect.Message
func (*GetUserIdResp) Reset ¶
func (x *GetUserIdResp) Reset()
func (*GetUserIdResp) String ¶
func (x *GetUserIdResp) String() string
type GetUserInfoByUsernameReq ¶ added in v0.2.2
type GetUserInfoByUsernameReq struct { Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` Fields []string `protobuf:"bytes,2,rep,name=fields,proto3" json:"fields,omitempty"` // contains filtered or unexported fields }
func (*GetUserInfoByUsernameReq) Descriptor
deprecated
added in
v0.2.2
func (*GetUserInfoByUsernameReq) Descriptor() ([]byte, []int)
Deprecated: Use GetUserInfoByUsernameReq.ProtoReflect.Descriptor instead.
func (*GetUserInfoByUsernameReq) GetFields ¶ added in v0.2.2
func (x *GetUserInfoByUsernameReq) GetFields() []string
func (*GetUserInfoByUsernameReq) GetUsername ¶ added in v0.2.2
func (x *GetUserInfoByUsernameReq) GetUsername() string
func (*GetUserInfoByUsernameReq) ProtoMessage ¶ added in v0.2.2
func (*GetUserInfoByUsernameReq) ProtoMessage()
func (*GetUserInfoByUsernameReq) ProtoReflect ¶ added in v0.2.2
func (x *GetUserInfoByUsernameReq) ProtoReflect() protoreflect.Message
func (*GetUserInfoByUsernameReq) Reset ¶ added in v0.2.2
func (x *GetUserInfoByUsernameReq) Reset()
func (*GetUserInfoByUsernameReq) String ¶ added in v0.2.2
func (x *GetUserInfoByUsernameReq) String() string
type GetUserInfoReq ¶
type GetUserInfoReq struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Fields []string `protobuf:"bytes,2,rep,name=fields,proto3" json:"fields,omitempty"` // contains filtered or unexported fields }
func (*GetUserInfoReq) Descriptor
deprecated
func (*GetUserInfoReq) Descriptor() ([]byte, []int)
Deprecated: Use GetUserInfoReq.ProtoReflect.Descriptor instead.
func (*GetUserInfoReq) GetFields ¶
func (x *GetUserInfoReq) GetFields() []string
func (*GetUserInfoReq) GetId ¶
func (x *GetUserInfoReq) GetId() string
func (*GetUserInfoReq) ProtoMessage ¶
func (*GetUserInfoReq) ProtoMessage()
func (*GetUserInfoReq) ProtoReflect ¶
func (x *GetUserInfoReq) ProtoReflect() protoreflect.Message
func (*GetUserInfoReq) Reset ¶
func (x *GetUserInfoReq) Reset()
func (*GetUserInfoReq) String ¶
func (x *GetUserInfoReq) String() string
type GetUserLastSeenReq ¶ added in v0.2.3
type GetUserLastSeenReq struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*GetUserLastSeenReq) Descriptor
deprecated
added in
v0.2.3
func (*GetUserLastSeenReq) Descriptor() ([]byte, []int)
Deprecated: Use GetUserLastSeenReq.ProtoReflect.Descriptor instead.
func (*GetUserLastSeenReq) GetId ¶ added in v0.2.3
func (x *GetUserLastSeenReq) GetId() string
func (*GetUserLastSeenReq) ProtoMessage ¶ added in v0.2.3
func (*GetUserLastSeenReq) ProtoMessage()
func (*GetUserLastSeenReq) ProtoReflect ¶ added in v0.2.3
func (x *GetUserLastSeenReq) ProtoReflect() protoreflect.Message
func (*GetUserLastSeenReq) Reset ¶ added in v0.2.3
func (x *GetUserLastSeenReq) Reset()
func (*GetUserLastSeenReq) String ¶ added in v0.2.3
func (x *GetUserLastSeenReq) String() string
type GetUserPasswordVersionReq ¶
type GetUserPasswordVersionReq struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*GetUserPasswordVersionReq) Descriptor
deprecated
func (*GetUserPasswordVersionReq) Descriptor() ([]byte, []int)
Deprecated: Use GetUserPasswordVersionReq.ProtoReflect.Descriptor instead.
func (*GetUserPasswordVersionReq) GetId ¶
func (x *GetUserPasswordVersionReq) GetId() string
func (*GetUserPasswordVersionReq) ProtoMessage ¶
func (*GetUserPasswordVersionReq) ProtoMessage()
func (*GetUserPasswordVersionReq) ProtoReflect ¶
func (x *GetUserPasswordVersionReq) ProtoReflect() protoreflect.Message
func (*GetUserPasswordVersionReq) Reset ¶
func (x *GetUserPasswordVersionReq) Reset()
func (*GetUserPasswordVersionReq) String ¶
func (x *GetUserPasswordVersionReq) String() string
type GetUserPasswordVersionResp ¶
type GetUserPasswordVersionResp struct { Version uint32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"` // contains filtered or unexported fields }
func (*GetUserPasswordVersionResp) Descriptor
deprecated
func (*GetUserPasswordVersionResp) Descriptor() ([]byte, []int)
Deprecated: Use GetUserPasswordVersionResp.ProtoReflect.Descriptor instead.
func (*GetUserPasswordVersionResp) GetVersion ¶
func (x *GetUserPasswordVersionResp) GetVersion() uint32
func (*GetUserPasswordVersionResp) ProtoMessage ¶
func (*GetUserPasswordVersionResp) ProtoMessage()
func (*GetUserPasswordVersionResp) ProtoReflect ¶
func (x *GetUserPasswordVersionResp) ProtoReflect() protoreflect.Message
func (*GetUserPasswordVersionResp) Reset ¶
func (x *GetUserPasswordVersionResp) Reset()
func (*GetUserPasswordVersionResp) String ¶
func (x *GetUserPasswordVersionResp) String() string
type HasFollowedDeviceReq ¶ added in v0.3.0
type HasFollowedDeviceReq struct { UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` DeviceId uint64 `protobuf:"varint,2,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"` // contains filtered or unexported fields }
func (*HasFollowedDeviceReq) Descriptor
deprecated
added in
v0.3.0
func (*HasFollowedDeviceReq) Descriptor() ([]byte, []int)
Deprecated: Use HasFollowedDeviceReq.ProtoReflect.Descriptor instead.
func (*HasFollowedDeviceReq) GetDeviceId ¶ added in v0.3.0
func (x *HasFollowedDeviceReq) GetDeviceId() uint64
func (*HasFollowedDeviceReq) GetUserId ¶ added in v0.3.0
func (x *HasFollowedDeviceReq) GetUserId() string
func (*HasFollowedDeviceReq) ProtoMessage ¶ added in v0.3.0
func (*HasFollowedDeviceReq) ProtoMessage()
func (*HasFollowedDeviceReq) ProtoReflect ¶ added in v0.3.0
func (x *HasFollowedDeviceReq) ProtoReflect() protoreflect.Message
func (*HasFollowedDeviceReq) Reset ¶ added in v0.3.0
func (x *HasFollowedDeviceReq) Reset()
func (*HasFollowedDeviceReq) String ¶ added in v0.3.0
func (x *HasFollowedDeviceReq) String() string
type HasFollowedDeviceResp ¶ added in v0.3.0
type HasFollowedDeviceResp struct { Followed bool `protobuf:"varint,1,opt,name=followed,proto3" json:"followed,omitempty"` // contains filtered or unexported fields }
func (*HasFollowedDeviceResp) Descriptor
deprecated
added in
v0.3.0
func (*HasFollowedDeviceResp) Descriptor() ([]byte, []int)
Deprecated: Use HasFollowedDeviceResp.ProtoReflect.Descriptor instead.
func (*HasFollowedDeviceResp) GetFollowed ¶ added in v0.3.0
func (x *HasFollowedDeviceResp) GetFollowed() bool
func (*HasFollowedDeviceResp) ProtoMessage ¶ added in v0.3.0
func (*HasFollowedDeviceResp) ProtoMessage()
func (*HasFollowedDeviceResp) ProtoReflect ¶ added in v0.3.0
func (x *HasFollowedDeviceResp) ProtoReflect() protoreflect.Message
func (*HasFollowedDeviceResp) Reset ¶ added in v0.3.0
func (x *HasFollowedDeviceResp) Reset()
func (*HasFollowedDeviceResp) String ¶ added in v0.3.0
func (x *HasFollowedDeviceResp) String() string
type ListFollowedDeviceIDsReq ¶ added in v0.3.0
type ListFollowedDeviceIDsReq struct { UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // contains filtered or unexported fields }
func (*ListFollowedDeviceIDsReq) Descriptor
deprecated
added in
v0.3.0
func (*ListFollowedDeviceIDsReq) Descriptor() ([]byte, []int)
Deprecated: Use ListFollowedDeviceIDsReq.ProtoReflect.Descriptor instead.
func (*ListFollowedDeviceIDsReq) GetUserId ¶ added in v0.3.0
func (x *ListFollowedDeviceIDsReq) GetUserId() string
func (*ListFollowedDeviceIDsReq) ProtoMessage ¶ added in v0.3.0
func (*ListFollowedDeviceIDsReq) ProtoMessage()
func (*ListFollowedDeviceIDsReq) ProtoReflect ¶ added in v0.3.0
func (x *ListFollowedDeviceIDsReq) ProtoReflect() protoreflect.Message
func (*ListFollowedDeviceIDsReq) Reset ¶ added in v0.3.0
func (x *ListFollowedDeviceIDsReq) Reset()
func (*ListFollowedDeviceIDsReq) String ¶ added in v0.3.0
func (x *ListFollowedDeviceIDsReq) String() string
type ListFollowedDeviceIDsResp ¶ added in v0.3.0
type ListFollowedDeviceIDsResp struct { DeviceIds []uint64 `protobuf:"varint,1,rep,packed,name=device_ids,json=deviceIds,proto3" json:"device_ids,omitempty"` // contains filtered or unexported fields }
func (*ListFollowedDeviceIDsResp) Descriptor
deprecated
added in
v0.3.0
func (*ListFollowedDeviceIDsResp) Descriptor() ([]byte, []int)
Deprecated: Use ListFollowedDeviceIDsResp.ProtoReflect.Descriptor instead.
func (*ListFollowedDeviceIDsResp) GetDeviceIds ¶ added in v0.3.0
func (x *ListFollowedDeviceIDsResp) GetDeviceIds() []uint64
func (*ListFollowedDeviceIDsResp) ProtoMessage ¶ added in v0.3.0
func (*ListFollowedDeviceIDsResp) ProtoMessage()
func (*ListFollowedDeviceIDsResp) ProtoReflect ¶ added in v0.3.0
func (x *ListFollowedDeviceIDsResp) ProtoReflect() protoreflect.Message
func (*ListFollowedDeviceIDsResp) Reset ¶ added in v0.3.0
func (x *ListFollowedDeviceIDsResp) Reset()
func (*ListFollowedDeviceIDsResp) String ¶ added in v0.3.0
func (x *ListFollowedDeviceIDsResp) String() string
type ListFollowedUserIDsByDeviceReq ¶ added in v0.3.0
type ListFollowedUserIDsByDeviceReq struct { DeviceId uint64 `protobuf:"varint,1,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"` // contains filtered or unexported fields }
func (*ListFollowedUserIDsByDeviceReq) Descriptor
deprecated
added in
v0.3.0
func (*ListFollowedUserIDsByDeviceReq) Descriptor() ([]byte, []int)
Deprecated: Use ListFollowedUserIDsByDeviceReq.ProtoReflect.Descriptor instead.
func (*ListFollowedUserIDsByDeviceReq) GetDeviceId ¶ added in v0.3.0
func (x *ListFollowedUserIDsByDeviceReq) GetDeviceId() uint64
func (*ListFollowedUserIDsByDeviceReq) ProtoMessage ¶ added in v0.3.0
func (*ListFollowedUserIDsByDeviceReq) ProtoMessage()
func (*ListFollowedUserIDsByDeviceReq) ProtoReflect ¶ added in v0.3.0
func (x *ListFollowedUserIDsByDeviceReq) ProtoReflect() protoreflect.Message
func (*ListFollowedUserIDsByDeviceReq) Reset ¶ added in v0.3.0
func (x *ListFollowedUserIDsByDeviceReq) Reset()
func (*ListFollowedUserIDsByDeviceReq) String ¶ added in v0.3.0
func (x *ListFollowedUserIDsByDeviceReq) String() string
type ListFollowedUserIDsByDeviceResp ¶ added in v0.3.0
type ListFollowedUserIDsByDeviceResp struct { UserIds []string `protobuf:"bytes,1,rep,name=user_ids,json=userIds,proto3" json:"user_ids,omitempty"` // contains filtered or unexported fields }
func (*ListFollowedUserIDsByDeviceResp) Descriptor
deprecated
added in
v0.3.0
func (*ListFollowedUserIDsByDeviceResp) Descriptor() ([]byte, []int)
Deprecated: Use ListFollowedUserIDsByDeviceResp.ProtoReflect.Descriptor instead.
func (*ListFollowedUserIDsByDeviceResp) GetUserIds ¶ added in v0.3.0
func (x *ListFollowedUserIDsByDeviceResp) GetUserIds() []string
func (*ListFollowedUserIDsByDeviceResp) ProtoMessage ¶ added in v0.3.0
func (*ListFollowedUserIDsByDeviceResp) ProtoMessage()
func (*ListFollowedUserIDsByDeviceResp) ProtoReflect ¶ added in v0.3.0
func (x *ListFollowedUserIDsByDeviceResp) ProtoReflect() protoreflect.Message
func (*ListFollowedUserIDsByDeviceResp) Reset ¶ added in v0.3.0
func (x *ListFollowedUserIDsByDeviceResp) Reset()
func (*ListFollowedUserIDsByDeviceResp) String ¶ added in v0.3.0
func (x *ListFollowedUserIDsByDeviceResp) String() string
type ListFollowedUserNotificationMethodsByDeviceReq ¶ added in v0.3.3
type ListFollowedUserNotificationMethodsByDeviceReq struct { DeviceId uint64 `protobuf:"varint,1,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"` // contains filtered or unexported fields }
func (*ListFollowedUserNotificationMethodsByDeviceReq) Descriptor
deprecated
added in
v0.3.3
func (*ListFollowedUserNotificationMethodsByDeviceReq) Descriptor() ([]byte, []int)
Deprecated: Use ListFollowedUserNotificationMethodsByDeviceReq.ProtoReflect.Descriptor instead.
func (*ListFollowedUserNotificationMethodsByDeviceReq) GetDeviceId ¶ added in v0.3.3
func (x *ListFollowedUserNotificationMethodsByDeviceReq) GetDeviceId() uint64
func (*ListFollowedUserNotificationMethodsByDeviceReq) ProtoMessage ¶ added in v0.3.3
func (*ListFollowedUserNotificationMethodsByDeviceReq) ProtoMessage()
func (*ListFollowedUserNotificationMethodsByDeviceReq) ProtoReflect ¶ added in v0.3.3
func (x *ListFollowedUserNotificationMethodsByDeviceReq) ProtoReflect() protoreflect.Message
func (*ListFollowedUserNotificationMethodsByDeviceReq) Reset ¶ added in v0.3.3
func (x *ListFollowedUserNotificationMethodsByDeviceReq) Reset()
func (*ListFollowedUserNotificationMethodsByDeviceReq) String ¶ added in v0.3.3
func (x *ListFollowedUserNotificationMethodsByDeviceReq) String() string
type ListFollowedUserNotificationMethodsByDeviceResp ¶ added in v0.3.3
type ListFollowedUserNotificationMethodsByDeviceResp struct { UserNotificationMethods map[string]*NotificationMethod `` /* 220-byte string literal not displayed */ // contains filtered or unexported fields }
func (*ListFollowedUserNotificationMethodsByDeviceResp) Descriptor
deprecated
added in
v0.3.3
func (*ListFollowedUserNotificationMethodsByDeviceResp) Descriptor() ([]byte, []int)
Deprecated: Use ListFollowedUserNotificationMethodsByDeviceResp.ProtoReflect.Descriptor instead.
func (*ListFollowedUserNotificationMethodsByDeviceResp) GetUserNotificationMethods ¶ added in v0.3.3
func (x *ListFollowedUserNotificationMethodsByDeviceResp) GetUserNotificationMethods() map[string]*NotificationMethod
func (*ListFollowedUserNotificationMethodsByDeviceResp) ProtoMessage ¶ added in v0.3.3
func (*ListFollowedUserNotificationMethodsByDeviceResp) ProtoMessage()
func (*ListFollowedUserNotificationMethodsByDeviceResp) ProtoReflect ¶ added in v0.3.3
func (x *ListFollowedUserNotificationMethodsByDeviceResp) ProtoReflect() protoreflect.Message
func (*ListFollowedUserNotificationMethodsByDeviceResp) Reset ¶ added in v0.3.3
func (x *ListFollowedUserNotificationMethodsByDeviceResp) Reset()
func (*ListFollowedUserNotificationMethodsByDeviceResp) String ¶ added in v0.3.3
func (x *ListFollowedUserNotificationMethodsByDeviceResp) String() string
type ListUserOrder ¶ added in v0.2.1
type ListUserOrder int32
const ( ListUserOrder_NAME ListUserOrder = 0 ListUserOrder_ROLE ListUserOrder = 1 ListUserOrder_STATUS ListUserOrder = 2 ListUserOrder_CREATED_AT ListUserOrder = 3 ListUserOrder_UPDATED_AT ListUserOrder = 4 )
func (ListUserOrder) Descriptor ¶ added in v0.2.1
func (ListUserOrder) Descriptor() protoreflect.EnumDescriptor
func (ListUserOrder) Enum ¶ added in v0.2.1
func (x ListUserOrder) Enum() *ListUserOrder
func (ListUserOrder) EnumDescriptor
deprecated
added in
v0.2.1
func (ListUserOrder) EnumDescriptor() ([]byte, []int)
Deprecated: Use ListUserOrder.Descriptor instead.
func (ListUserOrder) Number ¶ added in v0.2.1
func (x ListUserOrder) Number() protoreflect.EnumNumber
func (ListUserOrder) String ¶ added in v0.2.1
func (x ListUserOrder) String() string
func (ListUserOrder) Type ¶ added in v0.2.1
func (ListUserOrder) Type() protoreflect.EnumType
type ListUserReq ¶
type ListUserReq struct { Page int32 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty" form:"page"` // @gotags: form:"page" Size int32 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty" form:"size"` // @gotags: form:"size" Order ListUserOrder `protobuf:"varint,3,opt,name=order,proto3,enum=api.user.ListUserOrder" json:"order,omitempty" form:"order"` // @gotags: form:"order" Sort Sort `protobuf:"varint,4,opt,name=sort,proto3,enum=api.user.Sort" json:"sort,omitempty" form:"sort"` // @gotags: form:"sort" Fields []string `protobuf:"bytes,5,rep,name=fields,proto3" json:"fields,omitempty" form:"fields"` // @gotags: form:"fields" Id string `protobuf:"bytes,6,opt,name=id,proto3" json:"id,omitempty" form:"id"` // @gotags: form:"id" Username string `protobuf:"bytes,7,opt,name=username,proto3" json:"username,omitempty" form:"username"` // @gotags: form:"username" Role string `protobuf:"bytes,8,opt,name=role,proto3" json:"role,omitempty" form:"role"` // @gotags: form:"role" Status string `protobuf:"bytes,9,opt,name=status,proto3" json:"status,omitempty" form:"status"` // @gotags: form:"status" // contains filtered or unexported fields }
func (*ListUserReq) Descriptor
deprecated
func (*ListUserReq) Descriptor() ([]byte, []int)
Deprecated: Use ListUserReq.ProtoReflect.Descriptor instead.
func (*ListUserReq) GetFields ¶ added in v0.2.1
func (x *ListUserReq) GetFields() []string
func (*ListUserReq) GetId ¶
func (x *ListUserReq) GetId() string
func (*ListUserReq) GetOrder ¶ added in v0.2.1
func (x *ListUserReq) GetOrder() ListUserOrder
func (*ListUserReq) GetPage ¶
func (x *ListUserReq) GetPage() int32
func (*ListUserReq) GetRole ¶
func (x *ListUserReq) GetRole() string
func (*ListUserReq) GetSize ¶
func (x *ListUserReq) GetSize() int32
func (*ListUserReq) GetSort ¶ added in v0.2.1
func (x *ListUserReq) GetSort() Sort
func (*ListUserReq) GetStatus ¶
func (x *ListUserReq) GetStatus() string
func (*ListUserReq) GetUsername ¶ added in v0.2.2
func (x *ListUserReq) GetUsername() string
func (*ListUserReq) ProtoMessage ¶
func (*ListUserReq) ProtoMessage()
func (*ListUserReq) ProtoReflect ¶
func (x *ListUserReq) ProtoReflect() protoreflect.Message
func (*ListUserReq) Reset ¶
func (x *ListUserReq) Reset()
func (*ListUserReq) String ¶
func (x *ListUserReq) String() string
type ListUserResp ¶
type ListUserResp struct { Users []*UserInfo `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"` Total int32 `protobuf:"varint,4,opt,name=total,proto3" json:"total,omitempty"` // contains filtered or unexported fields }
func (*ListUserResp) Descriptor
deprecated
func (*ListUserResp) Descriptor() ([]byte, []int)
Deprecated: Use ListUserResp.ProtoReflect.Descriptor instead.
func (*ListUserResp) GetTotal ¶
func (x *ListUserResp) GetTotal() int32
func (*ListUserResp) GetUsers ¶
func (x *ListUserResp) GetUsers() []*UserInfo
func (*ListUserResp) ProtoMessage ¶
func (*ListUserResp) ProtoMessage()
func (*ListUserResp) ProtoReflect ¶
func (x *ListUserResp) ProtoReflect() protoreflect.Message
func (*ListUserResp) Reset ¶
func (x *ListUserResp) Reset()
func (*ListUserResp) String ¶
func (x *ListUserResp) String() string
type NotificationMethod ¶ added in v0.3.3
type NotificationMethod struct { Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` Phone string `protobuf:"bytes,2,opt,name=phone,proto3" json:"phone,omitempty"` // contains filtered or unexported fields }
func (*NotificationMethod) Descriptor
deprecated
added in
v0.3.3
func (*NotificationMethod) Descriptor() ([]byte, []int)
Deprecated: Use NotificationMethod.ProtoReflect.Descriptor instead.
func (*NotificationMethod) GetEmail ¶ added in v0.3.3
func (x *NotificationMethod) GetEmail() string
func (*NotificationMethod) GetPhone ¶ added in v0.3.3
func (x *NotificationMethod) GetPhone() string
func (*NotificationMethod) ProtoMessage ¶ added in v0.3.3
func (*NotificationMethod) ProtoMessage()
func (*NotificationMethod) ProtoReflect ¶ added in v0.3.3
func (x *NotificationMethod) ProtoReflect() protoreflect.Message
func (*NotificationMethod) Reset ¶ added in v0.3.3
func (x *NotificationMethod) Reset()
func (*NotificationMethod) String ¶ added in v0.3.3
func (x *NotificationMethod) String() string
type Role ¶
type Role int32
func StringToRole ¶ added in v0.2.1
func (Role) Descriptor ¶
func (Role) Descriptor() protoreflect.EnumDescriptor
func (Role) EnumDescriptor
deprecated
func (Role) MarshalBinary ¶
func (Role) Number ¶
func (x Role) Number() protoreflect.EnumNumber
func (Role) Type ¶
func (Role) Type() protoreflect.EnumType
type SetUserPasswordReq ¶
type SetUserPasswordReq struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` // contains filtered or unexported fields }
func (*SetUserPasswordReq) Descriptor
deprecated
func (*SetUserPasswordReq) Descriptor() ([]byte, []int)
Deprecated: Use SetUserPasswordReq.ProtoReflect.Descriptor instead.
func (*SetUserPasswordReq) GetId ¶
func (x *SetUserPasswordReq) GetId() string
func (*SetUserPasswordReq) GetPassword ¶
func (x *SetUserPasswordReq) GetPassword() string
func (*SetUserPasswordReq) ProtoMessage ¶
func (*SetUserPasswordReq) ProtoMessage()
func (*SetUserPasswordReq) ProtoReflect ¶
func (x *SetUserPasswordReq) ProtoReflect() protoreflect.Message
func (*SetUserPasswordReq) Reset ¶
func (x *SetUserPasswordReq) Reset()
func (*SetUserPasswordReq) String ¶
func (x *SetUserPasswordReq) String() string
type SetUserRoleReq ¶
type SetUserRoleReq struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id" binding:"required"` // @gotags: json:"id" binding:"required" Role Role `protobuf:"varint,2,opt,name=role,proto3,enum=api.user.Role" json:"role" binding:"required"` // @gotags: json:"role" binding:"required" // contains filtered or unexported fields }
func (*SetUserRoleReq) Descriptor
deprecated
func (*SetUserRoleReq) Descriptor() ([]byte, []int)
Deprecated: Use SetUserRoleReq.ProtoReflect.Descriptor instead.
func (*SetUserRoleReq) GetId ¶
func (x *SetUserRoleReq) GetId() string
func (*SetUserRoleReq) GetRole ¶
func (x *SetUserRoleReq) GetRole() Role
func (*SetUserRoleReq) ProtoMessage ¶
func (*SetUserRoleReq) ProtoMessage()
func (*SetUserRoleReq) ProtoReflect ¶
func (x *SetUserRoleReq) ProtoReflect() protoreflect.Message
func (*SetUserRoleReq) Reset ¶
func (x *SetUserRoleReq) Reset()
func (*SetUserRoleReq) String ¶
func (x *SetUserRoleReq) String() string
type SetUserStatusReq ¶
type SetUserStatusReq struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id" binding:"required"` // @gotags: json:"id" binding:"required" Status Status `protobuf:"varint,2,opt,name=status,proto3,enum=api.user.Status" json:"status" binding:"required"` // @gotags: json:"status" binding:"required" // contains filtered or unexported fields }
func (*SetUserStatusReq) Descriptor
deprecated
func (*SetUserStatusReq) Descriptor() ([]byte, []int)
Deprecated: Use SetUserStatusReq.ProtoReflect.Descriptor instead.
func (*SetUserStatusReq) GetId ¶
func (x *SetUserStatusReq) GetId() string
func (*SetUserStatusReq) GetStatus ¶
func (x *SetUserStatusReq) GetStatus() Status
func (*SetUserStatusReq) ProtoMessage ¶
func (*SetUserStatusReq) ProtoMessage()
func (*SetUserStatusReq) ProtoReflect ¶
func (x *SetUserStatusReq) ProtoReflect() protoreflect.Message
func (*SetUserStatusReq) Reset ¶
func (x *SetUserStatusReq) Reset()
func (*SetUserStatusReq) String ¶
func (x *SetUserStatusReq) String() string
type SetUsernameReq ¶ added in v0.2.2
type SetUsernameReq struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id" binding:"required"` // @gotags: json:"id" binding:"required" Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username" binding:"required"` // @gotags: json:"username" binding:"required" // contains filtered or unexported fields }
func (*SetUsernameReq) Descriptor
deprecated
added in
v0.2.2
func (*SetUsernameReq) Descriptor() ([]byte, []int)
Deprecated: Use SetUsernameReq.ProtoReflect.Descriptor instead.
func (*SetUsernameReq) GetId ¶ added in v0.2.2
func (x *SetUsernameReq) GetId() string
func (*SetUsernameReq) GetUsername ¶ added in v0.2.2
func (x *SetUsernameReq) GetUsername() string
func (*SetUsernameReq) ProtoMessage ¶ added in v0.2.2
func (*SetUsernameReq) ProtoMessage()
func (*SetUsernameReq) ProtoReflect ¶ added in v0.2.2
func (x *SetUsernameReq) ProtoReflect() protoreflect.Message
func (*SetUsernameReq) Reset ¶ added in v0.2.2
func (x *SetUsernameReq) Reset()
func (*SetUsernameReq) String ¶ added in v0.2.2
func (x *SetUsernameReq) String() string
type SetUsernameResp ¶ added in v0.2.2
type SetUsernameResp struct { OldUsername string `protobuf:"bytes,1,opt,name=old_username,json=oldUsername,proto3" json:"oldUsername"` // @gotags: json:"oldUsername" // contains filtered or unexported fields }
func (*SetUsernameResp) Descriptor
deprecated
added in
v0.2.2
func (*SetUsernameResp) Descriptor() ([]byte, []int)
Deprecated: Use SetUsernameResp.ProtoReflect.Descriptor instead.
func (*SetUsernameResp) GetOldUsername ¶ added in v0.2.2
func (x *SetUsernameResp) GetOldUsername() string
func (*SetUsernameResp) ProtoMessage ¶ added in v0.2.2
func (*SetUsernameResp) ProtoMessage()
func (*SetUsernameResp) ProtoReflect ¶ added in v0.2.2
func (x *SetUsernameResp) ProtoReflect() protoreflect.Message
func (*SetUsernameResp) Reset ¶ added in v0.2.2
func (x *SetUsernameResp) Reset()
func (*SetUsernameResp) String ¶ added in v0.2.2
func (x *SetUsernameResp) String() string
type Sort ¶ added in v0.2.1
type Sort int32
func (Sort) Descriptor ¶ added in v0.2.1
func (Sort) Descriptor() protoreflect.EnumDescriptor
func (Sort) EnumDescriptor
deprecated
added in
v0.2.1
func (Sort) Number ¶ added in v0.2.1
func (x Sort) Number() protoreflect.EnumNumber
func (Sort) Type ¶ added in v0.2.1
func (Sort) Type() protoreflect.EnumType
type Status ¶
type Status int32
func StringToStatus ¶ added in v0.2.1
func (Status) Descriptor ¶
func (Status) Descriptor() protoreflect.EnumDescriptor
func (Status) EnumDescriptor
deprecated
func (Status) IsInActive ¶
func (Status) MarshalBinary ¶
func (Status) Number ¶
func (x Status) Number() protoreflect.EnumNumber
func (Status) Type ¶
func (Status) Type() protoreflect.EnumType
type UnbindEmailReq ¶ added in v0.3.0
type UnbindEmailReq struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id" binding:"required"` // @gotags: json:"id" binding:"required" // contains filtered or unexported fields }
func (*UnbindEmailReq) Descriptor
deprecated
added in
v0.3.0
func (*UnbindEmailReq) Descriptor() ([]byte, []int)
Deprecated: Use UnbindEmailReq.ProtoReflect.Descriptor instead.
func (*UnbindEmailReq) GetId ¶ added in v0.3.0
func (x *UnbindEmailReq) GetId() string
func (*UnbindEmailReq) ProtoMessage ¶ added in v0.3.0
func (*UnbindEmailReq) ProtoMessage()
func (*UnbindEmailReq) ProtoReflect ¶ added in v0.3.0
func (x *UnbindEmailReq) ProtoReflect() protoreflect.Message
func (*UnbindEmailReq) Reset ¶ added in v0.3.0
func (x *UnbindEmailReq) Reset()
func (*UnbindEmailReq) String ¶ added in v0.3.0
func (x *UnbindEmailReq) String() string
type UnfollowAllDeviceReq ¶ added in v0.3.0
type UnfollowAllDeviceReq struct { UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // contains filtered or unexported fields }
func (*UnfollowAllDeviceReq) Descriptor
deprecated
added in
v0.3.0
func (*UnfollowAllDeviceReq) Descriptor() ([]byte, []int)
Deprecated: Use UnfollowAllDeviceReq.ProtoReflect.Descriptor instead.
func (*UnfollowAllDeviceReq) GetUserId ¶ added in v0.3.0
func (x *UnfollowAllDeviceReq) GetUserId() string
func (*UnfollowAllDeviceReq) ProtoMessage ¶ added in v0.3.0
func (*UnfollowAllDeviceReq) ProtoMessage()
func (*UnfollowAllDeviceReq) ProtoReflect ¶ added in v0.3.0
func (x *UnfollowAllDeviceReq) ProtoReflect() protoreflect.Message
func (*UnfollowAllDeviceReq) Reset ¶ added in v0.3.0
func (x *UnfollowAllDeviceReq) Reset()
func (*UnfollowAllDeviceReq) String ¶ added in v0.3.0
func (x *UnfollowAllDeviceReq) String() string
type UnfollowDeviceReq ¶ added in v0.3.0
type UnfollowDeviceReq struct { UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` DeviceId uint64 `protobuf:"varint,2,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"` // contains filtered or unexported fields }
func (*UnfollowDeviceReq) Descriptor
deprecated
added in
v0.3.0
func (*UnfollowDeviceReq) Descriptor() ([]byte, []int)
Deprecated: Use UnfollowDeviceReq.ProtoReflect.Descriptor instead.
func (*UnfollowDeviceReq) GetDeviceId ¶ added in v0.3.0
func (x *UnfollowDeviceReq) GetDeviceId() uint64
func (*UnfollowDeviceReq) GetUserId ¶ added in v0.3.0
func (x *UnfollowDeviceReq) GetUserId() string
func (*UnfollowDeviceReq) ProtoMessage ¶ added in v0.3.0
func (*UnfollowDeviceReq) ProtoMessage()
func (*UnfollowDeviceReq) ProtoReflect ¶ added in v0.3.0
func (x *UnfollowDeviceReq) ProtoReflect() protoreflect.Message
func (*UnfollowDeviceReq) Reset ¶ added in v0.3.0
func (x *UnfollowDeviceReq) Reset()
func (*UnfollowDeviceReq) String ¶ added in v0.3.0
func (x *UnfollowDeviceReq) String() string
type UnimplementedUserServer ¶
type UnimplementedUserServer struct{}
UnimplementedUserServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedUserServer) BindEmail ¶ added in v0.3.0
func (UnimplementedUserServer) BindEmail(context.Context, *BindEmailReq) (*Empty, error)
func (UnimplementedUserServer) CreateUser ¶
func (UnimplementedUserServer) CreateUser(context.Context, *CreateUserReq) (*UserInfo, error)
func (UnimplementedUserServer) FollowAllDevice ¶ added in v0.3.0
func (UnimplementedUserServer) FollowAllDevice(context.Context, *FollowAllDeviceReq) (*Empty, error)
func (UnimplementedUserServer) FollowDevice ¶ added in v0.3.0
func (UnimplementedUserServer) FollowDevice(context.Context, *FollowDeviceReq) (*Empty, error)
func (UnimplementedUserServer) GetUserId ¶
func (UnimplementedUserServer) GetUserId(context.Context, *GetUserIdReq) (*GetUserIdResp, error)
func (UnimplementedUserServer) GetUserInfo ¶
func (UnimplementedUserServer) GetUserInfo(context.Context, *GetUserInfoReq) (*UserInfo, error)
func (UnimplementedUserServer) GetUserInfoByUsername ¶ added in v0.2.2
func (UnimplementedUserServer) GetUserInfoByUsername(context.Context, *GetUserInfoByUsernameReq) (*UserInfo, error)
func (UnimplementedUserServer) GetUserLastSeen ¶ added in v0.3.0
func (UnimplementedUserServer) GetUserLastSeen(context.Context, *GetUserLastSeenReq) (*UserLastSeen, error)
func (UnimplementedUserServer) GetUserPasswordVersion ¶
func (UnimplementedUserServer) GetUserPasswordVersion(context.Context, *GetUserPasswordVersionReq) (*GetUserPasswordVersionResp, error)
func (UnimplementedUserServer) HasFollowedDevice ¶ added in v0.3.0
func (UnimplementedUserServer) HasFollowedDevice(context.Context, *HasFollowedDeviceReq) (*HasFollowedDeviceResp, error)
func (UnimplementedUserServer) ListFollowedDeviceIDs ¶ added in v0.3.0
func (UnimplementedUserServer) ListFollowedDeviceIDs(context.Context, *ListFollowedDeviceIDsReq) (*ListFollowedDeviceIDsResp, error)
func (UnimplementedUserServer) ListFollowedUserIDsByDevice ¶ added in v0.3.0
func (UnimplementedUserServer) ListFollowedUserIDsByDevice(context.Context, *ListFollowedUserIDsByDeviceReq) (*ListFollowedUserIDsByDeviceResp, error)
func (UnimplementedUserServer) ListFollowedUserNotificationMethodsByDevice ¶ added in v0.3.3
func (UnimplementedUserServer) ListFollowedUserNotificationMethodsByDevice(context.Context, *ListFollowedUserNotificationMethodsByDeviceReq) (*ListFollowedUserNotificationMethodsByDeviceResp, error)
func (UnimplementedUserServer) ListUser ¶
func (UnimplementedUserServer) ListUser(context.Context, *ListUserReq) (*ListUserResp, error)
func (UnimplementedUserServer) SetUserPassword ¶
func (UnimplementedUserServer) SetUserPassword(context.Context, *SetUserPasswordReq) (*Empty, error)
func (UnimplementedUserServer) SetUserRole ¶
func (UnimplementedUserServer) SetUserRole(context.Context, *SetUserRoleReq) (*Empty, error)
func (UnimplementedUserServer) SetUserStatus ¶
func (UnimplementedUserServer) SetUserStatus(context.Context, *SetUserStatusReq) (*Empty, error)
func (UnimplementedUserServer) SetUsername ¶ added in v0.2.2
func (UnimplementedUserServer) SetUsername(context.Context, *SetUsernameReq) (*SetUsernameResp, error)
func (UnimplementedUserServer) UnbindEmail ¶ added in v0.3.0
func (UnimplementedUserServer) UnbindEmail(context.Context, *UnbindEmailReq) (*Empty, error)
func (UnimplementedUserServer) UnfollowAllDevice ¶ added in v0.3.0
func (UnimplementedUserServer) UnfollowAllDevice(context.Context, *UnfollowAllDeviceReq) (*Empty, error)
func (UnimplementedUserServer) UnfollowDevice ¶ added in v0.3.0
func (UnimplementedUserServer) UnfollowDevice(context.Context, *UnfollowDeviceReq) (*Empty, error)
func (UnimplementedUserServer) UpdateUserLastSeen ¶ added in v0.2.3
func (UnimplementedUserServer) UpdateUserLastSeen(context.Context, *UpdateUserLastSeenReq) (*Empty, error)
func (UnimplementedUserServer) ValidateUserPassword ¶
func (UnimplementedUserServer) ValidateUserPassword(context.Context, *ValidateUserPasswordReq) (*ValidateUserPasswordResp, error)
type UnsafeUserServer ¶
type UnsafeUserServer interface {
// contains filtered or unexported methods
}
UnsafeUserServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to UserServer will result in compilation errors.
type UpdateUserLastSeenReq ¶ added in v0.2.3
type UpdateUserLastSeenReq struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` LastSeen *UserLastSeen `protobuf:"bytes,2,opt,name=last_seen,json=lastSeen,proto3" json:"last_seen,omitempty"` // contains filtered or unexported fields }
func (*UpdateUserLastSeenReq) Descriptor
deprecated
added in
v0.2.3
func (*UpdateUserLastSeenReq) Descriptor() ([]byte, []int)
Deprecated: Use UpdateUserLastSeenReq.ProtoReflect.Descriptor instead.
func (*UpdateUserLastSeenReq) GetId ¶ added in v0.2.3
func (x *UpdateUserLastSeenReq) GetId() string
func (*UpdateUserLastSeenReq) GetLastSeen ¶ added in v0.2.3
func (x *UpdateUserLastSeenReq) GetLastSeen() *UserLastSeen
func (*UpdateUserLastSeenReq) ProtoMessage ¶ added in v0.2.3
func (*UpdateUserLastSeenReq) ProtoMessage()
func (*UpdateUserLastSeenReq) ProtoReflect ¶ added in v0.2.3
func (x *UpdateUserLastSeenReq) ProtoReflect() protoreflect.Message
func (*UpdateUserLastSeenReq) Reset ¶ added in v0.2.3
func (x *UpdateUserLastSeenReq) Reset()
func (*UpdateUserLastSeenReq) String ¶ added in v0.2.3
func (x *UpdateUserLastSeenReq) String() string
type UserClient ¶
type UserClient interface { CreateUser(ctx context.Context, in *CreateUserReq, opts ...grpc.CallOption) (*UserInfo, error) GetUserInfo(ctx context.Context, in *GetUserInfoReq, opts ...grpc.CallOption) (*UserInfo, error) GetUserInfoByUsername(ctx context.Context, in *GetUserInfoByUsernameReq, opts ...grpc.CallOption) (*UserInfo, error) GetUserId(ctx context.Context, in *GetUserIdReq, opts ...grpc.CallOption) (*GetUserIdResp, error) ValidateUserPassword(ctx context.Context, in *ValidateUserPasswordReq, opts ...grpc.CallOption) (*ValidateUserPasswordResp, error) GetUserPasswordVersion(ctx context.Context, in *GetUserPasswordVersionReq, opts ...grpc.CallOption) (*GetUserPasswordVersionResp, error) SetUserPassword(ctx context.Context, in *SetUserPasswordReq, opts ...grpc.CallOption) (*Empty, error) SetUserRole(ctx context.Context, in *SetUserRoleReq, opts ...grpc.CallOption) (*Empty, error) SetUserStatus(ctx context.Context, in *SetUserStatusReq, opts ...grpc.CallOption) (*Empty, error) SetUsername(ctx context.Context, in *SetUsernameReq, opts ...grpc.CallOption) (*SetUsernameResp, error) ListUser(ctx context.Context, in *ListUserReq, opts ...grpc.CallOption) (*ListUserResp, error) UpdateUserLastSeen(ctx context.Context, in *UpdateUserLastSeenReq, opts ...grpc.CallOption) (*Empty, error) GetUserLastSeen(ctx context.Context, in *GetUserLastSeenReq, opts ...grpc.CallOption) (*UserLastSeen, error) FollowDevice(ctx context.Context, in *FollowDeviceReq, opts ...grpc.CallOption) (*Empty, error) UnfollowDevice(ctx context.Context, in *UnfollowDeviceReq, opts ...grpc.CallOption) (*Empty, error) ListFollowedDeviceIDs(ctx context.Context, in *ListFollowedDeviceIDsReq, opts ...grpc.CallOption) (*ListFollowedDeviceIDsResp, error) ListFollowedUserIDsByDevice(ctx context.Context, in *ListFollowedUserIDsByDeviceReq, opts ...grpc.CallOption) (*ListFollowedUserIDsByDeviceResp, error) ListFollowedUserNotificationMethodsByDevice(ctx context.Context, in *ListFollowedUserNotificationMethodsByDeviceReq, opts ...grpc.CallOption) (*ListFollowedUserNotificationMethodsByDeviceResp, error) HasFollowedDevice(ctx context.Context, in *HasFollowedDeviceReq, opts ...grpc.CallOption) (*HasFollowedDeviceResp, error) FollowAllDevice(ctx context.Context, in *FollowAllDeviceReq, opts ...grpc.CallOption) (*Empty, error) UnfollowAllDevice(ctx context.Context, in *UnfollowAllDeviceReq, opts ...grpc.CallOption) (*Empty, error) BindEmail(ctx context.Context, in *BindEmailReq, opts ...grpc.CallOption) (*Empty, error) UnbindEmail(ctx context.Context, in *UnbindEmailReq, opts ...grpc.CallOption) (*Empty, error) }
UserClient is the client API for User 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 NewUserClient ¶
func NewUserClient(cc grpc.ClientConnInterface) UserClient
type UserHTTPClient ¶
type UserHTTPClient interface { BindEmail(ctx context.Context, req *BindEmailReq, opts ...http.CallOption) (rsp *Empty, err error) CreateUser(ctx context.Context, req *CreateUserReq, opts ...http.CallOption) (rsp *UserInfo, err error) FollowAllDevice(ctx context.Context, req *FollowAllDeviceReq, opts ...http.CallOption) (rsp *Empty, err error) FollowDevice(ctx context.Context, req *FollowDeviceReq, opts ...http.CallOption) (rsp *Empty, err error) GetUserId(ctx context.Context, req *GetUserIdReq, opts ...http.CallOption) (rsp *GetUserIdResp, err error) GetUserInfo(ctx context.Context, req *GetUserInfoReq, opts ...http.CallOption) (rsp *UserInfo, err error) GetUserInfoByUsername(ctx context.Context, req *GetUserInfoByUsernameReq, opts ...http.CallOption) (rsp *UserInfo, err error) GetUserLastSeen(ctx context.Context, req *GetUserLastSeenReq, opts ...http.CallOption) (rsp *UserLastSeen, err error) GetUserPasswordVersion(ctx context.Context, req *GetUserPasswordVersionReq, opts ...http.CallOption) (rsp *GetUserPasswordVersionResp, err error) HasFollowedDevice(ctx context.Context, req *HasFollowedDeviceReq, opts ...http.CallOption) (rsp *HasFollowedDeviceResp, err error) ListFollowedDeviceIDs(ctx context.Context, req *ListFollowedDeviceIDsReq, opts ...http.CallOption) (rsp *ListFollowedDeviceIDsResp, err error) ListFollowedUserIDsByDevice(ctx context.Context, req *ListFollowedUserIDsByDeviceReq, opts ...http.CallOption) (rsp *ListFollowedUserIDsByDeviceResp, err error) ListFollowedUserNotificationMethodsByDevice(ctx context.Context, req *ListFollowedUserNotificationMethodsByDeviceReq, opts ...http.CallOption) (rsp *ListFollowedUserNotificationMethodsByDeviceResp, err error) ListUser(ctx context.Context, req *ListUserReq, opts ...http.CallOption) (rsp *ListUserResp, err error) SetUserPassword(ctx context.Context, req *SetUserPasswordReq, opts ...http.CallOption) (rsp *Empty, err error) SetUserRole(ctx context.Context, req *SetUserRoleReq, opts ...http.CallOption) (rsp *Empty, err error) SetUserStatus(ctx context.Context, req *SetUserStatusReq, opts ...http.CallOption) (rsp *Empty, err error) SetUsername(ctx context.Context, req *SetUsernameReq, opts ...http.CallOption) (rsp *SetUsernameResp, err error) UnbindEmail(ctx context.Context, req *UnbindEmailReq, opts ...http.CallOption) (rsp *Empty, err error) UnfollowAllDevice(ctx context.Context, req *UnfollowAllDeviceReq, opts ...http.CallOption) (rsp *Empty, err error) UnfollowDevice(ctx context.Context, req *UnfollowDeviceReq, opts ...http.CallOption) (rsp *Empty, err error) UpdateUserLastSeen(ctx context.Context, req *UpdateUserLastSeenReq, opts ...http.CallOption) (rsp *Empty, err error) ValidateUserPassword(ctx context.Context, req *ValidateUserPasswordReq, opts ...http.CallOption) (rsp *ValidateUserPasswordResp, err error) }
func NewUserHTTPClient ¶
func NewUserHTTPClient(client *http.Client) UserHTTPClient
type UserHTTPClientImpl ¶
type UserHTTPClientImpl struct {
// contains filtered or unexported fields
}
func (*UserHTTPClientImpl) BindEmail ¶ added in v0.3.0
func (c *UserHTTPClientImpl) BindEmail(ctx context.Context, in *BindEmailReq, opts ...http.CallOption) (*Empty, error)
func (*UserHTTPClientImpl) CreateUser ¶
func (c *UserHTTPClientImpl) CreateUser(ctx context.Context, in *CreateUserReq, opts ...http.CallOption) (*UserInfo, error)
func (*UserHTTPClientImpl) FollowAllDevice ¶ added in v0.3.0
func (c *UserHTTPClientImpl) FollowAllDevice(ctx context.Context, in *FollowAllDeviceReq, opts ...http.CallOption) (*Empty, error)
func (*UserHTTPClientImpl) FollowDevice ¶ added in v0.3.0
func (c *UserHTTPClientImpl) FollowDevice(ctx context.Context, in *FollowDeviceReq, opts ...http.CallOption) (*Empty, error)
func (*UserHTTPClientImpl) GetUserId ¶
func (c *UserHTTPClientImpl) GetUserId(ctx context.Context, in *GetUserIdReq, opts ...http.CallOption) (*GetUserIdResp, error)
func (*UserHTTPClientImpl) GetUserInfo ¶
func (c *UserHTTPClientImpl) GetUserInfo(ctx context.Context, in *GetUserInfoReq, opts ...http.CallOption) (*UserInfo, error)
func (*UserHTTPClientImpl) GetUserInfoByUsername ¶ added in v0.2.2
func (c *UserHTTPClientImpl) GetUserInfoByUsername(ctx context.Context, in *GetUserInfoByUsernameReq, opts ...http.CallOption) (*UserInfo, error)
func (*UserHTTPClientImpl) GetUserLastSeen ¶ added in v0.3.0
func (c *UserHTTPClientImpl) GetUserLastSeen(ctx context.Context, in *GetUserLastSeenReq, opts ...http.CallOption) (*UserLastSeen, error)
func (*UserHTTPClientImpl) GetUserPasswordVersion ¶
func (c *UserHTTPClientImpl) GetUserPasswordVersion(ctx context.Context, in *GetUserPasswordVersionReq, opts ...http.CallOption) (*GetUserPasswordVersionResp, error)
func (*UserHTTPClientImpl) HasFollowedDevice ¶ added in v0.3.0
func (c *UserHTTPClientImpl) HasFollowedDevice(ctx context.Context, in *HasFollowedDeviceReq, opts ...http.CallOption) (*HasFollowedDeviceResp, error)
func (*UserHTTPClientImpl) ListFollowedDeviceIDs ¶ added in v0.3.0
func (c *UserHTTPClientImpl) ListFollowedDeviceIDs(ctx context.Context, in *ListFollowedDeviceIDsReq, opts ...http.CallOption) (*ListFollowedDeviceIDsResp, error)
func (*UserHTTPClientImpl) ListFollowedUserIDsByDevice ¶ added in v0.3.0
func (c *UserHTTPClientImpl) ListFollowedUserIDsByDevice(ctx context.Context, in *ListFollowedUserIDsByDeviceReq, opts ...http.CallOption) (*ListFollowedUserIDsByDeviceResp, error)
func (*UserHTTPClientImpl) ListFollowedUserNotificationMethodsByDevice ¶ added in v0.3.3
func (c *UserHTTPClientImpl) ListFollowedUserNotificationMethodsByDevice(ctx context.Context, in *ListFollowedUserNotificationMethodsByDeviceReq, opts ...http.CallOption) (*ListFollowedUserNotificationMethodsByDeviceResp, error)
func (*UserHTTPClientImpl) ListUser ¶
func (c *UserHTTPClientImpl) ListUser(ctx context.Context, in *ListUserReq, opts ...http.CallOption) (*ListUserResp, error)
func (*UserHTTPClientImpl) SetUserPassword ¶
func (c *UserHTTPClientImpl) SetUserPassword(ctx context.Context, in *SetUserPasswordReq, opts ...http.CallOption) (*Empty, error)
func (*UserHTTPClientImpl) SetUserRole ¶
func (c *UserHTTPClientImpl) SetUserRole(ctx context.Context, in *SetUserRoleReq, opts ...http.CallOption) (*Empty, error)
func (*UserHTTPClientImpl) SetUserStatus ¶
func (c *UserHTTPClientImpl) SetUserStatus(ctx context.Context, in *SetUserStatusReq, opts ...http.CallOption) (*Empty, error)
func (*UserHTTPClientImpl) SetUsername ¶ added in v0.2.2
func (c *UserHTTPClientImpl) SetUsername(ctx context.Context, in *SetUsernameReq, opts ...http.CallOption) (*SetUsernameResp, error)
func (*UserHTTPClientImpl) UnbindEmail ¶ added in v0.3.0
func (c *UserHTTPClientImpl) UnbindEmail(ctx context.Context, in *UnbindEmailReq, opts ...http.CallOption) (*Empty, error)
func (*UserHTTPClientImpl) UnfollowAllDevice ¶ added in v0.3.0
func (c *UserHTTPClientImpl) UnfollowAllDevice(ctx context.Context, in *UnfollowAllDeviceReq, opts ...http.CallOption) (*Empty, error)
func (*UserHTTPClientImpl) UnfollowDevice ¶ added in v0.3.0
func (c *UserHTTPClientImpl) UnfollowDevice(ctx context.Context, in *UnfollowDeviceReq, opts ...http.CallOption) (*Empty, error)
func (*UserHTTPClientImpl) UpdateUserLastSeen ¶ added in v0.2.3
func (c *UserHTTPClientImpl) UpdateUserLastSeen(ctx context.Context, in *UpdateUserLastSeenReq, opts ...http.CallOption) (*Empty, error)
func (*UserHTTPClientImpl) ValidateUserPassword ¶
func (c *UserHTTPClientImpl) ValidateUserPassword(ctx context.Context, in *ValidateUserPasswordReq, opts ...http.CallOption) (*ValidateUserPasswordResp, error)
type UserHTTPServer ¶
type UserHTTPServer interface { BindEmail(context.Context, *BindEmailReq) (*Empty, error) CreateUser(context.Context, *CreateUserReq) (*UserInfo, error) FollowAllDevice(context.Context, *FollowAllDeviceReq) (*Empty, error) FollowDevice(context.Context, *FollowDeviceReq) (*Empty, error) GetUserId(context.Context, *GetUserIdReq) (*GetUserIdResp, error) GetUserInfo(context.Context, *GetUserInfoReq) (*UserInfo, error) GetUserInfoByUsername(context.Context, *GetUserInfoByUsernameReq) (*UserInfo, error) GetUserLastSeen(context.Context, *GetUserLastSeenReq) (*UserLastSeen, error) GetUserPasswordVersion(context.Context, *GetUserPasswordVersionReq) (*GetUserPasswordVersionResp, error) HasFollowedDevice(context.Context, *HasFollowedDeviceReq) (*HasFollowedDeviceResp, error) ListFollowedDeviceIDs(context.Context, *ListFollowedDeviceIDsReq) (*ListFollowedDeviceIDsResp, error) ListFollowedUserIDsByDevice(context.Context, *ListFollowedUserIDsByDeviceReq) (*ListFollowedUserIDsByDeviceResp, error) ListFollowedUserNotificationMethodsByDevice(context.Context, *ListFollowedUserNotificationMethodsByDeviceReq) (*ListFollowedUserNotificationMethodsByDeviceResp, error) ListUser(context.Context, *ListUserReq) (*ListUserResp, error) SetUserPassword(context.Context, *SetUserPasswordReq) (*Empty, error) SetUserRole(context.Context, *SetUserRoleReq) (*Empty, error) SetUserStatus(context.Context, *SetUserStatusReq) (*Empty, error) SetUsername(context.Context, *SetUsernameReq) (*SetUsernameResp, error) UnbindEmail(context.Context, *UnbindEmailReq) (*Empty, error) UnfollowAllDevice(context.Context, *UnfollowAllDeviceReq) (*Empty, error) UnfollowDevice(context.Context, *UnfollowDeviceReq) (*Empty, error) UpdateUserLastSeen(context.Context, *UpdateUserLastSeenReq) (*Empty, error) ValidateUserPassword(context.Context, *ValidateUserPasswordReq) (*ValidateUserPasswordResp, error) }
type UserInfo ¶
type UserInfo struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty" redis:"id"` // @gotags: redis:"id" CreatedAt int64 `protobuf:"varint,2,opt,name=created_at,json=createdAt,proto3" json:"createdAt" redis:"createdAt"` // @gotags: redis:"createdAt" json:"createdAt" UpdatedAt int64 `protobuf:"varint,3,opt,name=updated_at,json=updatedAt,proto3" json:"-" redis:"-"` // @gotags: redis:"-" json:"-"` Username string `protobuf:"bytes,4,opt,name=username,proto3" json:"username,omitempty" redis:"username"` // @gotags: redis:"username" Role Role `protobuf:"varint,5,opt,name=role,proto3,enum=api.user.Role" json:"role" redis:"role,omitempty"` // @gotags: redis:"role,omitempty" json:"role" Status Status `protobuf:"varint,6,opt,name=status,proto3,enum=api.user.Status" json:"status" redis:"status,omitempty"` // @gotags: redis:"status,omitempty" json:"status" Email string `protobuf:"bytes,7,opt,name=email,proto3" json:"email" redis:"email,omitempty"` // @gotags: redis:"email,omitempty" json:"email" Phone string `protobuf:"bytes,8,opt,name=phone,proto3" json:"phone" redis:"phone,omitempty"` // @gotags: redis:"phone,omitempty" json:"phone" // contains filtered or unexported fields }
func (*UserInfo) Descriptor
deprecated
func (*UserInfo) GetCreatedAt ¶
func (*UserInfo) GetUpdatedAt ¶
func (*UserInfo) GetUsername ¶ added in v0.2.2
func (*UserInfo) ProtoMessage ¶
func (*UserInfo) ProtoMessage()
func (*UserInfo) ProtoReflect ¶
func (x *UserInfo) ProtoReflect() protoreflect.Message
type UserLastSeen ¶ added in v0.2.3
type UserLastSeen struct { LastSeenAt int64 `protobuf:"varint,1,opt,name=last_seen_at,json=lastSeenAt,proto3" json:"lastSeenAt" redis:"at"` // @gotags: redis:"at" json:"lastSeenAt" LastSeenIp string `protobuf:"bytes,2,opt,name=last_seen_ip,json=lastSeenIp,proto3" json:"lastSeenIP" redis:"ip,omitempty"` // @gotags: redis:"ip,omitempty" json:"lastSeenIP" // contains filtered or unexported fields }
func (*UserLastSeen) Descriptor
deprecated
added in
v0.2.3
func (*UserLastSeen) Descriptor() ([]byte, []int)
Deprecated: Use UserLastSeen.ProtoReflect.Descriptor instead.
func (*UserLastSeen) GetLastSeenAt ¶ added in v0.2.3
func (x *UserLastSeen) GetLastSeenAt() int64
func (*UserLastSeen) GetLastSeenIp ¶ added in v0.2.3
func (x *UserLastSeen) GetLastSeenIp() string
func (*UserLastSeen) ProtoMessage ¶ added in v0.2.3
func (*UserLastSeen) ProtoMessage()
func (*UserLastSeen) ProtoReflect ¶ added in v0.2.3
func (x *UserLastSeen) ProtoReflect() protoreflect.Message
func (*UserLastSeen) Reset ¶ added in v0.2.3
func (x *UserLastSeen) Reset()
func (*UserLastSeen) String ¶ added in v0.2.3
func (x *UserLastSeen) String() string
type UserServer ¶
type UserServer interface { CreateUser(context.Context, *CreateUserReq) (*UserInfo, error) GetUserInfo(context.Context, *GetUserInfoReq) (*UserInfo, error) GetUserInfoByUsername(context.Context, *GetUserInfoByUsernameReq) (*UserInfo, error) GetUserId(context.Context, *GetUserIdReq) (*GetUserIdResp, error) ValidateUserPassword(context.Context, *ValidateUserPasswordReq) (*ValidateUserPasswordResp, error) GetUserPasswordVersion(context.Context, *GetUserPasswordVersionReq) (*GetUserPasswordVersionResp, error) SetUserPassword(context.Context, *SetUserPasswordReq) (*Empty, error) SetUserRole(context.Context, *SetUserRoleReq) (*Empty, error) SetUserStatus(context.Context, *SetUserStatusReq) (*Empty, error) SetUsername(context.Context, *SetUsernameReq) (*SetUsernameResp, error) ListUser(context.Context, *ListUserReq) (*ListUserResp, error) UpdateUserLastSeen(context.Context, *UpdateUserLastSeenReq) (*Empty, error) GetUserLastSeen(context.Context, *GetUserLastSeenReq) (*UserLastSeen, error) FollowDevice(context.Context, *FollowDeviceReq) (*Empty, error) UnfollowDevice(context.Context, *UnfollowDeviceReq) (*Empty, error) ListFollowedDeviceIDs(context.Context, *ListFollowedDeviceIDsReq) (*ListFollowedDeviceIDsResp, error) ListFollowedUserIDsByDevice(context.Context, *ListFollowedUserIDsByDeviceReq) (*ListFollowedUserIDsByDeviceResp, error) ListFollowedUserNotificationMethodsByDevice(context.Context, *ListFollowedUserNotificationMethodsByDeviceReq) (*ListFollowedUserNotificationMethodsByDeviceResp, error) HasFollowedDevice(context.Context, *HasFollowedDeviceReq) (*HasFollowedDeviceResp, error) FollowAllDevice(context.Context, *FollowAllDeviceReq) (*Empty, error) UnfollowAllDevice(context.Context, *UnfollowAllDeviceReq) (*Empty, error) BindEmail(context.Context, *BindEmailReq) (*Empty, error) UnbindEmail(context.Context, *UnbindEmailReq) (*Empty, error) // contains filtered or unexported methods }
UserServer is the server API for User service. All implementations must embed UnimplementedUserServer for forward compatibility.
type ValidateUserPasswordReq ¶
type ValidateUserPasswordReq struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` // contains filtered or unexported fields }
func (*ValidateUserPasswordReq) Descriptor
deprecated
func (*ValidateUserPasswordReq) Descriptor() ([]byte, []int)
Deprecated: Use ValidateUserPasswordReq.ProtoReflect.Descriptor instead.
func (*ValidateUserPasswordReq) GetId ¶
func (x *ValidateUserPasswordReq) GetId() string
func (*ValidateUserPasswordReq) GetPassword ¶
func (x *ValidateUserPasswordReq) GetPassword() string
func (*ValidateUserPasswordReq) ProtoMessage ¶
func (*ValidateUserPasswordReq) ProtoMessage()
func (*ValidateUserPasswordReq) ProtoReflect ¶
func (x *ValidateUserPasswordReq) ProtoReflect() protoreflect.Message
func (*ValidateUserPasswordReq) Reset ¶
func (x *ValidateUserPasswordReq) Reset()
func (*ValidateUserPasswordReq) String ¶
func (x *ValidateUserPasswordReq) String() string
type ValidateUserPasswordResp ¶
type ValidateUserPasswordResp struct { Valid bool `protobuf:"varint,1,opt,name=valid,proto3" json:"valid,omitempty"` // contains filtered or unexported fields }
func (*ValidateUserPasswordResp) Descriptor
deprecated
func (*ValidateUserPasswordResp) Descriptor() ([]byte, []int)
Deprecated: Use ValidateUserPasswordResp.ProtoReflect.Descriptor instead.
func (*ValidateUserPasswordResp) GetValid ¶
func (x *ValidateUserPasswordResp) GetValid() bool
func (*ValidateUserPasswordResp) ProtoMessage ¶
func (*ValidateUserPasswordResp) ProtoMessage()
func (*ValidateUserPasswordResp) ProtoReflect ¶
func (x *ValidateUserPasswordResp) ProtoReflect() protoreflect.Message
func (*ValidateUserPasswordResp) Reset ¶
func (x *ValidateUserPasswordResp) Reset()
func (*ValidateUserPasswordResp) String ¶
func (x *ValidateUserPasswordResp) String() string