Documentation ¶
Overview ¶
Package idm is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func RegisterIdmServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterIdmServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client IdmServiceClient) error
- func RegisterIdmServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterIdmServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server IdmServiceServer) error
- func RegisterIdmServiceServer(s grpc.ServiceRegistrar, srv IdmServiceServer)
- type Account
- func (*Account) Descriptor() ([]byte, []int)deprecated
- func (x *Account) GetAccountName() string
- func (x *Account) GetId() uint64
- func (*Account) ProtoMessage()
- func (x *Account) ProtoReflect() protoreflect.Message
- func (x *Account) Reset()
- func (x *Account) String() string
- func (m *Account) Validate() error
- func (m *Account) ValidateAll() error
- type AccountMultiError
- type AccountValidationError
- type CreateAccountRequest
- func (*CreateAccountRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateAccountRequest) GetAccountName() string
- func (x *CreateAccountRequest) GetPassword() string
- func (*CreateAccountRequest) ProtoMessage()
- func (x *CreateAccountRequest) ProtoReflect() protoreflect.Message
- func (x *CreateAccountRequest) Reset()
- func (x *CreateAccountRequest) String() string
- func (m *CreateAccountRequest) Validate() error
- func (m *CreateAccountRequest) ValidateAll() error
- type CreateAccountRequestMultiError
- type CreateAccountRequestValidationError
- func (e CreateAccountRequestValidationError) Cause() error
- func (e CreateAccountRequestValidationError) Error() string
- func (e CreateAccountRequestValidationError) ErrorName() string
- func (e CreateAccountRequestValidationError) Field() string
- func (e CreateAccountRequestValidationError) Key() bool
- func (e CreateAccountRequestValidationError) Reason() string
- type CreateAccountResponse
- func (*CreateAccountResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateAccountResponse) GetAccountId() uint64
- func (*CreateAccountResponse) ProtoMessage()
- func (x *CreateAccountResponse) ProtoReflect() protoreflect.Message
- func (x *CreateAccountResponse) Reset()
- func (x *CreateAccountResponse) String() string
- func (m *CreateAccountResponse) Validate() error
- func (m *CreateAccountResponse) ValidateAll() error
- type CreateAccountResponseMultiError
- type CreateAccountResponseValidationError
- func (e CreateAccountResponseValidationError) Cause() error
- func (e CreateAccountResponseValidationError) Error() string
- func (e CreateAccountResponseValidationError) ErrorName() string
- func (e CreateAccountResponseValidationError) Field() string
- func (e CreateAccountResponseValidationError) Key() bool
- func (e CreateAccountResponseValidationError) Reason() string
- type CreateDownloadTaskRequest
- func (*CreateDownloadTaskRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateDownloadTaskRequest) GetDownloadType() DownloadType
- func (x *CreateDownloadTaskRequest) GetUrl() string
- func (*CreateDownloadTaskRequest) ProtoMessage()
- func (x *CreateDownloadTaskRequest) ProtoReflect() protoreflect.Message
- func (x *CreateDownloadTaskRequest) Reset()
- func (x *CreateDownloadTaskRequest) String() string
- func (m *CreateDownloadTaskRequest) Validate() error
- func (m *CreateDownloadTaskRequest) ValidateAll() error
- type CreateDownloadTaskRequestMultiError
- type CreateDownloadTaskRequestValidationError
- func (e CreateDownloadTaskRequestValidationError) Cause() error
- func (e CreateDownloadTaskRequestValidationError) Error() string
- func (e CreateDownloadTaskRequestValidationError) ErrorName() string
- func (e CreateDownloadTaskRequestValidationError) Field() string
- func (e CreateDownloadTaskRequestValidationError) Key() bool
- func (e CreateDownloadTaskRequestValidationError) Reason() string
- type CreateDownloadTaskResponse
- func (*CreateDownloadTaskResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateDownloadTaskResponse) GetDownloadTask() *DownloadTask
- func (*CreateDownloadTaskResponse) ProtoMessage()
- func (x *CreateDownloadTaskResponse) ProtoReflect() protoreflect.Message
- func (x *CreateDownloadTaskResponse) Reset()
- func (x *CreateDownloadTaskResponse) String() string
- func (m *CreateDownloadTaskResponse) Validate() error
- func (m *CreateDownloadTaskResponse) ValidateAll() error
- type CreateDownloadTaskResponseMultiError
- type CreateDownloadTaskResponseValidationError
- func (e CreateDownloadTaskResponseValidationError) Cause() error
- func (e CreateDownloadTaskResponseValidationError) Error() string
- func (e CreateDownloadTaskResponseValidationError) ErrorName() string
- func (e CreateDownloadTaskResponseValidationError) Field() string
- func (e CreateDownloadTaskResponseValidationError) Key() bool
- func (e CreateDownloadTaskResponseValidationError) Reason() string
- type CreateSessionRequest
- func (*CreateSessionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateSessionRequest) GetAccountName() string
- func (x *CreateSessionRequest) GetPassword() string
- func (*CreateSessionRequest) ProtoMessage()
- func (x *CreateSessionRequest) ProtoReflect() protoreflect.Message
- func (x *CreateSessionRequest) Reset()
- func (x *CreateSessionRequest) String() string
- func (m *CreateSessionRequest) Validate() error
- func (m *CreateSessionRequest) ValidateAll() error
- type CreateSessionRequestMultiError
- type CreateSessionRequestValidationError
- func (e CreateSessionRequestValidationError) Cause() error
- func (e CreateSessionRequestValidationError) Error() string
- func (e CreateSessionRequestValidationError) ErrorName() string
- func (e CreateSessionRequestValidationError) Field() string
- func (e CreateSessionRequestValidationError) Key() bool
- func (e CreateSessionRequestValidationError) Reason() string
- type CreateSessionResponse
- func (*CreateSessionResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateSessionResponse) GetAccount() *Account
- func (*CreateSessionResponse) ProtoMessage()
- func (x *CreateSessionResponse) ProtoReflect() protoreflect.Message
- func (x *CreateSessionResponse) Reset()
- func (x *CreateSessionResponse) String() string
- func (m *CreateSessionResponse) Validate() error
- func (m *CreateSessionResponse) ValidateAll() error
- type CreateSessionResponseMultiError
- type CreateSessionResponseValidationError
- func (e CreateSessionResponseValidationError) Cause() error
- func (e CreateSessionResponseValidationError) Error() string
- func (e CreateSessionResponseValidationError) ErrorName() string
- func (e CreateSessionResponseValidationError) Field() string
- func (e CreateSessionResponseValidationError) Key() bool
- func (e CreateSessionResponseValidationError) Reason() string
- type DeleteDownloadTaskRequest
- func (*DeleteDownloadTaskRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteDownloadTaskRequest) GetDownloadTaskId() uint64
- func (*DeleteDownloadTaskRequest) ProtoMessage()
- func (x *DeleteDownloadTaskRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteDownloadTaskRequest) Reset()
- func (x *DeleteDownloadTaskRequest) String() string
- func (m *DeleteDownloadTaskRequest) Validate() error
- func (m *DeleteDownloadTaskRequest) ValidateAll() error
- type DeleteDownloadTaskRequestMultiError
- type DeleteDownloadTaskRequestValidationError
- func (e DeleteDownloadTaskRequestValidationError) Cause() error
- func (e DeleteDownloadTaskRequestValidationError) Error() string
- func (e DeleteDownloadTaskRequestValidationError) ErrorName() string
- func (e DeleteDownloadTaskRequestValidationError) Field() string
- func (e DeleteDownloadTaskRequestValidationError) Key() bool
- func (e DeleteDownloadTaskRequestValidationError) Reason() string
- type DeleteDownloadTaskResponse
- func (*DeleteDownloadTaskResponse) Descriptor() ([]byte, []int)deprecated
- func (*DeleteDownloadTaskResponse) ProtoMessage()
- func (x *DeleteDownloadTaskResponse) ProtoReflect() protoreflect.Message
- func (x *DeleteDownloadTaskResponse) Reset()
- func (x *DeleteDownloadTaskResponse) String() string
- func (m *DeleteDownloadTaskResponse) Validate() error
- func (m *DeleteDownloadTaskResponse) ValidateAll() error
- type DeleteDownloadTaskResponseMultiError
- type DeleteDownloadTaskResponseValidationError
- func (e DeleteDownloadTaskResponseValidationError) Cause() error
- func (e DeleteDownloadTaskResponseValidationError) Error() string
- func (e DeleteDownloadTaskResponseValidationError) ErrorName() string
- func (e DeleteDownloadTaskResponseValidationError) Field() string
- func (e DeleteDownloadTaskResponseValidationError) Key() bool
- func (e DeleteDownloadTaskResponseValidationError) Reason() string
- type DeleteSessionRequest
- func (*DeleteSessionRequest) Descriptor() ([]byte, []int)deprecated
- func (*DeleteSessionRequest) ProtoMessage()
- func (x *DeleteSessionRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteSessionRequest) Reset()
- func (x *DeleteSessionRequest) String() string
- func (m *DeleteSessionRequest) Validate() error
- func (m *DeleteSessionRequest) ValidateAll() error
- type DeleteSessionRequestMultiError
- type DeleteSessionRequestValidationError
- func (e DeleteSessionRequestValidationError) Cause() error
- func (e DeleteSessionRequestValidationError) Error() string
- func (e DeleteSessionRequestValidationError) ErrorName() string
- func (e DeleteSessionRequestValidationError) Field() string
- func (e DeleteSessionRequestValidationError) Key() bool
- func (e DeleteSessionRequestValidationError) Reason() string
- type DeleteSessionResponse
- func (*DeleteSessionResponse) Descriptor() ([]byte, []int)deprecated
- func (*DeleteSessionResponse) ProtoMessage()
- func (x *DeleteSessionResponse) ProtoReflect() protoreflect.Message
- func (x *DeleteSessionResponse) Reset()
- func (x *DeleteSessionResponse) String() string
- func (m *DeleteSessionResponse) Validate() error
- func (m *DeleteSessionResponse) ValidateAll() error
- type DeleteSessionResponseMultiError
- type DeleteSessionResponseValidationError
- func (e DeleteSessionResponseValidationError) Cause() error
- func (e DeleteSessionResponseValidationError) Error() string
- func (e DeleteSessionResponseValidationError) ErrorName() string
- func (e DeleteSessionResponseValidationError) Field() string
- func (e DeleteSessionResponseValidationError) Key() bool
- func (e DeleteSessionResponseValidationError) Reason() string
- type DownloadStatus
- func (DownloadStatus) Descriptor() protoreflect.EnumDescriptor
- func (x DownloadStatus) Enum() *DownloadStatus
- func (DownloadStatus) EnumDescriptor() ([]byte, []int)deprecated
- func (x DownloadStatus) Number() protoreflect.EnumNumber
- func (x DownloadStatus) String() string
- func (DownloadStatus) Type() protoreflect.EnumType
- type DownloadTask
- func (*DownloadTask) Descriptor() ([]byte, []int)deprecated
- func (x *DownloadTask) GetDownloadStatus() DownloadStatus
- func (x *DownloadTask) GetDownloadType() DownloadType
- func (x *DownloadTask) GetId() uint64
- func (x *DownloadTask) GetMetadata() string
- func (x *DownloadTask) GetOfAccount() *Account
- func (x *DownloadTask) GetUrl() string
- func (*DownloadTask) ProtoMessage()
- func (x *DownloadTask) ProtoReflect() protoreflect.Message
- func (x *DownloadTask) Reset()
- func (x *DownloadTask) String() string
- func (m *DownloadTask) Validate() error
- func (m *DownloadTask) ValidateAll() error
- type DownloadTaskMultiError
- type DownloadTaskValidationError
- func (e DownloadTaskValidationError) Cause() error
- func (e DownloadTaskValidationError) Error() string
- func (e DownloadTaskValidationError) ErrorName() string
- func (e DownloadTaskValidationError) Field() string
- func (e DownloadTaskValidationError) Key() bool
- func (e DownloadTaskValidationError) Reason() string
- type DownloadType
- func (DownloadType) Descriptor() protoreflect.EnumDescriptor
- func (x DownloadType) Enum() *DownloadType
- func (DownloadType) EnumDescriptor() ([]byte, []int)deprecated
- func (x DownloadType) Number() protoreflect.EnumNumber
- func (x DownloadType) String() string
- func (DownloadType) Type() protoreflect.EnumType
- type GetDownloadTaskFileRequest
- func (*GetDownloadTaskFileRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetDownloadTaskFileRequest) GetDownloadTaskId() uint64
- func (*GetDownloadTaskFileRequest) ProtoMessage()
- func (x *GetDownloadTaskFileRequest) ProtoReflect() protoreflect.Message
- func (x *GetDownloadTaskFileRequest) Reset()
- func (x *GetDownloadTaskFileRequest) String() string
- func (m *GetDownloadTaskFileRequest) Validate() error
- func (m *GetDownloadTaskFileRequest) ValidateAll() error
- type GetDownloadTaskFileRequestMultiError
- type GetDownloadTaskFileRequestValidationError
- func (e GetDownloadTaskFileRequestValidationError) Cause() error
- func (e GetDownloadTaskFileRequestValidationError) Error() string
- func (e GetDownloadTaskFileRequestValidationError) ErrorName() string
- func (e GetDownloadTaskFileRequestValidationError) Field() string
- func (e GetDownloadTaskFileRequestValidationError) Key() bool
- func (e GetDownloadTaskFileRequestValidationError) Reason() string
- type GetDownloadTaskFileResponse
- func (*GetDownloadTaskFileResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetDownloadTaskFileResponse) GetData() []byte
- func (*GetDownloadTaskFileResponse) ProtoMessage()
- func (x *GetDownloadTaskFileResponse) ProtoReflect() protoreflect.Message
- func (x *GetDownloadTaskFileResponse) Reset()
- func (x *GetDownloadTaskFileResponse) String() string
- func (m *GetDownloadTaskFileResponse) Validate() error
- func (m *GetDownloadTaskFileResponse) ValidateAll() error
- type GetDownloadTaskFileResponseMultiError
- type GetDownloadTaskFileResponseValidationError
- func (e GetDownloadTaskFileResponseValidationError) Cause() error
- func (e GetDownloadTaskFileResponseValidationError) Error() string
- func (e GetDownloadTaskFileResponseValidationError) ErrorName() string
- func (e GetDownloadTaskFileResponseValidationError) Field() string
- func (e GetDownloadTaskFileResponseValidationError) Key() bool
- func (e GetDownloadTaskFileResponseValidationError) Reason() string
- type GetDownloadTaskListRequest
- func (*GetDownloadTaskListRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetDownloadTaskListRequest) GetLimit() uint64
- func (x *GetDownloadTaskListRequest) GetOffset() uint64
- func (*GetDownloadTaskListRequest) ProtoMessage()
- func (x *GetDownloadTaskListRequest) ProtoReflect() protoreflect.Message
- func (x *GetDownloadTaskListRequest) Reset()
- func (x *GetDownloadTaskListRequest) String() string
- func (m *GetDownloadTaskListRequest) Validate() error
- func (m *GetDownloadTaskListRequest) ValidateAll() error
- type GetDownloadTaskListRequestMultiError
- type GetDownloadTaskListRequestValidationError
- func (e GetDownloadTaskListRequestValidationError) Cause() error
- func (e GetDownloadTaskListRequestValidationError) Error() string
- func (e GetDownloadTaskListRequestValidationError) ErrorName() string
- func (e GetDownloadTaskListRequestValidationError) Field() string
- func (e GetDownloadTaskListRequestValidationError) Key() bool
- func (e GetDownloadTaskListRequestValidationError) Reason() string
- type GetDownloadTaskListResponse
- func (*GetDownloadTaskListResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetDownloadTaskListResponse) GetDownloadTaskList() []*DownloadTask
- func (x *GetDownloadTaskListResponse) GetTotalDownloadTaskCount() uint64
- func (*GetDownloadTaskListResponse) ProtoMessage()
- func (x *GetDownloadTaskListResponse) ProtoReflect() protoreflect.Message
- func (x *GetDownloadTaskListResponse) Reset()
- func (x *GetDownloadTaskListResponse) String() string
- func (m *GetDownloadTaskListResponse) Validate() error
- func (m *GetDownloadTaskListResponse) ValidateAll() error
- type GetDownloadTaskListResponseMultiError
- type GetDownloadTaskListResponseValidationError
- func (e GetDownloadTaskListResponseValidationError) Cause() error
- func (e GetDownloadTaskListResponseValidationError) Error() string
- func (e GetDownloadTaskListResponseValidationError) ErrorName() string
- func (e GetDownloadTaskListResponseValidationError) Field() string
- func (e GetDownloadTaskListResponseValidationError) Key() bool
- func (e GetDownloadTaskListResponseValidationError) Reason() string
- type IdmServiceClient
- type IdmServiceServer
- type IdmService_GetDownloadTaskFileClient
- type IdmService_GetDownloadTaskFileServer
- type UnimplementedIdmServiceServer
- func (UnimplementedIdmServiceServer) CreateAccount(context.Context, *CreateAccountRequest) (*CreateAccountResponse, error)
- func (UnimplementedIdmServiceServer) CreateDownloadTask(context.Context, *CreateDownloadTaskRequest) (*CreateDownloadTaskResponse, error)
- func (UnimplementedIdmServiceServer) CreateSession(context.Context, *CreateSessionRequest) (*CreateSessionResponse, error)
- func (UnimplementedIdmServiceServer) DeleteDownloadTask(context.Context, *DeleteDownloadTaskRequest) (*DeleteDownloadTaskResponse, error)
- func (UnimplementedIdmServiceServer) DeleteSession(context.Context, *DeleteSessionRequest) (*DeleteSessionResponse, error)
- func (UnimplementedIdmServiceServer) GetDownloadTaskFile(*GetDownloadTaskFileRequest, IdmService_GetDownloadTaskFileServer) error
- func (UnimplementedIdmServiceServer) GetDownloadTaskList(context.Context, *GetDownloadTaskListRequest) (*GetDownloadTaskListResponse, error)
- func (UnimplementedIdmServiceServer) UpdateDownloadTask(context.Context, *UpdateDownloadTaskRequest) (*UpdateDownloadTaskResponse, error)
- type UnsafeIdmServiceServer
- type UpdateDownloadTaskRequest
- func (*UpdateDownloadTaskRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateDownloadTaskRequest) GetDownloadStatus() DownloadStatus
- func (x *UpdateDownloadTaskRequest) GetDownloadTaskId() uint64
- func (x *UpdateDownloadTaskRequest) GetMetadata() string
- func (*UpdateDownloadTaskRequest) ProtoMessage()
- func (x *UpdateDownloadTaskRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateDownloadTaskRequest) Reset()
- func (x *UpdateDownloadTaskRequest) String() string
- func (m *UpdateDownloadTaskRequest) Validate() error
- func (m *UpdateDownloadTaskRequest) ValidateAll() error
- type UpdateDownloadTaskRequestMultiError
- type UpdateDownloadTaskRequestValidationError
- func (e UpdateDownloadTaskRequestValidationError) Cause() error
- func (e UpdateDownloadTaskRequestValidationError) Error() string
- func (e UpdateDownloadTaskRequestValidationError) ErrorName() string
- func (e UpdateDownloadTaskRequestValidationError) Field() string
- func (e UpdateDownloadTaskRequestValidationError) Key() bool
- func (e UpdateDownloadTaskRequestValidationError) Reason() string
- type UpdateDownloadTaskResponse
- func (*UpdateDownloadTaskResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateDownloadTaskResponse) GetDownloadTask() *DownloadTask
- func (*UpdateDownloadTaskResponse) ProtoMessage()
- func (x *UpdateDownloadTaskResponse) ProtoReflect() protoreflect.Message
- func (x *UpdateDownloadTaskResponse) Reset()
- func (x *UpdateDownloadTaskResponse) String() string
- func (m *UpdateDownloadTaskResponse) Validate() error
- func (m *UpdateDownloadTaskResponse) ValidateAll() error
- type UpdateDownloadTaskResponseMultiError
- type UpdateDownloadTaskResponseValidationError
- func (e UpdateDownloadTaskResponseValidationError) Cause() error
- func (e UpdateDownloadTaskResponseValidationError) Error() string
- func (e UpdateDownloadTaskResponseValidationError) ErrorName() string
- func (e UpdateDownloadTaskResponseValidationError) Field() string
- func (e UpdateDownloadTaskResponseValidationError) Key() bool
- func (e UpdateDownloadTaskResponseValidationError) Reason() string
Constants ¶
const ( IdmService_CreateAccount_FullMethodName = "/idm.IdmService/CreateAccount" IdmService_CreateSession_FullMethodName = "/idm.IdmService/CreateSession" IdmService_DeleteSession_FullMethodName = "/idm.IdmService/DeleteSession" IdmService_CreateDownloadTask_FullMethodName = "/idm.IdmService/CreateDownloadTask" IdmService_GetDownloadTaskList_FullMethodName = "/idm.IdmService/GetDownloadTaskList" IdmService_UpdateDownloadTask_FullMethodName = "/idm.IdmService/UpdateDownloadTask" IdmService_DeleteDownloadTask_FullMethodName = "/idm.IdmService/DeleteDownloadTask" IdmService_GetDownloadTaskFile_FullMethodName = "/idm.IdmService/GetDownloadTaskFile" )
Variables ¶
var ( DownloadType_name = map[int32]string{ 0: "UndefinedType", 1: "HTTP", } DownloadType_value = map[string]int32{ "UndefinedType": 0, "HTTP": 1, } )
Enum value maps for DownloadType.
var ( DownloadStatus_name = map[int32]string{ 0: "UndefinedStatus", 1: "Pending", 2: "Downloading", 3: "Failed", 4: "Success", } DownloadStatus_value = map[string]int32{ "UndefinedStatus": 0, "Pending": 1, "Downloading": 2, "Failed": 3, "Success": 4, } )
Enum value maps for DownloadStatus.
var File_idm_proto protoreflect.FileDescriptor
var IdmService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "idm.IdmService", HandlerType: (*IdmServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateAccount", Handler: _IdmService_CreateAccount_Handler, }, { MethodName: "CreateSession", Handler: _IdmService_CreateSession_Handler, }, { MethodName: "DeleteSession", Handler: _IdmService_DeleteSession_Handler, }, { MethodName: "CreateDownloadTask", Handler: _IdmService_CreateDownloadTask_Handler, }, { MethodName: "GetDownloadTaskList", Handler: _IdmService_GetDownloadTaskList_Handler, }, { MethodName: "UpdateDownloadTask", Handler: _IdmService_UpdateDownloadTask_Handler, }, { MethodName: "DeleteDownloadTask", Handler: _IdmService_DeleteDownloadTask_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "GetDownloadTaskFile", Handler: _IdmService_GetDownloadTaskFile_Handler, ServerStreams: true, }, }, Metadata: "idm.proto", }
IdmService_ServiceDesc is the grpc.ServiceDesc for IdmService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterIdmServiceHandler ¶
func RegisterIdmServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterIdmServiceHandler registers the http handlers for service IdmService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterIdmServiceHandlerClient ¶
func RegisterIdmServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client IdmServiceClient) error
RegisterIdmServiceHandlerClient registers the http handlers for service IdmService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "IdmServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "IdmServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "IdmServiceClient" to call the correct interceptors.
func RegisterIdmServiceHandlerFromEndpoint ¶
func RegisterIdmServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterIdmServiceHandlerFromEndpoint is same as RegisterIdmServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterIdmServiceHandlerServer ¶
func RegisterIdmServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server IdmServiceServer) error
RegisterIdmServiceHandlerServer registers the http handlers for service IdmService to "mux". UnaryRPC :call IdmServiceServer 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 RegisterIdmServiceHandlerFromEndpoint instead.
func RegisterIdmServiceServer ¶
func RegisterIdmServiceServer(s grpc.ServiceRegistrar, srv IdmServiceServer)
Types ¶
type Account ¶
type Account struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` AccountName string `protobuf:"bytes,2,opt,name=account_name,json=accountName,proto3" json:"account_name,omitempty"` // contains filtered or unexported fields }
func (*Account) Descriptor
deprecated
func (*Account) GetAccountName ¶
func (*Account) ProtoMessage ¶
func (*Account) ProtoMessage()
func (*Account) ProtoReflect ¶
func (x *Account) ProtoReflect() protoreflect.Message
func (*Account) Validate ¶
Validate checks the field values on Account with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Account) ValidateAll ¶
ValidateAll checks the field values on Account with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in AccountMultiError, or nil if none found.
type AccountMultiError ¶
type AccountMultiError []error
AccountMultiError is an error wrapping multiple validation errors returned by Account.ValidateAll() if the designated constraints aren't met.
func (AccountMultiError) AllErrors ¶
func (m AccountMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (AccountMultiError) Error ¶
func (m AccountMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type AccountValidationError ¶
type AccountValidationError struct {
// contains filtered or unexported fields
}
AccountValidationError is the validation error returned by Account.Validate if the designated constraints aren't met.
func (AccountValidationError) Cause ¶
func (e AccountValidationError) Cause() error
Cause function returns cause value.
func (AccountValidationError) Error ¶
func (e AccountValidationError) Error() string
Error satisfies the builtin error interface
func (AccountValidationError) ErrorName ¶
func (e AccountValidationError) ErrorName() string
ErrorName returns error name.
func (AccountValidationError) Field ¶
func (e AccountValidationError) Field() string
Field function returns field value.
func (AccountValidationError) Key ¶
func (e AccountValidationError) Key() bool
Key function returns key value.
func (AccountValidationError) Reason ¶
func (e AccountValidationError) Reason() string
Reason function returns reason value.
type CreateAccountRequest ¶
type CreateAccountRequest struct { AccountName string `protobuf:"bytes,1,opt,name=account_name,json=accountName,proto3" json:"account_name,omitempty"` Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` // contains filtered or unexported fields }
func (*CreateAccountRequest) Descriptor
deprecated
func (*CreateAccountRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateAccountRequest.ProtoReflect.Descriptor instead.
func (*CreateAccountRequest) GetAccountName ¶
func (x *CreateAccountRequest) GetAccountName() string
func (*CreateAccountRequest) GetPassword ¶
func (x *CreateAccountRequest) GetPassword() string
func (*CreateAccountRequest) ProtoMessage ¶
func (*CreateAccountRequest) ProtoMessage()
func (*CreateAccountRequest) ProtoReflect ¶
func (x *CreateAccountRequest) ProtoReflect() protoreflect.Message
func (*CreateAccountRequest) Reset ¶
func (x *CreateAccountRequest) Reset()
func (*CreateAccountRequest) String ¶
func (x *CreateAccountRequest) String() string
func (*CreateAccountRequest) Validate ¶
func (m *CreateAccountRequest) Validate() error
Validate checks the field values on CreateAccountRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*CreateAccountRequest) ValidateAll ¶
func (m *CreateAccountRequest) ValidateAll() error
ValidateAll checks the field values on CreateAccountRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CreateAccountRequestMultiError, or nil if none found.
type CreateAccountRequestMultiError ¶
type CreateAccountRequestMultiError []error
CreateAccountRequestMultiError is an error wrapping multiple validation errors returned by CreateAccountRequest.ValidateAll() if the designated constraints aren't met.
func (CreateAccountRequestMultiError) AllErrors ¶
func (m CreateAccountRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreateAccountRequestMultiError) Error ¶
func (m CreateAccountRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CreateAccountRequestValidationError ¶
type CreateAccountRequestValidationError struct {
// contains filtered or unexported fields
}
CreateAccountRequestValidationError is the validation error returned by CreateAccountRequest.Validate if the designated constraints aren't met.
func (CreateAccountRequestValidationError) Cause ¶
func (e CreateAccountRequestValidationError) Cause() error
Cause function returns cause value.
func (CreateAccountRequestValidationError) Error ¶
func (e CreateAccountRequestValidationError) Error() string
Error satisfies the builtin error interface
func (CreateAccountRequestValidationError) ErrorName ¶
func (e CreateAccountRequestValidationError) ErrorName() string
ErrorName returns error name.
func (CreateAccountRequestValidationError) Field ¶
func (e CreateAccountRequestValidationError) Field() string
Field function returns field value.
func (CreateAccountRequestValidationError) Key ¶
func (e CreateAccountRequestValidationError) Key() bool
Key function returns key value.
func (CreateAccountRequestValidationError) Reason ¶
func (e CreateAccountRequestValidationError) Reason() string
Reason function returns reason value.
type CreateAccountResponse ¶
type CreateAccountResponse struct { AccountId uint64 `protobuf:"varint,1,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"` // contains filtered or unexported fields }
func (*CreateAccountResponse) Descriptor
deprecated
func (*CreateAccountResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateAccountResponse.ProtoReflect.Descriptor instead.
func (*CreateAccountResponse) GetAccountId ¶
func (x *CreateAccountResponse) GetAccountId() uint64
func (*CreateAccountResponse) ProtoMessage ¶
func (*CreateAccountResponse) ProtoMessage()
func (*CreateAccountResponse) ProtoReflect ¶
func (x *CreateAccountResponse) ProtoReflect() protoreflect.Message
func (*CreateAccountResponse) Reset ¶
func (x *CreateAccountResponse) Reset()
func (*CreateAccountResponse) String ¶
func (x *CreateAccountResponse) String() string
func (*CreateAccountResponse) Validate ¶
func (m *CreateAccountResponse) Validate() error
Validate checks the field values on CreateAccountResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*CreateAccountResponse) ValidateAll ¶
func (m *CreateAccountResponse) ValidateAll() error
ValidateAll checks the field values on CreateAccountResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CreateAccountResponseMultiError, or nil if none found.
type CreateAccountResponseMultiError ¶
type CreateAccountResponseMultiError []error
CreateAccountResponseMultiError is an error wrapping multiple validation errors returned by CreateAccountResponse.ValidateAll() if the designated constraints aren't met.
func (CreateAccountResponseMultiError) AllErrors ¶
func (m CreateAccountResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreateAccountResponseMultiError) Error ¶
func (m CreateAccountResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CreateAccountResponseValidationError ¶
type CreateAccountResponseValidationError struct {
// contains filtered or unexported fields
}
CreateAccountResponseValidationError is the validation error returned by CreateAccountResponse.Validate if the designated constraints aren't met.
func (CreateAccountResponseValidationError) Cause ¶
func (e CreateAccountResponseValidationError) Cause() error
Cause function returns cause value.
func (CreateAccountResponseValidationError) Error ¶
func (e CreateAccountResponseValidationError) Error() string
Error satisfies the builtin error interface
func (CreateAccountResponseValidationError) ErrorName ¶
func (e CreateAccountResponseValidationError) ErrorName() string
ErrorName returns error name.
func (CreateAccountResponseValidationError) Field ¶
func (e CreateAccountResponseValidationError) Field() string
Field function returns field value.
func (CreateAccountResponseValidationError) Key ¶
func (e CreateAccountResponseValidationError) Key() bool
Key function returns key value.
func (CreateAccountResponseValidationError) Reason ¶
func (e CreateAccountResponseValidationError) Reason() string
Reason function returns reason value.
type CreateDownloadTaskRequest ¶
type CreateDownloadTaskRequest struct { DownloadType DownloadType `protobuf:"varint,1,opt,name=download_type,json=downloadType,proto3,enum=idm.DownloadType" json:"download_type,omitempty"` Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"` // contains filtered or unexported fields }
func (*CreateDownloadTaskRequest) Descriptor
deprecated
func (*CreateDownloadTaskRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateDownloadTaskRequest.ProtoReflect.Descriptor instead.
func (*CreateDownloadTaskRequest) GetDownloadType ¶
func (x *CreateDownloadTaskRequest) GetDownloadType() DownloadType
func (*CreateDownloadTaskRequest) GetUrl ¶
func (x *CreateDownloadTaskRequest) GetUrl() string
func (*CreateDownloadTaskRequest) ProtoMessage ¶
func (*CreateDownloadTaskRequest) ProtoMessage()
func (*CreateDownloadTaskRequest) ProtoReflect ¶
func (x *CreateDownloadTaskRequest) ProtoReflect() protoreflect.Message
func (*CreateDownloadTaskRequest) Reset ¶
func (x *CreateDownloadTaskRequest) Reset()
func (*CreateDownloadTaskRequest) String ¶
func (x *CreateDownloadTaskRequest) String() string
func (*CreateDownloadTaskRequest) Validate ¶
func (m *CreateDownloadTaskRequest) Validate() error
Validate checks the field values on CreateDownloadTaskRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*CreateDownloadTaskRequest) ValidateAll ¶
func (m *CreateDownloadTaskRequest) ValidateAll() error
ValidateAll checks the field values on CreateDownloadTaskRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CreateDownloadTaskRequestMultiError, or nil if none found.
type CreateDownloadTaskRequestMultiError ¶
type CreateDownloadTaskRequestMultiError []error
CreateDownloadTaskRequestMultiError is an error wrapping multiple validation errors returned by CreateDownloadTaskRequest.ValidateAll() if the designated constraints aren't met.
func (CreateDownloadTaskRequestMultiError) AllErrors ¶
func (m CreateDownloadTaskRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreateDownloadTaskRequestMultiError) Error ¶
func (m CreateDownloadTaskRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CreateDownloadTaskRequestValidationError ¶
type CreateDownloadTaskRequestValidationError struct {
// contains filtered or unexported fields
}
CreateDownloadTaskRequestValidationError is the validation error returned by CreateDownloadTaskRequest.Validate if the designated constraints aren't met.
func (CreateDownloadTaskRequestValidationError) Cause ¶
func (e CreateDownloadTaskRequestValidationError) Cause() error
Cause function returns cause value.
func (CreateDownloadTaskRequestValidationError) Error ¶
func (e CreateDownloadTaskRequestValidationError) Error() string
Error satisfies the builtin error interface
func (CreateDownloadTaskRequestValidationError) ErrorName ¶
func (e CreateDownloadTaskRequestValidationError) ErrorName() string
ErrorName returns error name.
func (CreateDownloadTaskRequestValidationError) Field ¶
func (e CreateDownloadTaskRequestValidationError) Field() string
Field function returns field value.
func (CreateDownloadTaskRequestValidationError) Key ¶
func (e CreateDownloadTaskRequestValidationError) Key() bool
Key function returns key value.
func (CreateDownloadTaskRequestValidationError) Reason ¶
func (e CreateDownloadTaskRequestValidationError) Reason() string
Reason function returns reason value.
type CreateDownloadTaskResponse ¶
type CreateDownloadTaskResponse struct { DownloadTask *DownloadTask `protobuf:"bytes,1,opt,name=download_task,json=downloadTask,proto3" json:"download_task,omitempty"` // contains filtered or unexported fields }
func (*CreateDownloadTaskResponse) Descriptor
deprecated
func (*CreateDownloadTaskResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateDownloadTaskResponse.ProtoReflect.Descriptor instead.
func (*CreateDownloadTaskResponse) GetDownloadTask ¶
func (x *CreateDownloadTaskResponse) GetDownloadTask() *DownloadTask
func (*CreateDownloadTaskResponse) ProtoMessage ¶
func (*CreateDownloadTaskResponse) ProtoMessage()
func (*CreateDownloadTaskResponse) ProtoReflect ¶
func (x *CreateDownloadTaskResponse) ProtoReflect() protoreflect.Message
func (*CreateDownloadTaskResponse) Reset ¶
func (x *CreateDownloadTaskResponse) Reset()
func (*CreateDownloadTaskResponse) String ¶
func (x *CreateDownloadTaskResponse) String() string
func (*CreateDownloadTaskResponse) Validate ¶
func (m *CreateDownloadTaskResponse) Validate() error
Validate checks the field values on CreateDownloadTaskResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*CreateDownloadTaskResponse) ValidateAll ¶
func (m *CreateDownloadTaskResponse) ValidateAll() error
ValidateAll checks the field values on CreateDownloadTaskResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CreateDownloadTaskResponseMultiError, or nil if none found.
type CreateDownloadTaskResponseMultiError ¶
type CreateDownloadTaskResponseMultiError []error
CreateDownloadTaskResponseMultiError is an error wrapping multiple validation errors returned by CreateDownloadTaskResponse.ValidateAll() if the designated constraints aren't met.
func (CreateDownloadTaskResponseMultiError) AllErrors ¶
func (m CreateDownloadTaskResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreateDownloadTaskResponseMultiError) Error ¶
func (m CreateDownloadTaskResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CreateDownloadTaskResponseValidationError ¶
type CreateDownloadTaskResponseValidationError struct {
// contains filtered or unexported fields
}
CreateDownloadTaskResponseValidationError is the validation error returned by CreateDownloadTaskResponse.Validate if the designated constraints aren't met.
func (CreateDownloadTaskResponseValidationError) Cause ¶
func (e CreateDownloadTaskResponseValidationError) Cause() error
Cause function returns cause value.
func (CreateDownloadTaskResponseValidationError) Error ¶
func (e CreateDownloadTaskResponseValidationError) Error() string
Error satisfies the builtin error interface
func (CreateDownloadTaskResponseValidationError) ErrorName ¶
func (e CreateDownloadTaskResponseValidationError) ErrorName() string
ErrorName returns error name.
func (CreateDownloadTaskResponseValidationError) Field ¶
func (e CreateDownloadTaskResponseValidationError) Field() string
Field function returns field value.
func (CreateDownloadTaskResponseValidationError) Key ¶
func (e CreateDownloadTaskResponseValidationError) Key() bool
Key function returns key value.
func (CreateDownloadTaskResponseValidationError) Reason ¶
func (e CreateDownloadTaskResponseValidationError) Reason() string
Reason function returns reason value.
type CreateSessionRequest ¶
type CreateSessionRequest struct { AccountName string `protobuf:"bytes,1,opt,name=account_name,json=accountName,proto3" json:"account_name,omitempty"` Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` // contains filtered or unexported fields }
func (*CreateSessionRequest) Descriptor
deprecated
func (*CreateSessionRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateSessionRequest.ProtoReflect.Descriptor instead.
func (*CreateSessionRequest) GetAccountName ¶
func (x *CreateSessionRequest) GetAccountName() string
func (*CreateSessionRequest) GetPassword ¶
func (x *CreateSessionRequest) GetPassword() string
func (*CreateSessionRequest) ProtoMessage ¶
func (*CreateSessionRequest) ProtoMessage()
func (*CreateSessionRequest) ProtoReflect ¶
func (x *CreateSessionRequest) ProtoReflect() protoreflect.Message
func (*CreateSessionRequest) Reset ¶
func (x *CreateSessionRequest) Reset()
func (*CreateSessionRequest) String ¶
func (x *CreateSessionRequest) String() string
func (*CreateSessionRequest) Validate ¶
func (m *CreateSessionRequest) Validate() error
Validate checks the field values on CreateSessionRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*CreateSessionRequest) ValidateAll ¶
func (m *CreateSessionRequest) ValidateAll() error
ValidateAll checks the field values on CreateSessionRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CreateSessionRequestMultiError, or nil if none found.
type CreateSessionRequestMultiError ¶
type CreateSessionRequestMultiError []error
CreateSessionRequestMultiError is an error wrapping multiple validation errors returned by CreateSessionRequest.ValidateAll() if the designated constraints aren't met.
func (CreateSessionRequestMultiError) AllErrors ¶
func (m CreateSessionRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreateSessionRequestMultiError) Error ¶
func (m CreateSessionRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CreateSessionRequestValidationError ¶
type CreateSessionRequestValidationError struct {
// contains filtered or unexported fields
}
CreateSessionRequestValidationError is the validation error returned by CreateSessionRequest.Validate if the designated constraints aren't met.
func (CreateSessionRequestValidationError) Cause ¶
func (e CreateSessionRequestValidationError) Cause() error
Cause function returns cause value.
func (CreateSessionRequestValidationError) Error ¶
func (e CreateSessionRequestValidationError) Error() string
Error satisfies the builtin error interface
func (CreateSessionRequestValidationError) ErrorName ¶
func (e CreateSessionRequestValidationError) ErrorName() string
ErrorName returns error name.
func (CreateSessionRequestValidationError) Field ¶
func (e CreateSessionRequestValidationError) Field() string
Field function returns field value.
func (CreateSessionRequestValidationError) Key ¶
func (e CreateSessionRequestValidationError) Key() bool
Key function returns key value.
func (CreateSessionRequestValidationError) Reason ¶
func (e CreateSessionRequestValidationError) Reason() string
Reason function returns reason value.
type CreateSessionResponse ¶
type CreateSessionResponse struct { Account *Account `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"` // contains filtered or unexported fields }
func (*CreateSessionResponse) Descriptor
deprecated
func (*CreateSessionResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateSessionResponse.ProtoReflect.Descriptor instead.
func (*CreateSessionResponse) GetAccount ¶
func (x *CreateSessionResponse) GetAccount() *Account
func (*CreateSessionResponse) ProtoMessage ¶
func (*CreateSessionResponse) ProtoMessage()
func (*CreateSessionResponse) ProtoReflect ¶
func (x *CreateSessionResponse) ProtoReflect() protoreflect.Message
func (*CreateSessionResponse) Reset ¶
func (x *CreateSessionResponse) Reset()
func (*CreateSessionResponse) String ¶
func (x *CreateSessionResponse) String() string
func (*CreateSessionResponse) Validate ¶
func (m *CreateSessionResponse) Validate() error
Validate checks the field values on CreateSessionResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*CreateSessionResponse) ValidateAll ¶
func (m *CreateSessionResponse) ValidateAll() error
ValidateAll checks the field values on CreateSessionResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CreateSessionResponseMultiError, or nil if none found.
type CreateSessionResponseMultiError ¶
type CreateSessionResponseMultiError []error
CreateSessionResponseMultiError is an error wrapping multiple validation errors returned by CreateSessionResponse.ValidateAll() if the designated constraints aren't met.
func (CreateSessionResponseMultiError) AllErrors ¶
func (m CreateSessionResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreateSessionResponseMultiError) Error ¶
func (m CreateSessionResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CreateSessionResponseValidationError ¶
type CreateSessionResponseValidationError struct {
// contains filtered or unexported fields
}
CreateSessionResponseValidationError is the validation error returned by CreateSessionResponse.Validate if the designated constraints aren't met.
func (CreateSessionResponseValidationError) Cause ¶
func (e CreateSessionResponseValidationError) Cause() error
Cause function returns cause value.
func (CreateSessionResponseValidationError) Error ¶
func (e CreateSessionResponseValidationError) Error() string
Error satisfies the builtin error interface
func (CreateSessionResponseValidationError) ErrorName ¶
func (e CreateSessionResponseValidationError) ErrorName() string
ErrorName returns error name.
func (CreateSessionResponseValidationError) Field ¶
func (e CreateSessionResponseValidationError) Field() string
Field function returns field value.
func (CreateSessionResponseValidationError) Key ¶
func (e CreateSessionResponseValidationError) Key() bool
Key function returns key value.
func (CreateSessionResponseValidationError) Reason ¶
func (e CreateSessionResponseValidationError) Reason() string
Reason function returns reason value.
type DeleteDownloadTaskRequest ¶
type DeleteDownloadTaskRequest struct { DownloadTaskId uint64 `protobuf:"varint,1,opt,name=download_task_id,json=downloadTaskId,proto3" json:"download_task_id,omitempty"` // contains filtered or unexported fields }
func (*DeleteDownloadTaskRequest) Descriptor
deprecated
func (*DeleteDownloadTaskRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteDownloadTaskRequest.ProtoReflect.Descriptor instead.
func (*DeleteDownloadTaskRequest) GetDownloadTaskId ¶
func (x *DeleteDownloadTaskRequest) GetDownloadTaskId() uint64
func (*DeleteDownloadTaskRequest) ProtoMessage ¶
func (*DeleteDownloadTaskRequest) ProtoMessage()
func (*DeleteDownloadTaskRequest) ProtoReflect ¶
func (x *DeleteDownloadTaskRequest) ProtoReflect() protoreflect.Message
func (*DeleteDownloadTaskRequest) Reset ¶
func (x *DeleteDownloadTaskRequest) Reset()
func (*DeleteDownloadTaskRequest) String ¶
func (x *DeleteDownloadTaskRequest) String() string
func (*DeleteDownloadTaskRequest) Validate ¶
func (m *DeleteDownloadTaskRequest) Validate() error
Validate checks the field values on DeleteDownloadTaskRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*DeleteDownloadTaskRequest) ValidateAll ¶
func (m *DeleteDownloadTaskRequest) ValidateAll() error
ValidateAll checks the field values on DeleteDownloadTaskRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DeleteDownloadTaskRequestMultiError, or nil if none found.
type DeleteDownloadTaskRequestMultiError ¶
type DeleteDownloadTaskRequestMultiError []error
DeleteDownloadTaskRequestMultiError is an error wrapping multiple validation errors returned by DeleteDownloadTaskRequest.ValidateAll() if the designated constraints aren't met.
func (DeleteDownloadTaskRequestMultiError) AllErrors ¶
func (m DeleteDownloadTaskRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeleteDownloadTaskRequestMultiError) Error ¶
func (m DeleteDownloadTaskRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DeleteDownloadTaskRequestValidationError ¶
type DeleteDownloadTaskRequestValidationError struct {
// contains filtered or unexported fields
}
DeleteDownloadTaskRequestValidationError is the validation error returned by DeleteDownloadTaskRequest.Validate if the designated constraints aren't met.
func (DeleteDownloadTaskRequestValidationError) Cause ¶
func (e DeleteDownloadTaskRequestValidationError) Cause() error
Cause function returns cause value.
func (DeleteDownloadTaskRequestValidationError) Error ¶
func (e DeleteDownloadTaskRequestValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteDownloadTaskRequestValidationError) ErrorName ¶
func (e DeleteDownloadTaskRequestValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteDownloadTaskRequestValidationError) Field ¶
func (e DeleteDownloadTaskRequestValidationError) Field() string
Field function returns field value.
func (DeleteDownloadTaskRequestValidationError) Key ¶
func (e DeleteDownloadTaskRequestValidationError) Key() bool
Key function returns key value.
func (DeleteDownloadTaskRequestValidationError) Reason ¶
func (e DeleteDownloadTaskRequestValidationError) Reason() string
Reason function returns reason value.
type DeleteDownloadTaskResponse ¶
type DeleteDownloadTaskResponse struct {
// contains filtered or unexported fields
}
func (*DeleteDownloadTaskResponse) Descriptor
deprecated
func (*DeleteDownloadTaskResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteDownloadTaskResponse.ProtoReflect.Descriptor instead.
func (*DeleteDownloadTaskResponse) ProtoMessage ¶
func (*DeleteDownloadTaskResponse) ProtoMessage()
func (*DeleteDownloadTaskResponse) ProtoReflect ¶
func (x *DeleteDownloadTaskResponse) ProtoReflect() protoreflect.Message
func (*DeleteDownloadTaskResponse) Reset ¶
func (x *DeleteDownloadTaskResponse) Reset()
func (*DeleteDownloadTaskResponse) String ¶
func (x *DeleteDownloadTaskResponse) String() string
func (*DeleteDownloadTaskResponse) Validate ¶
func (m *DeleteDownloadTaskResponse) Validate() error
Validate checks the field values on DeleteDownloadTaskResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*DeleteDownloadTaskResponse) ValidateAll ¶
func (m *DeleteDownloadTaskResponse) ValidateAll() error
ValidateAll checks the field values on DeleteDownloadTaskResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DeleteDownloadTaskResponseMultiError, or nil if none found.
type DeleteDownloadTaskResponseMultiError ¶
type DeleteDownloadTaskResponseMultiError []error
DeleteDownloadTaskResponseMultiError is an error wrapping multiple validation errors returned by DeleteDownloadTaskResponse.ValidateAll() if the designated constraints aren't met.
func (DeleteDownloadTaskResponseMultiError) AllErrors ¶
func (m DeleteDownloadTaskResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeleteDownloadTaskResponseMultiError) Error ¶
func (m DeleteDownloadTaskResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DeleteDownloadTaskResponseValidationError ¶
type DeleteDownloadTaskResponseValidationError struct {
// contains filtered or unexported fields
}
DeleteDownloadTaskResponseValidationError is the validation error returned by DeleteDownloadTaskResponse.Validate if the designated constraints aren't met.
func (DeleteDownloadTaskResponseValidationError) Cause ¶
func (e DeleteDownloadTaskResponseValidationError) Cause() error
Cause function returns cause value.
func (DeleteDownloadTaskResponseValidationError) Error ¶
func (e DeleteDownloadTaskResponseValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteDownloadTaskResponseValidationError) ErrorName ¶
func (e DeleteDownloadTaskResponseValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteDownloadTaskResponseValidationError) Field ¶
func (e DeleteDownloadTaskResponseValidationError) Field() string
Field function returns field value.
func (DeleteDownloadTaskResponseValidationError) Key ¶
func (e DeleteDownloadTaskResponseValidationError) Key() bool
Key function returns key value.
func (DeleteDownloadTaskResponseValidationError) Reason ¶
func (e DeleteDownloadTaskResponseValidationError) Reason() string
Reason function returns reason value.
type DeleteSessionRequest ¶
type DeleteSessionRequest struct {
// contains filtered or unexported fields
}
func (*DeleteSessionRequest) Descriptor
deprecated
func (*DeleteSessionRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteSessionRequest.ProtoReflect.Descriptor instead.
func (*DeleteSessionRequest) ProtoMessage ¶
func (*DeleteSessionRequest) ProtoMessage()
func (*DeleteSessionRequest) ProtoReflect ¶
func (x *DeleteSessionRequest) ProtoReflect() protoreflect.Message
func (*DeleteSessionRequest) Reset ¶
func (x *DeleteSessionRequest) Reset()
func (*DeleteSessionRequest) String ¶
func (x *DeleteSessionRequest) String() string
func (*DeleteSessionRequest) Validate ¶
func (m *DeleteSessionRequest) Validate() error
Validate checks the field values on DeleteSessionRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*DeleteSessionRequest) ValidateAll ¶
func (m *DeleteSessionRequest) ValidateAll() error
ValidateAll checks the field values on DeleteSessionRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DeleteSessionRequestMultiError, or nil if none found.
type DeleteSessionRequestMultiError ¶
type DeleteSessionRequestMultiError []error
DeleteSessionRequestMultiError is an error wrapping multiple validation errors returned by DeleteSessionRequest.ValidateAll() if the designated constraints aren't met.
func (DeleteSessionRequestMultiError) AllErrors ¶
func (m DeleteSessionRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeleteSessionRequestMultiError) Error ¶
func (m DeleteSessionRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DeleteSessionRequestValidationError ¶
type DeleteSessionRequestValidationError struct {
// contains filtered or unexported fields
}
DeleteSessionRequestValidationError is the validation error returned by DeleteSessionRequest.Validate if the designated constraints aren't met.
func (DeleteSessionRequestValidationError) Cause ¶
func (e DeleteSessionRequestValidationError) Cause() error
Cause function returns cause value.
func (DeleteSessionRequestValidationError) Error ¶
func (e DeleteSessionRequestValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteSessionRequestValidationError) ErrorName ¶
func (e DeleteSessionRequestValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteSessionRequestValidationError) Field ¶
func (e DeleteSessionRequestValidationError) Field() string
Field function returns field value.
func (DeleteSessionRequestValidationError) Key ¶
func (e DeleteSessionRequestValidationError) Key() bool
Key function returns key value.
func (DeleteSessionRequestValidationError) Reason ¶
func (e DeleteSessionRequestValidationError) Reason() string
Reason function returns reason value.
type DeleteSessionResponse ¶
type DeleteSessionResponse struct {
// contains filtered or unexported fields
}
func (*DeleteSessionResponse) Descriptor
deprecated
func (*DeleteSessionResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteSessionResponse.ProtoReflect.Descriptor instead.
func (*DeleteSessionResponse) ProtoMessage ¶
func (*DeleteSessionResponse) ProtoMessage()
func (*DeleteSessionResponse) ProtoReflect ¶
func (x *DeleteSessionResponse) ProtoReflect() protoreflect.Message
func (*DeleteSessionResponse) Reset ¶
func (x *DeleteSessionResponse) Reset()
func (*DeleteSessionResponse) String ¶
func (x *DeleteSessionResponse) String() string
func (*DeleteSessionResponse) Validate ¶
func (m *DeleteSessionResponse) Validate() error
Validate checks the field values on DeleteSessionResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*DeleteSessionResponse) ValidateAll ¶
func (m *DeleteSessionResponse) ValidateAll() error
ValidateAll checks the field values on DeleteSessionResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DeleteSessionResponseMultiError, or nil if none found.
type DeleteSessionResponseMultiError ¶
type DeleteSessionResponseMultiError []error
DeleteSessionResponseMultiError is an error wrapping multiple validation errors returned by DeleteSessionResponse.ValidateAll() if the designated constraints aren't met.
func (DeleteSessionResponseMultiError) AllErrors ¶
func (m DeleteSessionResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeleteSessionResponseMultiError) Error ¶
func (m DeleteSessionResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DeleteSessionResponseValidationError ¶
type DeleteSessionResponseValidationError struct {
// contains filtered or unexported fields
}
DeleteSessionResponseValidationError is the validation error returned by DeleteSessionResponse.Validate if the designated constraints aren't met.
func (DeleteSessionResponseValidationError) Cause ¶
func (e DeleteSessionResponseValidationError) Cause() error
Cause function returns cause value.
func (DeleteSessionResponseValidationError) Error ¶
func (e DeleteSessionResponseValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteSessionResponseValidationError) ErrorName ¶
func (e DeleteSessionResponseValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteSessionResponseValidationError) Field ¶
func (e DeleteSessionResponseValidationError) Field() string
Field function returns field value.
func (DeleteSessionResponseValidationError) Key ¶
func (e DeleteSessionResponseValidationError) Key() bool
Key function returns key value.
func (DeleteSessionResponseValidationError) Reason ¶
func (e DeleteSessionResponseValidationError) Reason() string
Reason function returns reason value.
type DownloadStatus ¶
type DownloadStatus int32
const ( DownloadStatus_UndefinedStatus DownloadStatus = 0 DownloadStatus_Pending DownloadStatus = 1 DownloadStatus_Downloading DownloadStatus = 2 DownloadStatus_Failed DownloadStatus = 3 DownloadStatus_Success DownloadStatus = 4 )
func (DownloadStatus) Descriptor ¶
func (DownloadStatus) Descriptor() protoreflect.EnumDescriptor
func (DownloadStatus) Enum ¶
func (x DownloadStatus) Enum() *DownloadStatus
func (DownloadStatus) EnumDescriptor
deprecated
func (DownloadStatus) EnumDescriptor() ([]byte, []int)
Deprecated: Use DownloadStatus.Descriptor instead.
func (DownloadStatus) Number ¶
func (x DownloadStatus) Number() protoreflect.EnumNumber
func (DownloadStatus) String ¶
func (x DownloadStatus) String() string
func (DownloadStatus) Type ¶
func (DownloadStatus) Type() protoreflect.EnumType
type DownloadTask ¶
type DownloadTask struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` OfAccount *Account `protobuf:"bytes,2,opt,name=of_account,json=ofAccount,proto3" json:"of_account,omitempty"` DownloadType DownloadType `protobuf:"varint,3,opt,name=download_type,json=downloadType,proto3,enum=idm.DownloadType" json:"download_type,omitempty"` Url string `protobuf:"bytes,4,opt,name=url,proto3" json:"url,omitempty"` DownloadStatus DownloadStatus `` /* 128-byte string literal not displayed */ Metadata string `protobuf:"bytes,6,opt,name=metadata,proto3" json:"metadata,omitempty"` // contains filtered or unexported fields }
func (*DownloadTask) Descriptor
deprecated
func (*DownloadTask) Descriptor() ([]byte, []int)
Deprecated: Use DownloadTask.ProtoReflect.Descriptor instead.
func (*DownloadTask) GetDownloadStatus ¶
func (x *DownloadTask) GetDownloadStatus() DownloadStatus
func (*DownloadTask) GetDownloadType ¶
func (x *DownloadTask) GetDownloadType() DownloadType
func (*DownloadTask) GetId ¶
func (x *DownloadTask) GetId() uint64
func (*DownloadTask) GetMetadata ¶
func (x *DownloadTask) GetMetadata() string
func (*DownloadTask) GetOfAccount ¶
func (x *DownloadTask) GetOfAccount() *Account
func (*DownloadTask) GetUrl ¶
func (x *DownloadTask) GetUrl() string
func (*DownloadTask) ProtoMessage ¶
func (*DownloadTask) ProtoMessage()
func (*DownloadTask) ProtoReflect ¶
func (x *DownloadTask) ProtoReflect() protoreflect.Message
func (*DownloadTask) Reset ¶
func (x *DownloadTask) Reset()
func (*DownloadTask) String ¶
func (x *DownloadTask) String() string
func (*DownloadTask) Validate ¶
func (m *DownloadTask) Validate() error
Validate checks the field values on DownloadTask with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*DownloadTask) ValidateAll ¶
func (m *DownloadTask) ValidateAll() error
ValidateAll checks the field values on DownloadTask with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DownloadTaskMultiError, or nil if none found.
type DownloadTaskMultiError ¶
type DownloadTaskMultiError []error
DownloadTaskMultiError is an error wrapping multiple validation errors returned by DownloadTask.ValidateAll() if the designated constraints aren't met.
func (DownloadTaskMultiError) AllErrors ¶
func (m DownloadTaskMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DownloadTaskMultiError) Error ¶
func (m DownloadTaskMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DownloadTaskValidationError ¶
type DownloadTaskValidationError struct {
// contains filtered or unexported fields
}
DownloadTaskValidationError is the validation error returned by DownloadTask.Validate if the designated constraints aren't met.
func (DownloadTaskValidationError) Cause ¶
func (e DownloadTaskValidationError) Cause() error
Cause function returns cause value.
func (DownloadTaskValidationError) Error ¶
func (e DownloadTaskValidationError) Error() string
Error satisfies the builtin error interface
func (DownloadTaskValidationError) ErrorName ¶
func (e DownloadTaskValidationError) ErrorName() string
ErrorName returns error name.
func (DownloadTaskValidationError) Field ¶
func (e DownloadTaskValidationError) Field() string
Field function returns field value.
func (DownloadTaskValidationError) Key ¶
func (e DownloadTaskValidationError) Key() bool
Key function returns key value.
func (DownloadTaskValidationError) Reason ¶
func (e DownloadTaskValidationError) Reason() string
Reason function returns reason value.
type DownloadType ¶
type DownloadType int32
const ( DownloadType_UndefinedType DownloadType = 0 DownloadType_HTTP DownloadType = 1 )
func (DownloadType) Descriptor ¶
func (DownloadType) Descriptor() protoreflect.EnumDescriptor
func (DownloadType) Enum ¶
func (x DownloadType) Enum() *DownloadType
func (DownloadType) EnumDescriptor
deprecated
func (DownloadType) EnumDescriptor() ([]byte, []int)
Deprecated: Use DownloadType.Descriptor instead.
func (DownloadType) Number ¶
func (x DownloadType) Number() protoreflect.EnumNumber
func (DownloadType) String ¶
func (x DownloadType) String() string
func (DownloadType) Type ¶
func (DownloadType) Type() protoreflect.EnumType
type GetDownloadTaskFileRequest ¶
type GetDownloadTaskFileRequest struct { DownloadTaskId uint64 `protobuf:"varint,1,opt,name=download_task_id,json=downloadTaskId,proto3" json:"download_task_id,omitempty"` // contains filtered or unexported fields }
func (*GetDownloadTaskFileRequest) Descriptor
deprecated
func (*GetDownloadTaskFileRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetDownloadTaskFileRequest.ProtoReflect.Descriptor instead.
func (*GetDownloadTaskFileRequest) GetDownloadTaskId ¶
func (x *GetDownloadTaskFileRequest) GetDownloadTaskId() uint64
func (*GetDownloadTaskFileRequest) ProtoMessage ¶
func (*GetDownloadTaskFileRequest) ProtoMessage()
func (*GetDownloadTaskFileRequest) ProtoReflect ¶
func (x *GetDownloadTaskFileRequest) ProtoReflect() protoreflect.Message
func (*GetDownloadTaskFileRequest) Reset ¶
func (x *GetDownloadTaskFileRequest) Reset()
func (*GetDownloadTaskFileRequest) String ¶
func (x *GetDownloadTaskFileRequest) String() string
func (*GetDownloadTaskFileRequest) Validate ¶
func (m *GetDownloadTaskFileRequest) Validate() error
Validate checks the field values on GetDownloadTaskFileRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*GetDownloadTaskFileRequest) ValidateAll ¶
func (m *GetDownloadTaskFileRequest) ValidateAll() error
ValidateAll checks the field values on GetDownloadTaskFileRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetDownloadTaskFileRequestMultiError, or nil if none found.
type GetDownloadTaskFileRequestMultiError ¶
type GetDownloadTaskFileRequestMultiError []error
GetDownloadTaskFileRequestMultiError is an error wrapping multiple validation errors returned by GetDownloadTaskFileRequest.ValidateAll() if the designated constraints aren't met.
func (GetDownloadTaskFileRequestMultiError) AllErrors ¶
func (m GetDownloadTaskFileRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetDownloadTaskFileRequestMultiError) Error ¶
func (m GetDownloadTaskFileRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetDownloadTaskFileRequestValidationError ¶
type GetDownloadTaskFileRequestValidationError struct {
// contains filtered or unexported fields
}
GetDownloadTaskFileRequestValidationError is the validation error returned by GetDownloadTaskFileRequest.Validate if the designated constraints aren't met.
func (GetDownloadTaskFileRequestValidationError) Cause ¶
func (e GetDownloadTaskFileRequestValidationError) Cause() error
Cause function returns cause value.
func (GetDownloadTaskFileRequestValidationError) Error ¶
func (e GetDownloadTaskFileRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetDownloadTaskFileRequestValidationError) ErrorName ¶
func (e GetDownloadTaskFileRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetDownloadTaskFileRequestValidationError) Field ¶
func (e GetDownloadTaskFileRequestValidationError) Field() string
Field function returns field value.
func (GetDownloadTaskFileRequestValidationError) Key ¶
func (e GetDownloadTaskFileRequestValidationError) Key() bool
Key function returns key value.
func (GetDownloadTaskFileRequestValidationError) Reason ¶
func (e GetDownloadTaskFileRequestValidationError) Reason() string
Reason function returns reason value.
type GetDownloadTaskFileResponse ¶
type GetDownloadTaskFileResponse struct { Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*GetDownloadTaskFileResponse) Descriptor
deprecated
func (*GetDownloadTaskFileResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetDownloadTaskFileResponse.ProtoReflect.Descriptor instead.
func (*GetDownloadTaskFileResponse) GetData ¶
func (x *GetDownloadTaskFileResponse) GetData() []byte
func (*GetDownloadTaskFileResponse) ProtoMessage ¶
func (*GetDownloadTaskFileResponse) ProtoMessage()
func (*GetDownloadTaskFileResponse) ProtoReflect ¶
func (x *GetDownloadTaskFileResponse) ProtoReflect() protoreflect.Message
func (*GetDownloadTaskFileResponse) Reset ¶
func (x *GetDownloadTaskFileResponse) Reset()
func (*GetDownloadTaskFileResponse) String ¶
func (x *GetDownloadTaskFileResponse) String() string
func (*GetDownloadTaskFileResponse) Validate ¶
func (m *GetDownloadTaskFileResponse) Validate() error
Validate checks the field values on GetDownloadTaskFileResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*GetDownloadTaskFileResponse) ValidateAll ¶
func (m *GetDownloadTaskFileResponse) ValidateAll() error
ValidateAll checks the field values on GetDownloadTaskFileResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetDownloadTaskFileResponseMultiError, or nil if none found.
type GetDownloadTaskFileResponseMultiError ¶
type GetDownloadTaskFileResponseMultiError []error
GetDownloadTaskFileResponseMultiError is an error wrapping multiple validation errors returned by GetDownloadTaskFileResponse.ValidateAll() if the designated constraints aren't met.
func (GetDownloadTaskFileResponseMultiError) AllErrors ¶
func (m GetDownloadTaskFileResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetDownloadTaskFileResponseMultiError) Error ¶
func (m GetDownloadTaskFileResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetDownloadTaskFileResponseValidationError ¶
type GetDownloadTaskFileResponseValidationError struct {
// contains filtered or unexported fields
}
GetDownloadTaskFileResponseValidationError is the validation error returned by GetDownloadTaskFileResponse.Validate if the designated constraints aren't met.
func (GetDownloadTaskFileResponseValidationError) Cause ¶
func (e GetDownloadTaskFileResponseValidationError) Cause() error
Cause function returns cause value.
func (GetDownloadTaskFileResponseValidationError) Error ¶
func (e GetDownloadTaskFileResponseValidationError) Error() string
Error satisfies the builtin error interface
func (GetDownloadTaskFileResponseValidationError) ErrorName ¶
func (e GetDownloadTaskFileResponseValidationError) ErrorName() string
ErrorName returns error name.
func (GetDownloadTaskFileResponseValidationError) Field ¶
func (e GetDownloadTaskFileResponseValidationError) Field() string
Field function returns field value.
func (GetDownloadTaskFileResponseValidationError) Key ¶
func (e GetDownloadTaskFileResponseValidationError) Key() bool
Key function returns key value.
func (GetDownloadTaskFileResponseValidationError) Reason ¶
func (e GetDownloadTaskFileResponseValidationError) Reason() string
Reason function returns reason value.
type GetDownloadTaskListRequest ¶
type GetDownloadTaskListRequest struct { Offset uint64 `protobuf:"varint,1,opt,name=offset,proto3" json:"offset,omitempty"` Limit uint64 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` // contains filtered or unexported fields }
func (*GetDownloadTaskListRequest) Descriptor
deprecated
func (*GetDownloadTaskListRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetDownloadTaskListRequest.ProtoReflect.Descriptor instead.
func (*GetDownloadTaskListRequest) GetLimit ¶
func (x *GetDownloadTaskListRequest) GetLimit() uint64
func (*GetDownloadTaskListRequest) GetOffset ¶
func (x *GetDownloadTaskListRequest) GetOffset() uint64
func (*GetDownloadTaskListRequest) ProtoMessage ¶
func (*GetDownloadTaskListRequest) ProtoMessage()
func (*GetDownloadTaskListRequest) ProtoReflect ¶
func (x *GetDownloadTaskListRequest) ProtoReflect() protoreflect.Message
func (*GetDownloadTaskListRequest) Reset ¶
func (x *GetDownloadTaskListRequest) Reset()
func (*GetDownloadTaskListRequest) String ¶
func (x *GetDownloadTaskListRequest) String() string
func (*GetDownloadTaskListRequest) Validate ¶
func (m *GetDownloadTaskListRequest) Validate() error
Validate checks the field values on GetDownloadTaskListRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*GetDownloadTaskListRequest) ValidateAll ¶
func (m *GetDownloadTaskListRequest) ValidateAll() error
ValidateAll checks the field values on GetDownloadTaskListRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetDownloadTaskListRequestMultiError, or nil if none found.
type GetDownloadTaskListRequestMultiError ¶
type GetDownloadTaskListRequestMultiError []error
GetDownloadTaskListRequestMultiError is an error wrapping multiple validation errors returned by GetDownloadTaskListRequest.ValidateAll() if the designated constraints aren't met.
func (GetDownloadTaskListRequestMultiError) AllErrors ¶
func (m GetDownloadTaskListRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetDownloadTaskListRequestMultiError) Error ¶
func (m GetDownloadTaskListRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetDownloadTaskListRequestValidationError ¶
type GetDownloadTaskListRequestValidationError struct {
// contains filtered or unexported fields
}
GetDownloadTaskListRequestValidationError is the validation error returned by GetDownloadTaskListRequest.Validate if the designated constraints aren't met.
func (GetDownloadTaskListRequestValidationError) Cause ¶
func (e GetDownloadTaskListRequestValidationError) Cause() error
Cause function returns cause value.
func (GetDownloadTaskListRequestValidationError) Error ¶
func (e GetDownloadTaskListRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetDownloadTaskListRequestValidationError) ErrorName ¶
func (e GetDownloadTaskListRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetDownloadTaskListRequestValidationError) Field ¶
func (e GetDownloadTaskListRequestValidationError) Field() string
Field function returns field value.
func (GetDownloadTaskListRequestValidationError) Key ¶
func (e GetDownloadTaskListRequestValidationError) Key() bool
Key function returns key value.
func (GetDownloadTaskListRequestValidationError) Reason ¶
func (e GetDownloadTaskListRequestValidationError) Reason() string
Reason function returns reason value.
type GetDownloadTaskListResponse ¶
type GetDownloadTaskListResponse struct { DownloadTaskList []*DownloadTask `protobuf:"bytes,1,rep,name=download_task_list,json=downloadTaskList,proto3" json:"download_task_list,omitempty"` TotalDownloadTaskCount uint64 `` /* 132-byte string literal not displayed */ // contains filtered or unexported fields }
func (*GetDownloadTaskListResponse) Descriptor
deprecated
func (*GetDownloadTaskListResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetDownloadTaskListResponse.ProtoReflect.Descriptor instead.
func (*GetDownloadTaskListResponse) GetDownloadTaskList ¶
func (x *GetDownloadTaskListResponse) GetDownloadTaskList() []*DownloadTask
func (*GetDownloadTaskListResponse) GetTotalDownloadTaskCount ¶
func (x *GetDownloadTaskListResponse) GetTotalDownloadTaskCount() uint64
func (*GetDownloadTaskListResponse) ProtoMessage ¶
func (*GetDownloadTaskListResponse) ProtoMessage()
func (*GetDownloadTaskListResponse) ProtoReflect ¶
func (x *GetDownloadTaskListResponse) ProtoReflect() protoreflect.Message
func (*GetDownloadTaskListResponse) Reset ¶
func (x *GetDownloadTaskListResponse) Reset()
func (*GetDownloadTaskListResponse) String ¶
func (x *GetDownloadTaskListResponse) String() string
func (*GetDownloadTaskListResponse) Validate ¶
func (m *GetDownloadTaskListResponse) Validate() error
Validate checks the field values on GetDownloadTaskListResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*GetDownloadTaskListResponse) ValidateAll ¶
func (m *GetDownloadTaskListResponse) ValidateAll() error
ValidateAll checks the field values on GetDownloadTaskListResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetDownloadTaskListResponseMultiError, or nil if none found.
type GetDownloadTaskListResponseMultiError ¶
type GetDownloadTaskListResponseMultiError []error
GetDownloadTaskListResponseMultiError is an error wrapping multiple validation errors returned by GetDownloadTaskListResponse.ValidateAll() if the designated constraints aren't met.
func (GetDownloadTaskListResponseMultiError) AllErrors ¶
func (m GetDownloadTaskListResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetDownloadTaskListResponseMultiError) Error ¶
func (m GetDownloadTaskListResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetDownloadTaskListResponseValidationError ¶
type GetDownloadTaskListResponseValidationError struct {
// contains filtered or unexported fields
}
GetDownloadTaskListResponseValidationError is the validation error returned by GetDownloadTaskListResponse.Validate if the designated constraints aren't met.
func (GetDownloadTaskListResponseValidationError) Cause ¶
func (e GetDownloadTaskListResponseValidationError) Cause() error
Cause function returns cause value.
func (GetDownloadTaskListResponseValidationError) Error ¶
func (e GetDownloadTaskListResponseValidationError) Error() string
Error satisfies the builtin error interface
func (GetDownloadTaskListResponseValidationError) ErrorName ¶
func (e GetDownloadTaskListResponseValidationError) ErrorName() string
ErrorName returns error name.
func (GetDownloadTaskListResponseValidationError) Field ¶
func (e GetDownloadTaskListResponseValidationError) Field() string
Field function returns field value.
func (GetDownloadTaskListResponseValidationError) Key ¶
func (e GetDownloadTaskListResponseValidationError) Key() bool
Key function returns key value.
func (GetDownloadTaskListResponseValidationError) Reason ¶
func (e GetDownloadTaskListResponseValidationError) Reason() string
Reason function returns reason value.
type IdmServiceClient ¶
type IdmServiceClient interface { CreateAccount(ctx context.Context, in *CreateAccountRequest, opts ...grpc.CallOption) (*CreateAccountResponse, error) CreateSession(ctx context.Context, in *CreateSessionRequest, opts ...grpc.CallOption) (*CreateSessionResponse, error) DeleteSession(ctx context.Context, in *DeleteSessionRequest, opts ...grpc.CallOption) (*DeleteSessionResponse, error) CreateDownloadTask(ctx context.Context, in *CreateDownloadTaskRequest, opts ...grpc.CallOption) (*CreateDownloadTaskResponse, error) GetDownloadTaskList(ctx context.Context, in *GetDownloadTaskListRequest, opts ...grpc.CallOption) (*GetDownloadTaskListResponse, error) UpdateDownloadTask(ctx context.Context, in *UpdateDownloadTaskRequest, opts ...grpc.CallOption) (*UpdateDownloadTaskResponse, error) DeleteDownloadTask(ctx context.Context, in *DeleteDownloadTaskRequest, opts ...grpc.CallOption) (*DeleteDownloadTaskResponse, error) GetDownloadTaskFile(ctx context.Context, in *GetDownloadTaskFileRequest, opts ...grpc.CallOption) (IdmService_GetDownloadTaskFileClient, error) }
IdmServiceClient is the client API for IdmService 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 NewIdmServiceClient ¶
func NewIdmServiceClient(cc grpc.ClientConnInterface) IdmServiceClient
type IdmServiceServer ¶
type IdmServiceServer interface { CreateAccount(context.Context, *CreateAccountRequest) (*CreateAccountResponse, error) CreateSession(context.Context, *CreateSessionRequest) (*CreateSessionResponse, error) DeleteSession(context.Context, *DeleteSessionRequest) (*DeleteSessionResponse, error) CreateDownloadTask(context.Context, *CreateDownloadTaskRequest) (*CreateDownloadTaskResponse, error) GetDownloadTaskList(context.Context, *GetDownloadTaskListRequest) (*GetDownloadTaskListResponse, error) UpdateDownloadTask(context.Context, *UpdateDownloadTaskRequest) (*UpdateDownloadTaskResponse, error) DeleteDownloadTask(context.Context, *DeleteDownloadTaskRequest) (*DeleteDownloadTaskResponse, error) GetDownloadTaskFile(*GetDownloadTaskFileRequest, IdmService_GetDownloadTaskFileServer) error // contains filtered or unexported methods }
IdmServiceServer is the server API for IdmService service. All implementations must embed UnimplementedIdmServiceServer for forward compatibility
type IdmService_GetDownloadTaskFileClient ¶
type IdmService_GetDownloadTaskFileClient interface { Recv() (*GetDownloadTaskFileResponse, error) grpc.ClientStream }
type IdmService_GetDownloadTaskFileServer ¶
type IdmService_GetDownloadTaskFileServer interface { Send(*GetDownloadTaskFileResponse) error grpc.ServerStream }
type UnimplementedIdmServiceServer ¶
type UnimplementedIdmServiceServer struct { }
UnimplementedIdmServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedIdmServiceServer) CreateAccount ¶
func (UnimplementedIdmServiceServer) CreateAccount(context.Context, *CreateAccountRequest) (*CreateAccountResponse, error)
func (UnimplementedIdmServiceServer) CreateDownloadTask ¶
func (UnimplementedIdmServiceServer) CreateDownloadTask(context.Context, *CreateDownloadTaskRequest) (*CreateDownloadTaskResponse, error)
func (UnimplementedIdmServiceServer) CreateSession ¶
func (UnimplementedIdmServiceServer) CreateSession(context.Context, *CreateSessionRequest) (*CreateSessionResponse, error)
func (UnimplementedIdmServiceServer) DeleteDownloadTask ¶
func (UnimplementedIdmServiceServer) DeleteDownloadTask(context.Context, *DeleteDownloadTaskRequest) (*DeleteDownloadTaskResponse, error)
func (UnimplementedIdmServiceServer) DeleteSession ¶
func (UnimplementedIdmServiceServer) DeleteSession(context.Context, *DeleteSessionRequest) (*DeleteSessionResponse, error)
func (UnimplementedIdmServiceServer) GetDownloadTaskFile ¶
func (UnimplementedIdmServiceServer) GetDownloadTaskFile(*GetDownloadTaskFileRequest, IdmService_GetDownloadTaskFileServer) error
func (UnimplementedIdmServiceServer) GetDownloadTaskList ¶
func (UnimplementedIdmServiceServer) GetDownloadTaskList(context.Context, *GetDownloadTaskListRequest) (*GetDownloadTaskListResponse, error)
func (UnimplementedIdmServiceServer) UpdateDownloadTask ¶
func (UnimplementedIdmServiceServer) UpdateDownloadTask(context.Context, *UpdateDownloadTaskRequest) (*UpdateDownloadTaskResponse, error)
type UnsafeIdmServiceServer ¶
type UnsafeIdmServiceServer interface {
// contains filtered or unexported methods
}
UnsafeIdmServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to IdmServiceServer will result in compilation errors.
type UpdateDownloadTaskRequest ¶
type UpdateDownloadTaskRequest struct { DownloadTaskId uint64 `protobuf:"varint,1,opt,name=download_task_id,json=downloadTaskId,proto3" json:"download_task_id,omitempty"` DownloadStatus *DownloadStatus `` /* 134-byte string literal not displayed */ Metadata *string `protobuf:"bytes,3,opt,name=metadata,proto3,oneof" json:"metadata,omitempty"` // contains filtered or unexported fields }
func (*UpdateDownloadTaskRequest) Descriptor
deprecated
func (*UpdateDownloadTaskRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateDownloadTaskRequest.ProtoReflect.Descriptor instead.
func (*UpdateDownloadTaskRequest) GetDownloadStatus ¶
func (x *UpdateDownloadTaskRequest) GetDownloadStatus() DownloadStatus
func (*UpdateDownloadTaskRequest) GetDownloadTaskId ¶
func (x *UpdateDownloadTaskRequest) GetDownloadTaskId() uint64
func (*UpdateDownloadTaskRequest) GetMetadata ¶
func (x *UpdateDownloadTaskRequest) GetMetadata() string
func (*UpdateDownloadTaskRequest) ProtoMessage ¶
func (*UpdateDownloadTaskRequest) ProtoMessage()
func (*UpdateDownloadTaskRequest) ProtoReflect ¶
func (x *UpdateDownloadTaskRequest) ProtoReflect() protoreflect.Message
func (*UpdateDownloadTaskRequest) Reset ¶
func (x *UpdateDownloadTaskRequest) Reset()
func (*UpdateDownloadTaskRequest) String ¶
func (x *UpdateDownloadTaskRequest) String() string
func (*UpdateDownloadTaskRequest) Validate ¶
func (m *UpdateDownloadTaskRequest) Validate() error
Validate checks the field values on UpdateDownloadTaskRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*UpdateDownloadTaskRequest) ValidateAll ¶
func (m *UpdateDownloadTaskRequest) ValidateAll() error
ValidateAll checks the field values on UpdateDownloadTaskRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UpdateDownloadTaskRequestMultiError, or nil if none found.
type UpdateDownloadTaskRequestMultiError ¶
type UpdateDownloadTaskRequestMultiError []error
UpdateDownloadTaskRequestMultiError is an error wrapping multiple validation errors returned by UpdateDownloadTaskRequest.ValidateAll() if the designated constraints aren't met.
func (UpdateDownloadTaskRequestMultiError) AllErrors ¶
func (m UpdateDownloadTaskRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateDownloadTaskRequestMultiError) Error ¶
func (m UpdateDownloadTaskRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdateDownloadTaskRequestValidationError ¶
type UpdateDownloadTaskRequestValidationError struct {
// contains filtered or unexported fields
}
UpdateDownloadTaskRequestValidationError is the validation error returned by UpdateDownloadTaskRequest.Validate if the designated constraints aren't met.
func (UpdateDownloadTaskRequestValidationError) Cause ¶
func (e UpdateDownloadTaskRequestValidationError) Cause() error
Cause function returns cause value.
func (UpdateDownloadTaskRequestValidationError) Error ¶
func (e UpdateDownloadTaskRequestValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateDownloadTaskRequestValidationError) ErrorName ¶
func (e UpdateDownloadTaskRequestValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateDownloadTaskRequestValidationError) Field ¶
func (e UpdateDownloadTaskRequestValidationError) Field() string
Field function returns field value.
func (UpdateDownloadTaskRequestValidationError) Key ¶
func (e UpdateDownloadTaskRequestValidationError) Key() bool
Key function returns key value.
func (UpdateDownloadTaskRequestValidationError) Reason ¶
func (e UpdateDownloadTaskRequestValidationError) Reason() string
Reason function returns reason value.
type UpdateDownloadTaskResponse ¶
type UpdateDownloadTaskResponse struct { DownloadTask *DownloadTask `protobuf:"bytes,1,opt,name=download_task,json=downloadTask,proto3" json:"download_task,omitempty"` // contains filtered or unexported fields }
func (*UpdateDownloadTaskResponse) Descriptor
deprecated
func (*UpdateDownloadTaskResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateDownloadTaskResponse.ProtoReflect.Descriptor instead.
func (*UpdateDownloadTaskResponse) GetDownloadTask ¶
func (x *UpdateDownloadTaskResponse) GetDownloadTask() *DownloadTask
func (*UpdateDownloadTaskResponse) ProtoMessage ¶
func (*UpdateDownloadTaskResponse) ProtoMessage()
func (*UpdateDownloadTaskResponse) ProtoReflect ¶
func (x *UpdateDownloadTaskResponse) ProtoReflect() protoreflect.Message
func (*UpdateDownloadTaskResponse) Reset ¶
func (x *UpdateDownloadTaskResponse) Reset()
func (*UpdateDownloadTaskResponse) String ¶
func (x *UpdateDownloadTaskResponse) String() string
func (*UpdateDownloadTaskResponse) Validate ¶
func (m *UpdateDownloadTaskResponse) Validate() error
Validate checks the field values on UpdateDownloadTaskResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*UpdateDownloadTaskResponse) ValidateAll ¶
func (m *UpdateDownloadTaskResponse) ValidateAll() error
ValidateAll checks the field values on UpdateDownloadTaskResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UpdateDownloadTaskResponseMultiError, or nil if none found.
type UpdateDownloadTaskResponseMultiError ¶
type UpdateDownloadTaskResponseMultiError []error
UpdateDownloadTaskResponseMultiError is an error wrapping multiple validation errors returned by UpdateDownloadTaskResponse.ValidateAll() if the designated constraints aren't met.
func (UpdateDownloadTaskResponseMultiError) AllErrors ¶
func (m UpdateDownloadTaskResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateDownloadTaskResponseMultiError) Error ¶
func (m UpdateDownloadTaskResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdateDownloadTaskResponseValidationError ¶
type UpdateDownloadTaskResponseValidationError struct {
// contains filtered or unexported fields
}
UpdateDownloadTaskResponseValidationError is the validation error returned by UpdateDownloadTaskResponse.Validate if the designated constraints aren't met.
func (UpdateDownloadTaskResponseValidationError) Cause ¶
func (e UpdateDownloadTaskResponseValidationError) Cause() error
Cause function returns cause value.
func (UpdateDownloadTaskResponseValidationError) Error ¶
func (e UpdateDownloadTaskResponseValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateDownloadTaskResponseValidationError) ErrorName ¶
func (e UpdateDownloadTaskResponseValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateDownloadTaskResponseValidationError) Field ¶
func (e UpdateDownloadTaskResponseValidationError) Field() string
Field function returns field value.
func (UpdateDownloadTaskResponseValidationError) Key ¶
func (e UpdateDownloadTaskResponseValidationError) Key() bool
Key function returns key value.
func (UpdateDownloadTaskResponseValidationError) Reason ¶
func (e UpdateDownloadTaskResponseValidationError) Reason() string
Reason function returns reason value.