Documentation ¶
Index ¶
- Constants
- type BlockChainService
- type DocResult
- type EthereumTx
- type FileCoinTx
- type Proc
- func (p *Proc) AddRetrieve(CID string) error
- func (p *Proc) GetRequest(userID, reqID string) ([]byte, error)
- func (p *Proc) GetRequests(userID string, limit, offset int) ([]byte, error)
- func (p *Proc) GetRequestsByKindInProgress(userID string, kind RequestKind) (RequestsResult, error)
- func (p *Proc) GetRetrieveStatus(CID *cid.Cid) (Status, error)
- func (p *Proc) NewRequest(reqID, userID, ehrUUID string, kind RequestKind) (*Request, error)
- func (p *Proc) Start()
- func (p *Proc) Stop()
- type Request
- type RequestInterface
- type RequestKind
- type RequestResult
- type RequestsCriteria
- type RequestsResult
- type Retrieve
- type Status
- type Tx
- type TxKind
- type TxResult
Constants ¶
View Source
const ( StatusFailed Status = 0 StatusSuccess Status = 1 StatusPending Status = 2 StatusProcessing Status = 3 StatusUnknown Status = 255 TxUnknown TxKind = iota TxMultiCall TxSetEhrUser TxSetEhrBySubject TxSetEhrDocs TxSetDocAccess TxSetDocGroupAccess TxSetUserGroupAccess TxDeleteDoc TxFilecoinStartDeal TxEhrCreateWithID TxUpdateEhrStatus TxAddEhrDoc TxSetDocKeyEncrypted TxSaveEhr TxSaveEhrStatus TxSaveComposition TxSaveTemplate TxUserRegister TxUserNew TxUserGroupCreate TxUserGroupAddUser TxUserGroupRemoveUser TxDocGroupCreate TxDocGroupAddDoc TxIndexDataUpdate TxCreateDirectory )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockChainService ¶
type BlockChainService uint8
type EthereumTx ¶
type FileCoinTx ¶
type Proc ¶
type Proc struct {
// contains filtered or unexported fields
}
func (*Proc) AddRetrieve ¶
func (*Proc) GetRequests ¶
func (*Proc) GetRequestsByKindInProgress ¶
func (p *Proc) GetRequestsByKindInProgress(userID string, kind RequestKind) (RequestsResult, error)
func (*Proc) GetRetrieveStatus ¶
func (*Proc) NewRequest ¶
func (p *Proc) NewRequest(reqID, userID, ehrUUID string, kind RequestKind) (*Request, error)
type Request ¶
type Request struct { gorm.Model ReqID string `gorm:"index:idx_request,unique"` Kind RequestKind `gorm:"kind" json:"-"` KindStr string `gorm:"-" json:"Kind"` Status Status `gorm:"status" json:"-"` StatusStr string `gorm:"-" json:"Status"` UserID string EhrUUID string // contains filtered or unexported fields }
func (*Request) AddEthereumTx ¶
func (*Request) AddFilecoinTx ¶
type RequestInterface ¶
type RequestKind ¶
type RequestKind uint8
const ( RequestUnknown RequestKind = iota RequestEhrCreate RequestEhrCreateWithID RequestEhrGetBySubject RequestEhrGetByID RequestEhrStatusCreate RequestEhrStatusUpdate RequestEhrStatusGetByID RequestEhrStatusGetByTime RequestCompositionCreate RequestCompositionUpdate RequestCompositionGetByID RequestCompositionDelete RequestUserRegister RequestDocAccessSet RequestQueryStore RequestUserGroupCreate RequestUserGroupAddUser RequestUserGroupRemoveUser RequestContributionCreate RequestTemplateCreate RequestDirectoryCreate RequestDirectoryUpdate RequestDirectoryDelete )
func (RequestKind) String ¶
func (k RequestKind) String() string
type RequestResult ¶
type RequestResult struct { Status string `json:"status"` Kind string `json:"kind"` Ethereum []*EthereumTx `json:"ethereum"` Filecoin []*FileCoinTx `json:"filecoin"` }
type RequestsCriteria ¶
type RequestsCriteria struct {
// contains filtered or unexported fields
}
func (*RequestsCriteria) ByKind ¶
func (rc *RequestsCriteria) ByKind(kind []RequestKind)
func (*RequestsCriteria) ByStatus ¶
func (rc *RequestsCriteria) ByStatus(status []Status)
type RequestsResult ¶
type RequestsResult map[string]*RequestResult
type Retrieve ¶
type Retrieve struct { CID string `gorm:"primaryKey"` DealID retrievalmarket.DealID Status Status Comment string }
Click to show internal directories.
Click to hide internal directories.