Documentation ¶
Overview ¶
Package userV1 is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func RegisterUserServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterUserServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client UserServiceClient) error
- func RegisterUserServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterUserServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server UserServiceServer) error
- func RegisterUserServiceServer(s grpc.ServiceRegistrar, srv UserServiceServer)
- type CreateGroupRequest
- func (*CreateGroupRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateGroupRequest) GetGroup() *Group
- func (*CreateGroupRequest) ProtoMessage()
- func (x *CreateGroupRequest) ProtoReflect() protoreflect.Message
- func (x *CreateGroupRequest) Reset()
- func (x *CreateGroupRequest) String() string
- type CreateGroupResponse
- type GetGroupRequest
- type GetGroupResponse
- type GetUserInfoRequest
- type GetUserInfoResponse
- func (*GetUserInfoResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetUserInfoResponse) GetDownload() int32
- func (x *GetUserInfoResponse) GetEmail() string
- func (x *GetUserInfoResponse) GetKey() string
- func (x *GetUserInfoResponse) GetName() string
- func (x *GetUserInfoResponse) GetTorrentDownloaded() int32
- func (x *GetUserInfoResponse) GetTorrentPublished() int32
- func (x *GetUserInfoResponse) GetTorrentSeeding() int32
- func (x *GetUserInfoResponse) GetUpload() int32
- func (*GetUserInfoResponse) ProtoMessage()
- func (x *GetUserInfoResponse) ProtoReflect() protoreflect.Message
- func (x *GetUserInfoResponse) Reset()
- func (x *GetUserInfoResponse) String() string
- type GetUserPassKeyRequest
- func (*GetUserPassKeyRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetUserPassKeyRequest) GetId() string
- func (*GetUserPassKeyRequest) ProtoMessage()
- func (x *GetUserPassKeyRequest) ProtoReflect() protoreflect.Message
- func (x *GetUserPassKeyRequest) Reset()
- func (x *GetUserPassKeyRequest) String() string
- type GetUserPassKeyResponse
- func (*GetUserPassKeyResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetUserPassKeyResponse) GetPassKey() string
- func (*GetUserPassKeyResponse) ProtoMessage()
- func (x *GetUserPassKeyResponse) ProtoReflect() protoreflect.Message
- func (x *GetUserPassKeyResponse) Reset()
- func (x *GetUserPassKeyResponse) String() string
- type GetUserRequest
- type GetUserResponse
- type Group
- func (*Group) Descriptor() ([]byte, []int)deprecated
- func (x *Group) GetDescription() string
- func (x *Group) GetId() string
- func (x *Group) GetMetaData() []*GroupMetaData
- func (x *Group) GetName() string
- func (*Group) ProtoMessage()
- func (x *Group) ProtoReflect() protoreflect.Message
- func (x *Group) Reset()
- func (x *Group) String() string
- type GroupAddUserRequest
- func (*GroupAddUserRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GroupAddUserRequest) GetGroupId() string
- func (x *GroupAddUserRequest) GetMetaData() []*GroupMetaData
- func (x *GroupAddUserRequest) GetUserId() string
- func (*GroupAddUserRequest) ProtoMessage()
- func (x *GroupAddUserRequest) ProtoReflect() protoreflect.Message
- func (x *GroupAddUserRequest) Reset()
- func (x *GroupAddUserRequest) String() string
- type GroupAddUserResponse
- type GroupMetaData
- func (*GroupMetaData) Descriptor() ([]byte, []int)deprecated
- func (x *GroupMetaData) GetDefaultValue() string
- func (x *GroupMetaData) GetDescription() string
- func (x *GroupMetaData) GetGroupMetaDataOriginalID() string
- func (x *GroupMetaData) GetId() string
- func (x *GroupMetaData) GetKey() string
- func (x *GroupMetaData) GetOrder() int32
- func (x *GroupMetaData) GetType() string
- func (x *GroupMetaData) GetValue() string
- func (*GroupMetaData) ProtoMessage()
- func (x *GroupMetaData) ProtoReflect() protoreflect.Message
- func (x *GroupMetaData) Reset()
- func (x *GroupMetaData) String() string
- type GroupRemoveUserRequest
- func (*GroupRemoveUserRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GroupRemoveUserRequest) GetGroupId() string
- func (x *GroupRemoveUserRequest) GetUserId() string
- func (*GroupRemoveUserRequest) ProtoMessage()
- func (x *GroupRemoveUserRequest) ProtoReflect() protoreflect.Message
- func (x *GroupRemoveUserRequest) Reset()
- func (x *GroupRemoveUserRequest) String() string
- type GroupRemoveUserResponse
- type GroupUserUpdateRequest
- func (*GroupUserUpdateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GroupUserUpdateRequest) GetGroupId() string
- func (x *GroupUserUpdateRequest) GetMetaData() []*GroupMetaData
- func (x *GroupUserUpdateRequest) GetUserId() string
- func (*GroupUserUpdateRequest) ProtoMessage()
- func (x *GroupUserUpdateRequest) ProtoReflect() protoreflect.Message
- func (x *GroupUserUpdateRequest) Reset()
- func (x *GroupUserUpdateRequest) String() string
- type GroupUserUpdateResponse
- type UnimplementedUserServiceServer
- func (UnimplementedUserServiceServer) CreateGroup(context.Context, *CreateGroupRequest) (*CreateGroupResponse, error)
- func (UnimplementedUserServiceServer) GetGroup(context.Context, *GetGroupRequest) (*GetGroupResponse, error)
- func (UnimplementedUserServiceServer) GetUser(context.Context, *GetUserRequest) (*GetUserResponse, error)
- func (UnimplementedUserServiceServer) GetUserInfo(context.Context, *GetUserInfoRequest) (*GetUserInfoResponse, error)
- func (UnimplementedUserServiceServer) GetUserPassKey(context.Context, *GetUserPassKeyRequest) (*GetUserPassKeyResponse, error)
- func (UnimplementedUserServiceServer) GroupAddUser(context.Context, *GroupAddUserRequest) (*GroupAddUserResponse, error)
- func (UnimplementedUserServiceServer) GroupRemoveUser(context.Context, *GroupRemoveUserRequest) (*GroupRemoveUserResponse, error)
- func (UnimplementedUserServiceServer) GroupUserUpdate(context.Context, *GroupUserUpdateRequest) (*GroupUserUpdateResponse, error)
- func (UnimplementedUserServiceServer) UpdateGroup(context.Context, *UpdateGroupRequest) (*UpdateGroupResponse, error)
- func (UnimplementedUserServiceServer) UpdatePassword(context.Context, *UpdatePasswordRequest) (*UpdatePasswordResponse, error)
- func (UnimplementedUserServiceServer) UpdateUser(context.Context, *UpdateUserRequest) (*UpdateUserResponse, error)
- type UnsafeUserServiceServer
- type UpdateGroupRequest
- func (*UpdateGroupRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateGroupRequest) GetGroup() *Group
- func (*UpdateGroupRequest) ProtoMessage()
- func (x *UpdateGroupRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateGroupRequest) Reset()
- func (x *UpdateGroupRequest) String() string
- type UpdateGroupResponse
- type UpdatePasswordRequest
- func (*UpdatePasswordRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdatePasswordRequest) GetNewPassword() string
- func (x *UpdatePasswordRequest) GetOldPassword() string
- func (*UpdatePasswordRequest) ProtoMessage()
- func (x *UpdatePasswordRequest) ProtoReflect() protoreflect.Message
- func (x *UpdatePasswordRequest) Reset()
- func (x *UpdatePasswordRequest) String() string
- type UpdatePasswordResponse
- type UpdateUserRequest
- type UpdateUserResponse
- type User
- type UserServiceClient
- type UserServiceServer
Constants ¶
const ( UserService_GetUser_FullMethodName = "/user.v1.UserService/GetUser" UserService_GetUserInfo_FullMethodName = "/user.v1.UserService/GetUserInfo" UserService_UpdateUser_FullMethodName = "/user.v1.UserService/UpdateUser" UserService_UpdatePassword_FullMethodName = "/user.v1.UserService/UpdatePassword" UserService_CreateGroup_FullMethodName = "/user.v1.UserService/CreateGroup" UserService_GetGroup_FullMethodName = "/user.v1.UserService/GetGroup" UserService_UpdateGroup_FullMethodName = "/user.v1.UserService/UpdateGroup" UserService_GroupAddUser_FullMethodName = "/user.v1.UserService/GroupAddUser" UserService_GroupRemoveUser_FullMethodName = "/user.v1.UserService/GroupRemoveUser" UserService_GroupUserUpdate_FullMethodName = "/user.v1.UserService/GroupUserUpdate" UserService_GetUserPassKey_FullMethodName = "/user.v1.UserService/GetUserPassKey" )
Variables ¶
var File_user_v1_user_proto protoreflect.FileDescriptor
var UserService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "user.v1.UserService", HandlerType: (*UserServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetUser", Handler: _UserService_GetUser_Handler, }, { MethodName: "GetUserInfo", Handler: _UserService_GetUserInfo_Handler, }, { MethodName: "UpdateUser", Handler: _UserService_UpdateUser_Handler, }, { MethodName: "UpdatePassword", Handler: _UserService_UpdatePassword_Handler, }, { MethodName: "CreateGroup", Handler: _UserService_CreateGroup_Handler, }, { MethodName: "GetGroup", Handler: _UserService_GetGroup_Handler, }, { MethodName: "UpdateGroup", Handler: _UserService_UpdateGroup_Handler, }, { MethodName: "GroupAddUser", Handler: _UserService_GroupAddUser_Handler, }, { MethodName: "GroupRemoveUser", Handler: _UserService_GroupRemoveUser_Handler, }, { MethodName: "GroupUserUpdate", Handler: _UserService_GroupUserUpdate_Handler, }, { MethodName: "GetUserPassKey", Handler: _UserService_GetUserPassKey_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "user/v1/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 RegisterUserServiceHandler ¶
func RegisterUserServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterUserServiceHandler registers the http handlers for service UserService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterUserServiceHandlerClient ¶
func RegisterUserServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client UserServiceClient) error
RegisterUserServiceHandlerClient registers the http handlers for service UserService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "UserServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "UserServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "UserServiceClient" to call the correct interceptors. This client ignores the HTTP middlewares.
func RegisterUserServiceHandlerFromEndpoint ¶
func RegisterUserServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterUserServiceHandlerFromEndpoint is same as RegisterUserServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterUserServiceHandlerServer ¶
func RegisterUserServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server UserServiceServer) error
RegisterUserServiceHandlerServer registers the http handlers for service UserService to "mux". UnaryRPC :call UserServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterUserServiceHandlerFromEndpoint instead. GRPC interceptors will not work for this type of registration. To use interceptors, you must use the "runtime.WithMiddlewares" option in the "runtime.NewServeMux" call.
func RegisterUserServiceServer ¶
func RegisterUserServiceServer(s grpc.ServiceRegistrar, srv UserServiceServer)
Types ¶
type CreateGroupRequest ¶
type CreateGroupRequest struct { Group *Group `protobuf:"bytes,1,opt,name=group,proto3" json:"group,omitempty"` // contains filtered or unexported fields }
func (*CreateGroupRequest) Descriptor
deprecated
func (*CreateGroupRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateGroupRequest.ProtoReflect.Descriptor instead.
func (*CreateGroupRequest) GetGroup ¶
func (x *CreateGroupRequest) GetGroup() *Group
func (*CreateGroupRequest) ProtoMessage ¶
func (*CreateGroupRequest) ProtoMessage()
func (*CreateGroupRequest) ProtoReflect ¶
func (x *CreateGroupRequest) ProtoReflect() protoreflect.Message
func (*CreateGroupRequest) Reset ¶
func (x *CreateGroupRequest) Reset()
func (*CreateGroupRequest) String ¶
func (x *CreateGroupRequest) String() string
type CreateGroupResponse ¶
type CreateGroupResponse struct {
// contains filtered or unexported fields
}
func (*CreateGroupResponse) Descriptor
deprecated
func (*CreateGroupResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateGroupResponse.ProtoReflect.Descriptor instead.
func (*CreateGroupResponse) ProtoMessage ¶
func (*CreateGroupResponse) ProtoMessage()
func (*CreateGroupResponse) ProtoReflect ¶
func (x *CreateGroupResponse) ProtoReflect() protoreflect.Message
func (*CreateGroupResponse) Reset ¶
func (x *CreateGroupResponse) Reset()
func (*CreateGroupResponse) String ¶
func (x *CreateGroupResponse) String() string
type GetGroupRequest ¶
type GetGroupRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*GetGroupRequest) Descriptor
deprecated
func (*GetGroupRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetGroupRequest.ProtoReflect.Descriptor instead.
func (*GetGroupRequest) GetId ¶
func (x *GetGroupRequest) GetId() string
func (*GetGroupRequest) ProtoMessage ¶
func (*GetGroupRequest) ProtoMessage()
func (*GetGroupRequest) ProtoReflect ¶
func (x *GetGroupRequest) ProtoReflect() protoreflect.Message
func (*GetGroupRequest) Reset ¶
func (x *GetGroupRequest) Reset()
func (*GetGroupRequest) String ¶
func (x *GetGroupRequest) String() string
type GetGroupResponse ¶
type GetGroupResponse struct { Group *Group `protobuf:"bytes,1,opt,name=group,proto3" json:"group,omitempty"` // contains filtered or unexported fields }
func (*GetGroupResponse) Descriptor
deprecated
func (*GetGroupResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetGroupResponse.ProtoReflect.Descriptor instead.
func (*GetGroupResponse) GetGroup ¶
func (x *GetGroupResponse) GetGroup() *Group
func (*GetGroupResponse) ProtoMessage ¶
func (*GetGroupResponse) ProtoMessage()
func (*GetGroupResponse) ProtoReflect ¶
func (x *GetGroupResponse) ProtoReflect() protoreflect.Message
func (*GetGroupResponse) Reset ¶
func (x *GetGroupResponse) Reset()
func (*GetGroupResponse) String ¶
func (x *GetGroupResponse) String() string
type GetUserInfoRequest ¶
type GetUserInfoRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*GetUserInfoRequest) Descriptor
deprecated
func (*GetUserInfoRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetUserInfoRequest.ProtoReflect.Descriptor instead.
func (*GetUserInfoRequest) GetId ¶
func (x *GetUserInfoRequest) GetId() string
func (*GetUserInfoRequest) ProtoMessage ¶
func (*GetUserInfoRequest) ProtoMessage()
func (*GetUserInfoRequest) ProtoReflect ¶
func (x *GetUserInfoRequest) ProtoReflect() protoreflect.Message
func (*GetUserInfoRequest) Reset ¶
func (x *GetUserInfoRequest) Reset()
func (*GetUserInfoRequest) String ¶
func (x *GetUserInfoRequest) String() string
type GetUserInfoResponse ¶
type GetUserInfoResponse 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"` Download int32 `protobuf:"varint,3,opt,name=download,proto3" json:"download,omitempty"` Upload int32 `protobuf:"varint,4,opt,name=upload,proto3" json:"upload,omitempty"` TorrentPublished int32 `protobuf:"varint,5,opt,name=torrentPublished,proto3" json:"torrentPublished,omitempty"` TorrentDownloaded int32 `protobuf:"varint,6,opt,name=torrentDownloaded,proto3" json:"torrentDownloaded,omitempty"` TorrentSeeding int32 `protobuf:"varint,7,opt,name=torrentSeeding,proto3" json:"torrentSeeding,omitempty"` Key string `protobuf:"bytes,8,opt,name=key,proto3" json:"key,omitempty"` // contains filtered or unexported fields }
func (*GetUserInfoResponse) Descriptor
deprecated
func (*GetUserInfoResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetUserInfoResponse.ProtoReflect.Descriptor instead.
func (*GetUserInfoResponse) GetDownload ¶
func (x *GetUserInfoResponse) GetDownload() int32
func (*GetUserInfoResponse) GetEmail ¶
func (x *GetUserInfoResponse) GetEmail() string
func (*GetUserInfoResponse) GetKey ¶
func (x *GetUserInfoResponse) GetKey() string
func (*GetUserInfoResponse) GetName ¶
func (x *GetUserInfoResponse) GetName() string
func (*GetUserInfoResponse) GetTorrentDownloaded ¶
func (x *GetUserInfoResponse) GetTorrentDownloaded() int32
func (*GetUserInfoResponse) GetTorrentPublished ¶
func (x *GetUserInfoResponse) GetTorrentPublished() int32
func (*GetUserInfoResponse) GetTorrentSeeding ¶
func (x *GetUserInfoResponse) GetTorrentSeeding() int32
func (*GetUserInfoResponse) GetUpload ¶
func (x *GetUserInfoResponse) GetUpload() int32
func (*GetUserInfoResponse) ProtoMessage ¶
func (*GetUserInfoResponse) ProtoMessage()
func (*GetUserInfoResponse) ProtoReflect ¶
func (x *GetUserInfoResponse) ProtoReflect() protoreflect.Message
func (*GetUserInfoResponse) Reset ¶
func (x *GetUserInfoResponse) Reset()
func (*GetUserInfoResponse) String ¶
func (x *GetUserInfoResponse) String() string
type GetUserPassKeyRequest ¶
type GetUserPassKeyRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*GetUserPassKeyRequest) Descriptor
deprecated
func (*GetUserPassKeyRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetUserPassKeyRequest.ProtoReflect.Descriptor instead.
func (*GetUserPassKeyRequest) GetId ¶
func (x *GetUserPassKeyRequest) GetId() string
func (*GetUserPassKeyRequest) ProtoMessage ¶
func (*GetUserPassKeyRequest) ProtoMessage()
func (*GetUserPassKeyRequest) ProtoReflect ¶
func (x *GetUserPassKeyRequest) ProtoReflect() protoreflect.Message
func (*GetUserPassKeyRequest) Reset ¶
func (x *GetUserPassKeyRequest) Reset()
func (*GetUserPassKeyRequest) String ¶
func (x *GetUserPassKeyRequest) String() string
type GetUserPassKeyResponse ¶
type GetUserPassKeyResponse struct { PassKey string `protobuf:"bytes,1,opt,name=passKey,proto3" json:"passKey,omitempty"` // contains filtered or unexported fields }
func (*GetUserPassKeyResponse) Descriptor
deprecated
func (*GetUserPassKeyResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetUserPassKeyResponse.ProtoReflect.Descriptor instead.
func (*GetUserPassKeyResponse) GetPassKey ¶
func (x *GetUserPassKeyResponse) GetPassKey() string
func (*GetUserPassKeyResponse) ProtoMessage ¶
func (*GetUserPassKeyResponse) ProtoMessage()
func (*GetUserPassKeyResponse) ProtoReflect ¶
func (x *GetUserPassKeyResponse) ProtoReflect() protoreflect.Message
func (*GetUserPassKeyResponse) Reset ¶
func (x *GetUserPassKeyResponse) Reset()
func (*GetUserPassKeyResponse) String ¶
func (x *GetUserPassKeyResponse) String() string
type GetUserRequest ¶
type GetUserRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*GetUserRequest) Descriptor
deprecated
func (*GetUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetUserRequest.ProtoReflect.Descriptor instead.
func (*GetUserRequest) GetId ¶
func (x *GetUserRequest) GetId() string
func (*GetUserRequest) ProtoMessage ¶
func (*GetUserRequest) ProtoMessage()
func (*GetUserRequest) ProtoReflect ¶
func (x *GetUserRequest) ProtoReflect() protoreflect.Message
func (*GetUserRequest) Reset ¶
func (x *GetUserRequest) Reset()
func (*GetUserRequest) String ¶
func (x *GetUserRequest) String() string
type GetUserResponse ¶
type GetUserResponse struct { User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` // contains filtered or unexported fields }
func (*GetUserResponse) Descriptor
deprecated
func (*GetUserResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetUserResponse.ProtoReflect.Descriptor instead.
func (*GetUserResponse) GetUser ¶
func (x *GetUserResponse) GetUser() *User
func (*GetUserResponse) ProtoMessage ¶
func (*GetUserResponse) ProtoMessage()
func (*GetUserResponse) ProtoReflect ¶
func (x *GetUserResponse) ProtoReflect() protoreflect.Message
func (*GetUserResponse) Reset ¶
func (x *GetUserResponse) Reset()
func (*GetUserResponse) String ¶
func (x *GetUserResponse) String() string
type Group ¶
type Group 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"` Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` MetaData []*GroupMetaData `protobuf:"bytes,4,rep,name=metaData,proto3" json:"metaData,omitempty"` // contains filtered or unexported fields }
GROUP
func (*Group) Descriptor
deprecated
func (*Group) GetDescription ¶
func (*Group) GetMetaData ¶
func (x *Group) GetMetaData() []*GroupMetaData
func (*Group) ProtoMessage ¶
func (*Group) ProtoMessage()
func (*Group) ProtoReflect ¶
func (x *Group) ProtoReflect() protoreflect.Message
type GroupAddUserRequest ¶
type GroupAddUserRequest struct { UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"` GroupId string `protobuf:"bytes,2,opt,name=groupId,proto3" json:"groupId,omitempty"` MetaData []*GroupMetaData `protobuf:"bytes,3,rep,name=metaData,proto3" json:"metaData,omitempty"` // contains filtered or unexported fields }
func (*GroupAddUserRequest) Descriptor
deprecated
func (*GroupAddUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use GroupAddUserRequest.ProtoReflect.Descriptor instead.
func (*GroupAddUserRequest) GetGroupId ¶
func (x *GroupAddUserRequest) GetGroupId() string
func (*GroupAddUserRequest) GetMetaData ¶
func (x *GroupAddUserRequest) GetMetaData() []*GroupMetaData
func (*GroupAddUserRequest) GetUserId ¶
func (x *GroupAddUserRequest) GetUserId() string
func (*GroupAddUserRequest) ProtoMessage ¶
func (*GroupAddUserRequest) ProtoMessage()
func (*GroupAddUserRequest) ProtoReflect ¶
func (x *GroupAddUserRequest) ProtoReflect() protoreflect.Message
func (*GroupAddUserRequest) Reset ¶
func (x *GroupAddUserRequest) Reset()
func (*GroupAddUserRequest) String ¶
func (x *GroupAddUserRequest) String() string
type GroupAddUserResponse ¶
type GroupAddUserResponse struct {
// contains filtered or unexported fields
}
func (*GroupAddUserResponse) Descriptor
deprecated
func (*GroupAddUserResponse) Descriptor() ([]byte, []int)
Deprecated: Use GroupAddUserResponse.ProtoReflect.Descriptor instead.
func (*GroupAddUserResponse) ProtoMessage ¶
func (*GroupAddUserResponse) ProtoMessage()
func (*GroupAddUserResponse) ProtoReflect ¶
func (x *GroupAddUserResponse) ProtoReflect() protoreflect.Message
func (*GroupAddUserResponse) Reset ¶
func (x *GroupAddUserResponse) Reset()
func (*GroupAddUserResponse) String ¶
func (x *GroupAddUserResponse) String() string
type GroupMetaData ¶
type GroupMetaData struct { GroupMetaDataOriginalID string `protobuf:"bytes,1,opt,name=groupMetaDataOriginalID,proto3" json:"groupMetaDataOriginalID,omitempty"` Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` Key string `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"` Order int32 `protobuf:"varint,4,opt,name=order,proto3" json:"order,omitempty"` Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"` Type string `protobuf:"bytes,6,opt,name=type,proto3" json:"type,omitempty"` Value string `protobuf:"bytes,7,opt,name=value,proto3" json:"value,omitempty"` DefaultValue string `protobuf:"bytes,8,opt,name=defaultValue,proto3" json:"defaultValue,omitempty"` // contains filtered or unexported fields }
func (*GroupMetaData) Descriptor
deprecated
func (*GroupMetaData) Descriptor() ([]byte, []int)
Deprecated: Use GroupMetaData.ProtoReflect.Descriptor instead.
func (*GroupMetaData) GetDefaultValue ¶
func (x *GroupMetaData) GetDefaultValue() string
func (*GroupMetaData) GetDescription ¶
func (x *GroupMetaData) GetDescription() string
func (*GroupMetaData) GetGroupMetaDataOriginalID ¶
func (x *GroupMetaData) GetGroupMetaDataOriginalID() string
func (*GroupMetaData) GetId ¶
func (x *GroupMetaData) GetId() string
func (*GroupMetaData) GetKey ¶
func (x *GroupMetaData) GetKey() string
func (*GroupMetaData) GetOrder ¶
func (x *GroupMetaData) GetOrder() int32
func (*GroupMetaData) GetType ¶
func (x *GroupMetaData) GetType() string
func (*GroupMetaData) GetValue ¶
func (x *GroupMetaData) GetValue() string
func (*GroupMetaData) ProtoMessage ¶
func (*GroupMetaData) ProtoMessage()
func (*GroupMetaData) ProtoReflect ¶
func (x *GroupMetaData) ProtoReflect() protoreflect.Message
func (*GroupMetaData) Reset ¶
func (x *GroupMetaData) Reset()
func (*GroupMetaData) String ¶
func (x *GroupMetaData) String() string
type GroupRemoveUserRequest ¶
type GroupRemoveUserRequest struct { UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"` GroupId string `protobuf:"bytes,2,opt,name=groupId,proto3" json:"groupId,omitempty"` // contains filtered or unexported fields }
func (*GroupRemoveUserRequest) Descriptor
deprecated
func (*GroupRemoveUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use GroupRemoveUserRequest.ProtoReflect.Descriptor instead.
func (*GroupRemoveUserRequest) GetGroupId ¶
func (x *GroupRemoveUserRequest) GetGroupId() string
func (*GroupRemoveUserRequest) GetUserId ¶
func (x *GroupRemoveUserRequest) GetUserId() string
func (*GroupRemoveUserRequest) ProtoMessage ¶
func (*GroupRemoveUserRequest) ProtoMessage()
func (*GroupRemoveUserRequest) ProtoReflect ¶
func (x *GroupRemoveUserRequest) ProtoReflect() protoreflect.Message
func (*GroupRemoveUserRequest) Reset ¶
func (x *GroupRemoveUserRequest) Reset()
func (*GroupRemoveUserRequest) String ¶
func (x *GroupRemoveUserRequest) String() string
type GroupRemoveUserResponse ¶
type GroupRemoveUserResponse struct {
// contains filtered or unexported fields
}
func (*GroupRemoveUserResponse) Descriptor
deprecated
func (*GroupRemoveUserResponse) Descriptor() ([]byte, []int)
Deprecated: Use GroupRemoveUserResponse.ProtoReflect.Descriptor instead.
func (*GroupRemoveUserResponse) ProtoMessage ¶
func (*GroupRemoveUserResponse) ProtoMessage()
func (*GroupRemoveUserResponse) ProtoReflect ¶
func (x *GroupRemoveUserResponse) ProtoReflect() protoreflect.Message
func (*GroupRemoveUserResponse) Reset ¶
func (x *GroupRemoveUserResponse) Reset()
func (*GroupRemoveUserResponse) String ¶
func (x *GroupRemoveUserResponse) String() string
type GroupUserUpdateRequest ¶
type GroupUserUpdateRequest struct { UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"` GroupId string `protobuf:"bytes,2,opt,name=groupId,proto3" json:"groupId,omitempty"` MetaData []*GroupMetaData `protobuf:"bytes,3,rep,name=metaData,proto3" json:"metaData,omitempty"` // contains filtered or unexported fields }
func (*GroupUserUpdateRequest) Descriptor
deprecated
func (*GroupUserUpdateRequest) Descriptor() ([]byte, []int)
Deprecated: Use GroupUserUpdateRequest.ProtoReflect.Descriptor instead.
func (*GroupUserUpdateRequest) GetGroupId ¶
func (x *GroupUserUpdateRequest) GetGroupId() string
func (*GroupUserUpdateRequest) GetMetaData ¶
func (x *GroupUserUpdateRequest) GetMetaData() []*GroupMetaData
func (*GroupUserUpdateRequest) GetUserId ¶
func (x *GroupUserUpdateRequest) GetUserId() string
func (*GroupUserUpdateRequest) ProtoMessage ¶
func (*GroupUserUpdateRequest) ProtoMessage()
func (*GroupUserUpdateRequest) ProtoReflect ¶
func (x *GroupUserUpdateRequest) ProtoReflect() protoreflect.Message
func (*GroupUserUpdateRequest) Reset ¶
func (x *GroupUserUpdateRequest) Reset()
func (*GroupUserUpdateRequest) String ¶
func (x *GroupUserUpdateRequest) String() string
type GroupUserUpdateResponse ¶
type GroupUserUpdateResponse struct {
// contains filtered or unexported fields
}
func (*GroupUserUpdateResponse) Descriptor
deprecated
func (*GroupUserUpdateResponse) Descriptor() ([]byte, []int)
Deprecated: Use GroupUserUpdateResponse.ProtoReflect.Descriptor instead.
func (*GroupUserUpdateResponse) ProtoMessage ¶
func (*GroupUserUpdateResponse) ProtoMessage()
func (*GroupUserUpdateResponse) ProtoReflect ¶
func (x *GroupUserUpdateResponse) ProtoReflect() protoreflect.Message
func (*GroupUserUpdateResponse) Reset ¶
func (x *GroupUserUpdateResponse) Reset()
func (*GroupUserUpdateResponse) String ¶
func (x *GroupUserUpdateResponse) String() string
type UnimplementedUserServiceServer ¶
type UnimplementedUserServiceServer struct{}
UnimplementedUserServiceServer 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 (UnimplementedUserServiceServer) CreateGroup ¶
func (UnimplementedUserServiceServer) CreateGroup(context.Context, *CreateGroupRequest) (*CreateGroupResponse, error)
func (UnimplementedUserServiceServer) GetGroup ¶
func (UnimplementedUserServiceServer) GetGroup(context.Context, *GetGroupRequest) (*GetGroupResponse, error)
func (UnimplementedUserServiceServer) GetUser ¶
func (UnimplementedUserServiceServer) GetUser(context.Context, *GetUserRequest) (*GetUserResponse, error)
func (UnimplementedUserServiceServer) GetUserInfo ¶
func (UnimplementedUserServiceServer) GetUserInfo(context.Context, *GetUserInfoRequest) (*GetUserInfoResponse, error)
func (UnimplementedUserServiceServer) GetUserPassKey ¶
func (UnimplementedUserServiceServer) GetUserPassKey(context.Context, *GetUserPassKeyRequest) (*GetUserPassKeyResponse, error)
func (UnimplementedUserServiceServer) GroupAddUser ¶
func (UnimplementedUserServiceServer) GroupAddUser(context.Context, *GroupAddUserRequest) (*GroupAddUserResponse, error)
func (UnimplementedUserServiceServer) GroupRemoveUser ¶
func (UnimplementedUserServiceServer) GroupRemoveUser(context.Context, *GroupRemoveUserRequest) (*GroupRemoveUserResponse, error)
func (UnimplementedUserServiceServer) GroupUserUpdate ¶
func (UnimplementedUserServiceServer) GroupUserUpdate(context.Context, *GroupUserUpdateRequest) (*GroupUserUpdateResponse, error)
func (UnimplementedUserServiceServer) UpdateGroup ¶
func (UnimplementedUserServiceServer) UpdateGroup(context.Context, *UpdateGroupRequest) (*UpdateGroupResponse, error)
func (UnimplementedUserServiceServer) UpdatePassword ¶
func (UnimplementedUserServiceServer) UpdatePassword(context.Context, *UpdatePasswordRequest) (*UpdatePasswordResponse, error)
func (UnimplementedUserServiceServer) UpdateUser ¶
func (UnimplementedUserServiceServer) UpdateUser(context.Context, *UpdateUserRequest) (*UpdateUserResponse, 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 UpdateGroupRequest ¶
type UpdateGroupRequest struct { Group *Group `protobuf:"bytes,1,opt,name=group,proto3" json:"group,omitempty"` // contains filtered or unexported fields }
func (*UpdateGroupRequest) Descriptor
deprecated
func (*UpdateGroupRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateGroupRequest.ProtoReflect.Descriptor instead.
func (*UpdateGroupRequest) GetGroup ¶
func (x *UpdateGroupRequest) GetGroup() *Group
func (*UpdateGroupRequest) ProtoMessage ¶
func (*UpdateGroupRequest) ProtoMessage()
func (*UpdateGroupRequest) ProtoReflect ¶
func (x *UpdateGroupRequest) ProtoReflect() protoreflect.Message
func (*UpdateGroupRequest) Reset ¶
func (x *UpdateGroupRequest) Reset()
func (*UpdateGroupRequest) String ¶
func (x *UpdateGroupRequest) String() string
type UpdateGroupResponse ¶
type UpdateGroupResponse struct {
// contains filtered or unexported fields
}
func (*UpdateGroupResponse) Descriptor
deprecated
func (*UpdateGroupResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateGroupResponse.ProtoReflect.Descriptor instead.
func (*UpdateGroupResponse) ProtoMessage ¶
func (*UpdateGroupResponse) ProtoMessage()
func (*UpdateGroupResponse) ProtoReflect ¶
func (x *UpdateGroupResponse) ProtoReflect() protoreflect.Message
func (*UpdateGroupResponse) Reset ¶
func (x *UpdateGroupResponse) Reset()
func (*UpdateGroupResponse) String ¶
func (x *UpdateGroupResponse) String() string
type UpdatePasswordRequest ¶
type UpdatePasswordRequest struct { OldPassword string `protobuf:"bytes,1,opt,name=oldPassword,proto3" json:"oldPassword,omitempty"` NewPassword string `protobuf:"bytes,2,opt,name=newPassword,proto3" json:"newPassword,omitempty"` // contains filtered or unexported fields }
func (*UpdatePasswordRequest) Descriptor
deprecated
func (*UpdatePasswordRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdatePasswordRequest.ProtoReflect.Descriptor instead.
func (*UpdatePasswordRequest) GetNewPassword ¶
func (x *UpdatePasswordRequest) GetNewPassword() string
func (*UpdatePasswordRequest) GetOldPassword ¶
func (x *UpdatePasswordRequest) GetOldPassword() string
func (*UpdatePasswordRequest) ProtoMessage ¶
func (*UpdatePasswordRequest) ProtoMessage()
func (*UpdatePasswordRequest) ProtoReflect ¶
func (x *UpdatePasswordRequest) ProtoReflect() protoreflect.Message
func (*UpdatePasswordRequest) Reset ¶
func (x *UpdatePasswordRequest) Reset()
func (*UpdatePasswordRequest) String ¶
func (x *UpdatePasswordRequest) String() string
type UpdatePasswordResponse ¶
type UpdatePasswordResponse struct {
// contains filtered or unexported fields
}
func (*UpdatePasswordResponse) Descriptor
deprecated
func (*UpdatePasswordResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdatePasswordResponse.ProtoReflect.Descriptor instead.
func (*UpdatePasswordResponse) ProtoMessage ¶
func (*UpdatePasswordResponse) ProtoMessage()
func (*UpdatePasswordResponse) ProtoReflect ¶
func (x *UpdatePasswordResponse) ProtoReflect() protoreflect.Message
func (*UpdatePasswordResponse) Reset ¶
func (x *UpdatePasswordResponse) Reset()
func (*UpdatePasswordResponse) String ¶
func (x *UpdatePasswordResponse) String() string
type UpdateUserRequest ¶
type UpdateUserRequest struct { User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` // contains filtered or unexported fields }
func (*UpdateUserRequest) Descriptor
deprecated
func (*UpdateUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateUserRequest.ProtoReflect.Descriptor instead.
func (*UpdateUserRequest) GetUser ¶
func (x *UpdateUserRequest) GetUser() *User
func (*UpdateUserRequest) ProtoMessage ¶
func (*UpdateUserRequest) ProtoMessage()
func (*UpdateUserRequest) ProtoReflect ¶
func (x *UpdateUserRequest) ProtoReflect() protoreflect.Message
func (*UpdateUserRequest) Reset ¶
func (x *UpdateUserRequest) Reset()
func (*UpdateUserRequest) String ¶
func (x *UpdateUserRequest) String() string
type UpdateUserResponse ¶
type UpdateUserResponse struct { User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` // contains filtered or unexported fields }
func (*UpdateUserResponse) Descriptor
deprecated
func (*UpdateUserResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateUserResponse.ProtoReflect.Descriptor instead.
func (*UpdateUserResponse) GetUser ¶
func (x *UpdateUserResponse) GetUser() *User
func (*UpdateUserResponse) ProtoMessage ¶
func (*UpdateUserResponse) ProtoMessage()
func (*UpdateUserResponse) ProtoReflect ¶
func (x *UpdateUserResponse) ProtoReflect() protoreflect.Message
func (*UpdateUserResponse) Reset ¶
func (x *UpdateUserResponse) Reset()
func (*UpdateUserResponse) String ¶
func (x *UpdateUserResponse) String() string
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"` Role string `protobuf:"bytes,3,opt,name=role,proto3" json:"role,omitempty"` // contains filtered or unexported fields }
func (*User) Descriptor
deprecated
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
func (*User) ProtoReflect ¶
func (x *User) ProtoReflect() protoreflect.Message
type UserServiceClient ¶
type UserServiceClient interface { GetUser(ctx context.Context, in *GetUserRequest, opts ...grpc.CallOption) (*GetUserResponse, error) GetUserInfo(ctx context.Context, in *GetUserInfoRequest, opts ...grpc.CallOption) (*GetUserInfoResponse, error) UpdateUser(ctx context.Context, in *UpdateUserRequest, opts ...grpc.CallOption) (*UpdateUserResponse, error) UpdatePassword(ctx context.Context, in *UpdatePasswordRequest, opts ...grpc.CallOption) (*UpdatePasswordResponse, error) // GROUP CreateGroup(ctx context.Context, in *CreateGroupRequest, opts ...grpc.CallOption) (*CreateGroupResponse, error) GetGroup(ctx context.Context, in *GetGroupRequest, opts ...grpc.CallOption) (*GetGroupResponse, error) UpdateGroup(ctx context.Context, in *UpdateGroupRequest, opts ...grpc.CallOption) (*UpdateGroupResponse, error) GroupAddUser(ctx context.Context, in *GroupAddUserRequest, opts ...grpc.CallOption) (*GroupAddUserResponse, error) GroupRemoveUser(ctx context.Context, in *GroupRemoveUserRequest, opts ...grpc.CallOption) (*GroupRemoveUserResponse, error) GroupUserUpdate(ctx context.Context, in *GroupUserUpdateRequest, opts ...grpc.CallOption) (*GroupUserUpdateResponse, error) GetUserPassKey(ctx context.Context, in *GetUserPassKeyRequest, opts ...grpc.CallOption) (*GetUserPassKeyResponse, 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 { GetUser(context.Context, *GetUserRequest) (*GetUserResponse, error) GetUserInfo(context.Context, *GetUserInfoRequest) (*GetUserInfoResponse, error) UpdateUser(context.Context, *UpdateUserRequest) (*UpdateUserResponse, error) UpdatePassword(context.Context, *UpdatePasswordRequest) (*UpdatePasswordResponse, error) // GROUP CreateGroup(context.Context, *CreateGroupRequest) (*CreateGroupResponse, error) GetGroup(context.Context, *GetGroupRequest) (*GetGroupResponse, error) UpdateGroup(context.Context, *UpdateGroupRequest) (*UpdateGroupResponse, error) GroupAddUser(context.Context, *GroupAddUserRequest) (*GroupAddUserResponse, error) GroupRemoveUser(context.Context, *GroupRemoveUserRequest) (*GroupRemoveUserResponse, error) GroupUserUpdate(context.Context, *GroupUserUpdateRequest) (*GroupUserUpdateResponse, error) GetUserPassKey(context.Context, *GetUserPassKeyRequest) (*GetUserPassKeyResponse, error) // contains filtered or unexported methods }
UserServiceServer is the server API for UserService service. All implementations must embed UnimplementedUserServiceServer for forward compatibility.