Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterUserServiceServer(s grpc.ServiceRegistrar, srv UserServiceServer)
- type AddRequest
- type AddResponse
- type DeactivateRequest
- func (*DeactivateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeactivateRequest) GetUserId() string
- func (*DeactivateRequest) ProtoMessage()
- func (x *DeactivateRequest) ProtoReflect() protoreflect.Message
- func (x *DeactivateRequest) Reset()
- func (x *DeactivateRequest) String() string
- func (this *DeactivateRequest) Validate() error
- type DeactivateResponse
- func (*DeactivateResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DeactivateResponse) GetUser() *User
- func (*DeactivateResponse) ProtoMessage()
- func (x *DeactivateResponse) ProtoReflect() protoreflect.Message
- func (x *DeactivateResponse) Reset()
- func (x *DeactivateResponse) String() string
- func (this *DeactivateResponse) Validate() error
- type DeleteRequest
- func (*DeleteRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteRequest) GetUserId() string
- func (*DeleteRequest) ProtoMessage()
- func (x *DeleteRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteRequest) Reset()
- func (x *DeleteRequest) String() string
- func (this *DeleteRequest) Validate() error
- type DeleteResponse
- type GetByAuthIdRequest
- func (*GetByAuthIdRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetByAuthIdRequest) GetAuthId() string
- func (*GetByAuthIdRequest) ProtoMessage()
- func (x *GetByAuthIdRequest) ProtoReflect() protoreflect.Message
- func (x *GetByAuthIdRequest) Reset()
- func (x *GetByAuthIdRequest) String() string
- func (this *GetByAuthIdRequest) Validate() error
- type GetByEmailRequest
- func (*GetByEmailRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetByEmailRequest) GetEmail() string
- func (*GetByEmailRequest) ProtoMessage()
- func (x *GetByEmailRequest) ProtoReflect() protoreflect.Message
- func (x *GetByEmailRequest) Reset()
- func (x *GetByEmailRequest) String() string
- func (this *GetByEmailRequest) Validate() error
- type GetRequest
- type GetResponse
- type OrgUser
- func (*OrgUser) Descriptor() ([]byte, []int)deprecated
- func (x *OrgUser) GetCreatedAt() *timestamppb.Timestamp
- func (x *OrgUser) GetIsDeactivated() bool
- func (x *OrgUser) GetOrgId() string
- func (x *OrgUser) GetRole() RoleType
- func (x *OrgUser) GetUuid() string
- func (*OrgUser) ProtoMessage()
- func (x *OrgUser) ProtoReflect() protoreflect.Message
- func (x *OrgUser) Reset()
- func (x *OrgUser) String() string
- func (this *OrgUser) Validate() error
- type Organization
- func (*Organization) Descriptor() ([]byte, []int)deprecated
- func (x *Organization) GetCertificate() string
- func (x *Organization) GetCreatedAt() *timestamppb.Timestamp
- func (x *Organization) GetId() string
- func (x *Organization) GetIsDeactivated() bool
- func (x *Organization) GetName() string
- func (x *Organization) GetOwner() string
- func (*Organization) ProtoMessage()
- func (x *Organization) ProtoReflect() protoreflect.Message
- func (x *Organization) Reset()
- func (x *Organization) String() string
- func (this *Organization) Validate() error
- type RoleType
- type UnimplementedUserServiceServer
- func (UnimplementedUserServiceServer) Add(context.Context, *AddRequest) (*AddResponse, error)
- func (UnimplementedUserServiceServer) Deactivate(context.Context, *DeactivateRequest) (*DeactivateResponse, error)
- func (UnimplementedUserServiceServer) Delete(context.Context, *DeleteRequest) (*DeleteResponse, error)
- func (UnimplementedUserServiceServer) Get(context.Context, *GetRequest) (*GetResponse, error)
- func (UnimplementedUserServiceServer) GetByAuthId(context.Context, *GetByAuthIdRequest) (*GetResponse, error)
- func (UnimplementedUserServiceServer) GetByEmail(context.Context, *GetByEmailRequest) (*GetResponse, error)
- func (UnimplementedUserServiceServer) Update(context.Context, *UpdateRequest) (*UpdateResponse, error)
- func (UnimplementedUserServiceServer) Whoami(context.Context, *GetRequest) (*WhoamiResponse, error)
- type UnsafeUserServiceServer
- type UpdateRequest
- func (*UpdateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateRequest) GetUser() *UserAttributes
- func (x *UpdateRequest) GetUserId() string
- func (*UpdateRequest) ProtoMessage()
- func (x *UpdateRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateRequest) Reset()
- func (x *UpdateRequest) String() string
- func (this *UpdateRequest) Validate() error
- type UpdateResponse
- func (*UpdateResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateResponse) GetUser() *User
- func (*UpdateResponse) ProtoMessage()
- func (x *UpdateResponse) ProtoReflect() protoreflect.Message
- func (x *UpdateResponse) Reset()
- func (x *UpdateResponse) String() string
- func (this *UpdateResponse) Validate() error
- type User
- func (*User) Descriptor() ([]byte, []int)deprecated
- func (x *User) GetAuthId() string
- func (x *User) GetCreatedAt() *timestamppb.Timestamp
- func (x *User) GetEmail() string
- func (x *User) GetId() string
- func (x *User) GetIsDeactivated() bool
- func (x *User) GetName() string
- func (x *User) GetPhone() string
- func (*User) ProtoMessage()
- func (x *User) ProtoReflect() protoreflect.Message
- func (x *User) Reset()
- func (x *User) String() string
- func (this *User) Validate() error
- type UserAttributes
- func (*UserAttributes) Descriptor() ([]byte, []int)deprecated
- func (x *UserAttributes) GetEmail() string
- func (x *UserAttributes) GetName() string
- func (x *UserAttributes) GetPhone() string
- func (*UserAttributes) ProtoMessage()
- func (x *UserAttributes) ProtoReflect() protoreflect.Message
- func (x *UserAttributes) Reset()
- func (x *UserAttributes) String() string
- func (this *UserAttributes) Validate() error
- type UserServiceClient
- type UserServiceServer
- type WhoamiResponse
- func (*WhoamiResponse) Descriptor() ([]byte, []int)deprecated
- func (x *WhoamiResponse) GetMemberOf() []*Organization
- func (x *WhoamiResponse) GetOwnerOf() []*Organization
- func (x *WhoamiResponse) GetUser() *User
- func (*WhoamiResponse) ProtoMessage()
- func (x *WhoamiResponse) ProtoReflect() protoreflect.Message
- func (x *WhoamiResponse) Reset()
- func (x *WhoamiResponse) String() string
- func (this *WhoamiResponse) Validate() error
Constants ¶
const ( UserService_Add_FullMethodName = "/ukama.nuclues.user.v1.UserService/Add" UserService_Get_FullMethodName = "/ukama.nuclues.user.v1.UserService/Get" UserService_GetByAuthId_FullMethodName = "/ukama.nuclues.user.v1.UserService/GetByAuthId" UserService_Update_FullMethodName = "/ukama.nuclues.user.v1.UserService/Update" UserService_Deactivate_FullMethodName = "/ukama.nuclues.user.v1.UserService/Deactivate" UserService_Delete_FullMethodName = "/ukama.nuclues.user.v1.UserService/Delete" UserService_Whoami_FullMethodName = "/ukama.nuclues.user.v1.UserService/Whoami" UserService_GetByEmail_FullMethodName = "/ukama.nuclues.user.v1.UserService/GetByEmail" )
Variables ¶
var ( RoleType_name = map[int32]string{ 0: "OWNER", 1: "ADMIN", 2: "VENDOR", 3: "MEMBER", } RoleType_value = map[string]int32{ "OWNER": 0, "ADMIN": 1, "VENDOR": 2, "MEMBER": 3, } )
Enum value maps for RoleType.
var File_user_proto protoreflect.FileDescriptor
var UserService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "ukama.nuclues.user.v1.UserService", HandlerType: (*UserServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Add", Handler: _UserService_Add_Handler, }, { MethodName: "Get", Handler: _UserService_Get_Handler, }, { MethodName: "GetByAuthId", Handler: _UserService_GetByAuthId_Handler, }, { MethodName: "Update", Handler: _UserService_Update_Handler, }, { MethodName: "Deactivate", Handler: _UserService_Deactivate_Handler, }, { MethodName: "Delete", Handler: _UserService_Delete_Handler, }, { MethodName: "Whoami", Handler: _UserService_Whoami_Handler, }, { MethodName: "GetByEmail", Handler: _UserService_GetByEmail_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "user.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 RegisterUserServiceServer ¶
func RegisterUserServiceServer(s grpc.ServiceRegistrar, srv UserServiceServer)
Types ¶
type AddRequest ¶
type AddRequest struct { User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` // contains filtered or unexported fields }
func (*AddRequest) Descriptor
deprecated
func (*AddRequest) Descriptor() ([]byte, []int)
Deprecated: Use AddRequest.ProtoReflect.Descriptor instead.
func (*AddRequest) GetUser ¶
func (x *AddRequest) GetUser() *User
func (*AddRequest) ProtoMessage ¶
func (*AddRequest) ProtoMessage()
func (*AddRequest) ProtoReflect ¶
func (x *AddRequest) ProtoReflect() protoreflect.Message
func (*AddRequest) Reset ¶
func (x *AddRequest) Reset()
func (*AddRequest) String ¶
func (x *AddRequest) String() string
func (*AddRequest) Validate ¶
func (this *AddRequest) Validate() error
type AddResponse ¶
type AddResponse struct { User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` // contains filtered or unexported fields }
func (*AddResponse) Descriptor
deprecated
func (*AddResponse) Descriptor() ([]byte, []int)
Deprecated: Use AddResponse.ProtoReflect.Descriptor instead.
func (*AddResponse) GetUser ¶
func (x *AddResponse) GetUser() *User
func (*AddResponse) ProtoMessage ¶
func (*AddResponse) ProtoMessage()
func (*AddResponse) ProtoReflect ¶
func (x *AddResponse) ProtoReflect() protoreflect.Message
func (*AddResponse) Reset ¶
func (x *AddResponse) Reset()
func (*AddResponse) String ¶
func (x *AddResponse) String() string
func (*AddResponse) Validate ¶
func (this *AddResponse) Validate() error
type DeactivateRequest ¶
type DeactivateRequest struct { UserId string `protobuf:"bytes,1,opt,name=userId,json=user_id,proto3" json:"userId,omitempty"` // contains filtered or unexported fields }
func (*DeactivateRequest) Descriptor
deprecated
func (*DeactivateRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeactivateRequest.ProtoReflect.Descriptor instead.
func (*DeactivateRequest) GetUserId ¶
func (x *DeactivateRequest) GetUserId() string
func (*DeactivateRequest) ProtoMessage ¶
func (*DeactivateRequest) ProtoMessage()
func (*DeactivateRequest) ProtoReflect ¶
func (x *DeactivateRequest) ProtoReflect() protoreflect.Message
func (*DeactivateRequest) Reset ¶
func (x *DeactivateRequest) Reset()
func (*DeactivateRequest) String ¶
func (x *DeactivateRequest) String() string
func (*DeactivateRequest) Validate ¶
func (this *DeactivateRequest) Validate() error
type DeactivateResponse ¶
type DeactivateResponse struct { User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` // contains filtered or unexported fields }
func (*DeactivateResponse) Descriptor
deprecated
func (*DeactivateResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeactivateResponse.ProtoReflect.Descriptor instead.
func (*DeactivateResponse) GetUser ¶
func (x *DeactivateResponse) GetUser() *User
func (*DeactivateResponse) ProtoMessage ¶
func (*DeactivateResponse) ProtoMessage()
func (*DeactivateResponse) ProtoReflect ¶
func (x *DeactivateResponse) ProtoReflect() protoreflect.Message
func (*DeactivateResponse) Reset ¶
func (x *DeactivateResponse) Reset()
func (*DeactivateResponse) String ¶
func (x *DeactivateResponse) String() string
func (*DeactivateResponse) Validate ¶
func (this *DeactivateResponse) Validate() error
type DeleteRequest ¶
type DeleteRequest struct { UserId string `protobuf:"bytes,1,opt,name=userId,json=user_id,proto3" json:"userId,omitempty"` // contains filtered or unexported fields }
func (*DeleteRequest) Descriptor
deprecated
func (*DeleteRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteRequest.ProtoReflect.Descriptor instead.
func (*DeleteRequest) GetUserId ¶
func (x *DeleteRequest) GetUserId() string
func (*DeleteRequest) ProtoMessage ¶
func (*DeleteRequest) ProtoMessage()
func (*DeleteRequest) ProtoReflect ¶
func (x *DeleteRequest) ProtoReflect() protoreflect.Message
func (*DeleteRequest) Reset ¶
func (x *DeleteRequest) Reset()
func (*DeleteRequest) String ¶
func (x *DeleteRequest) String() string
func (*DeleteRequest) Validate ¶
func (this *DeleteRequest) Validate() error
type DeleteResponse ¶
type DeleteResponse struct {
// contains filtered or unexported fields
}
func (*DeleteResponse) Descriptor
deprecated
func (*DeleteResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteResponse.ProtoReflect.Descriptor instead.
func (*DeleteResponse) ProtoMessage ¶
func (*DeleteResponse) ProtoMessage()
func (*DeleteResponse) ProtoReflect ¶
func (x *DeleteResponse) ProtoReflect() protoreflect.Message
func (*DeleteResponse) Reset ¶
func (x *DeleteResponse) Reset()
func (*DeleteResponse) String ¶
func (x *DeleteResponse) String() string
func (*DeleteResponse) Validate ¶
func (this *DeleteResponse) Validate() error
type GetByAuthIdRequest ¶
type GetByAuthIdRequest struct { AuthId string `protobuf:"bytes,1,opt,name=authId,json=auth_id,proto3" json:"authId,omitempty"` // contains filtered or unexported fields }
func (*GetByAuthIdRequest) Descriptor
deprecated
func (*GetByAuthIdRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetByAuthIdRequest.ProtoReflect.Descriptor instead.
func (*GetByAuthIdRequest) GetAuthId ¶
func (x *GetByAuthIdRequest) GetAuthId() string
func (*GetByAuthIdRequest) ProtoMessage ¶
func (*GetByAuthIdRequest) ProtoMessage()
func (*GetByAuthIdRequest) ProtoReflect ¶
func (x *GetByAuthIdRequest) ProtoReflect() protoreflect.Message
func (*GetByAuthIdRequest) Reset ¶
func (x *GetByAuthIdRequest) Reset()
func (*GetByAuthIdRequest) String ¶
func (x *GetByAuthIdRequest) String() string
func (*GetByAuthIdRequest) Validate ¶
func (this *GetByAuthIdRequest) Validate() error
type GetByEmailRequest ¶
type GetByEmailRequest struct { Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` // contains filtered or unexported fields }
func (*GetByEmailRequest) Descriptor
deprecated
func (*GetByEmailRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetByEmailRequest.ProtoReflect.Descriptor instead.
func (*GetByEmailRequest) GetEmail ¶
func (x *GetByEmailRequest) GetEmail() string
func (*GetByEmailRequest) ProtoMessage ¶
func (*GetByEmailRequest) ProtoMessage()
func (*GetByEmailRequest) ProtoReflect ¶
func (x *GetByEmailRequest) ProtoReflect() protoreflect.Message
func (*GetByEmailRequest) Reset ¶
func (x *GetByEmailRequest) Reset()
func (*GetByEmailRequest) String ¶
func (x *GetByEmailRequest) String() string
func (*GetByEmailRequest) Validate ¶
func (this *GetByEmailRequest) Validate() error
type GetRequest ¶
type GetRequest struct { UserId string `protobuf:"bytes,1,opt,name=userId,json=user_id,proto3" json:"userId,omitempty"` // contains filtered or unexported fields }
func (*GetRequest) Descriptor
deprecated
func (*GetRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetRequest.ProtoReflect.Descriptor instead.
func (*GetRequest) GetUserId ¶
func (x *GetRequest) GetUserId() string
func (*GetRequest) ProtoMessage ¶
func (*GetRequest) ProtoMessage()
func (*GetRequest) ProtoReflect ¶
func (x *GetRequest) ProtoReflect() protoreflect.Message
func (*GetRequest) Reset ¶
func (x *GetRequest) Reset()
func (*GetRequest) String ¶
func (x *GetRequest) String() string
func (*GetRequest) Validate ¶
func (this *GetRequest) Validate() error
type GetResponse ¶
type GetResponse struct { User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` // contains filtered or unexported fields }
func (*GetResponse) Descriptor
deprecated
func (*GetResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetResponse.ProtoReflect.Descriptor instead.
func (*GetResponse) GetUser ¶
func (x *GetResponse) GetUser() *User
func (*GetResponse) ProtoMessage ¶
func (*GetResponse) ProtoMessage()
func (*GetResponse) ProtoReflect ¶
func (x *GetResponse) ProtoReflect() protoreflect.Message
func (*GetResponse) Reset ¶
func (x *GetResponse) Reset()
func (*GetResponse) String ¶
func (x *GetResponse) String() string
func (*GetResponse) Validate ¶
func (this *GetResponse) Validate() error
type OrgUser ¶
type OrgUser struct { OrgId string `protobuf:"bytes,1,opt,name=orgId,json=org_id,proto3" json:"orgId,omitempty"` // uint64 userId = 2 [json_name = "user_id"]; Role RoleType `protobuf:"varint,3,opt,name=role,proto3,enum=ukama.nuclues.user.v1.RoleType" json:"role,omitempty"` Uuid string `protobuf:"bytes,4,opt,name=uuid,proto3" json:"uuid,omitempty"` IsDeactivated bool `protobuf:"varint,5,opt,name=isDeactivated,json=is_deactivated,proto3" json:"isDeactivated,omitempty"` CreatedAt *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=created_at,json=member_since,proto3" json:"created_at,omitempty"` // contains filtered or unexported fields }
func (*OrgUser) Descriptor
deprecated
func (*OrgUser) GetCreatedAt ¶
func (x *OrgUser) GetCreatedAt() *timestamppb.Timestamp
func (*OrgUser) GetIsDeactivated ¶
func (*OrgUser) ProtoMessage ¶
func (*OrgUser) ProtoMessage()
func (*OrgUser) ProtoReflect ¶
func (x *OrgUser) ProtoReflect() protoreflect.Message
type Organization ¶
type Organization struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // there is extra vlidation on repository level Owner string `protobuf:"bytes,3,opt,name=owner,proto3" json:"owner,omitempty"` Certificate string `protobuf:"bytes,4,opt,name=certificate,proto3" json:"certificate,omitempty"` IsDeactivated bool `protobuf:"varint,5,opt,name=isDeactivated,json=is_deactivated,proto3" json:"isDeactivated,omitempty"` CreatedAt *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=created_at,proto3" json:"created_at,omitempty"` // contains filtered or unexported fields }
func (*Organization) Descriptor
deprecated
func (*Organization) Descriptor() ([]byte, []int)
Deprecated: Use Organization.ProtoReflect.Descriptor instead.
func (*Organization) GetCertificate ¶
func (x *Organization) GetCertificate() string
func (*Organization) GetCreatedAt ¶
func (x *Organization) GetCreatedAt() *timestamppb.Timestamp
func (*Organization) GetId ¶
func (x *Organization) GetId() string
func (*Organization) GetIsDeactivated ¶
func (x *Organization) GetIsDeactivated() bool
func (*Organization) GetName ¶
func (x *Organization) GetName() string
func (*Organization) GetOwner ¶
func (x *Organization) GetOwner() string
func (*Organization) ProtoMessage ¶
func (*Organization) ProtoMessage()
func (*Organization) ProtoReflect ¶
func (x *Organization) ProtoReflect() protoreflect.Message
func (*Organization) Reset ¶
func (x *Organization) Reset()
func (*Organization) String ¶
func (x *Organization) String() string
func (*Organization) Validate ¶
func (this *Organization) Validate() error
type RoleType ¶
type RoleType int32
func (RoleType) Descriptor ¶
func (RoleType) Descriptor() protoreflect.EnumDescriptor
func (RoleType) EnumDescriptor
deprecated
func (RoleType) Number ¶
func (x RoleType) Number() protoreflect.EnumNumber
func (RoleType) Type ¶
func (RoleType) Type() protoreflect.EnumType
type UnimplementedUserServiceServer ¶
type UnimplementedUserServiceServer struct { }
UnimplementedUserServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedUserServiceServer) Add ¶
func (UnimplementedUserServiceServer) Add(context.Context, *AddRequest) (*AddResponse, error)
func (UnimplementedUserServiceServer) Deactivate ¶
func (UnimplementedUserServiceServer) Deactivate(context.Context, *DeactivateRequest) (*DeactivateResponse, error)
func (UnimplementedUserServiceServer) Delete ¶
func (UnimplementedUserServiceServer) Delete(context.Context, *DeleteRequest) (*DeleteResponse, error)
func (UnimplementedUserServiceServer) Get ¶
func (UnimplementedUserServiceServer) Get(context.Context, *GetRequest) (*GetResponse, error)
func (UnimplementedUserServiceServer) GetByAuthId ¶
func (UnimplementedUserServiceServer) GetByAuthId(context.Context, *GetByAuthIdRequest) (*GetResponse, error)
func (UnimplementedUserServiceServer) GetByEmail ¶
func (UnimplementedUserServiceServer) GetByEmail(context.Context, *GetByEmailRequest) (*GetResponse, error)
func (UnimplementedUserServiceServer) Update ¶
func (UnimplementedUserServiceServer) Update(context.Context, *UpdateRequest) (*UpdateResponse, error)
func (UnimplementedUserServiceServer) Whoami ¶
func (UnimplementedUserServiceServer) Whoami(context.Context, *GetRequest) (*WhoamiResponse, error)
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 UpdateRequest ¶
type UpdateRequest struct { UserId string `protobuf:"bytes,1,opt,name=userId,json=user_id,proto3" json:"userId,omitempty"` User *UserAttributes `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"` // contains filtered or unexported fields }
func (*UpdateRequest) Descriptor
deprecated
func (*UpdateRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateRequest.ProtoReflect.Descriptor instead.
func (*UpdateRequest) GetUser ¶
func (x *UpdateRequest) GetUser() *UserAttributes
func (*UpdateRequest) GetUserId ¶
func (x *UpdateRequest) GetUserId() string
func (*UpdateRequest) ProtoMessage ¶
func (*UpdateRequest) ProtoMessage()
func (*UpdateRequest) ProtoReflect ¶
func (x *UpdateRequest) ProtoReflect() protoreflect.Message
func (*UpdateRequest) Reset ¶
func (x *UpdateRequest) Reset()
func (*UpdateRequest) String ¶
func (x *UpdateRequest) String() string
func (*UpdateRequest) Validate ¶
func (this *UpdateRequest) Validate() error
type UpdateResponse ¶
type UpdateResponse struct { User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` // contains filtered or unexported fields }
func (*UpdateResponse) Descriptor
deprecated
func (*UpdateResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateResponse.ProtoReflect.Descriptor instead.
func (*UpdateResponse) GetUser ¶
func (x *UpdateResponse) GetUser() *User
func (*UpdateResponse) ProtoMessage ¶
func (*UpdateResponse) ProtoMessage()
func (*UpdateResponse) ProtoReflect ¶
func (x *UpdateResponse) ProtoReflect() protoreflect.Message
func (*UpdateResponse) Reset ¶
func (x *UpdateResponse) Reset()
func (*UpdateResponse) String ¶
func (x *UpdateResponse) String() string
func (*UpdateResponse) Validate ¶
func (this *UpdateResponse) Validate() error
type User ¶
type User struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"` Phone string `protobuf:"bytes,4,opt,name=phone,proto3" json:"phone,omitempty"` IsDeactivated bool `protobuf:"varint,5,opt,name=isDeactivated,json=is_deactivated,proto3" json:"isDeactivated,omitempty"` AuthId string `protobuf:"bytes,6,opt,name=authId,json=auth_id,proto3" json:"authId,omitempty"` CreatedAt *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=created_at,json=registered_since,proto3" json:"created_at,omitempty"` // contains filtered or unexported fields }
func (*User) Descriptor
deprecated
func (*User) GetCreatedAt ¶
func (x *User) GetCreatedAt() *timestamppb.Timestamp
func (*User) GetIsDeactivated ¶
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
func (*User) ProtoReflect ¶
func (x *User) ProtoReflect() protoreflect.Message
type UserAttributes ¶
type UserAttributes struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"` Phone string `protobuf:"bytes,3,opt,name=phone,proto3" json:"phone,omitempty"` // contains filtered or unexported fields }
func (*UserAttributes) Descriptor
deprecated
func (*UserAttributes) Descriptor() ([]byte, []int)
Deprecated: Use UserAttributes.ProtoReflect.Descriptor instead.
func (*UserAttributes) GetEmail ¶
func (x *UserAttributes) GetEmail() string
func (*UserAttributes) GetName ¶
func (x *UserAttributes) GetName() string
func (*UserAttributes) GetPhone ¶
func (x *UserAttributes) GetPhone() string
func (*UserAttributes) ProtoMessage ¶
func (*UserAttributes) ProtoMessage()
func (*UserAttributes) ProtoReflect ¶
func (x *UserAttributes) ProtoReflect() protoreflect.Message
func (*UserAttributes) Reset ¶
func (x *UserAttributes) Reset()
func (*UserAttributes) String ¶
func (x *UserAttributes) String() string
func (*UserAttributes) Validate ¶
func (this *UserAttributes) Validate() error
type UserServiceClient ¶
type UserServiceClient interface { Add(ctx context.Context, in *AddRequest, opts ...grpc.CallOption) (*AddResponse, error) Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetResponse, error) GetByAuthId(ctx context.Context, in *GetByAuthIdRequest, opts ...grpc.CallOption) (*GetResponse, error) Update(ctx context.Context, in *UpdateRequest, opts ...grpc.CallOption) (*UpdateResponse, error) Deactivate(ctx context.Context, in *DeactivateRequest, opts ...grpc.CallOption) (*DeactivateResponse, error) Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*DeleteResponse, error) Whoami(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*WhoamiResponse, error) GetByEmail(ctx context.Context, in *GetByEmailRequest, opts ...grpc.CallOption) (*GetResponse, 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 { Add(context.Context, *AddRequest) (*AddResponse, error) Get(context.Context, *GetRequest) (*GetResponse, error) GetByAuthId(context.Context, *GetByAuthIdRequest) (*GetResponse, error) Update(context.Context, *UpdateRequest) (*UpdateResponse, error) Deactivate(context.Context, *DeactivateRequest) (*DeactivateResponse, error) Delete(context.Context, *DeleteRequest) (*DeleteResponse, error) Whoami(context.Context, *GetRequest) (*WhoamiResponse, error) GetByEmail(context.Context, *GetByEmailRequest) (*GetResponse, error) // contains filtered or unexported methods }
UserServiceServer is the server API for UserService service. All implementations must embed UnimplementedUserServiceServer for forward compatibility
type WhoamiResponse ¶
type WhoamiResponse struct { User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` OwnerOf []*Organization `protobuf:"bytes,2,rep,name=ownerOf,proto3" json:"ownerOf,omitempty"` MemberOf []*Organization `protobuf:"bytes,3,rep,name=memberOf,proto3" json:"memberOf,omitempty"` // contains filtered or unexported fields }
func (*WhoamiResponse) Descriptor
deprecated
func (*WhoamiResponse) Descriptor() ([]byte, []int)
Deprecated: Use WhoamiResponse.ProtoReflect.Descriptor instead.
func (*WhoamiResponse) GetMemberOf ¶
func (x *WhoamiResponse) GetMemberOf() []*Organization
func (*WhoamiResponse) GetOwnerOf ¶
func (x *WhoamiResponse) GetOwnerOf() []*Organization
func (*WhoamiResponse) GetUser ¶
func (x *WhoamiResponse) GetUser() *User
func (*WhoamiResponse) ProtoMessage ¶
func (*WhoamiResponse) ProtoMessage()
func (*WhoamiResponse) ProtoReflect ¶
func (x *WhoamiResponse) ProtoReflect() protoreflect.Message
func (*WhoamiResponse) Reset ¶
func (x *WhoamiResponse) Reset()
func (*WhoamiResponse) String ¶
func (x *WhoamiResponse) String() string
func (*WhoamiResponse) Validate ¶
func (this *WhoamiResponse) Validate() error