Documentation ¶
Index ¶
- Variables
- func NewBloockAuthenticityRepository(ctx context.Context, l zerolog.Logger) repository.AuthenticityRepository
- func NewBloockAvailabilityRepository(ctx context.Context, l zerolog.Logger) repository.AvailabilityRepository
- func NewBloockEncryptionRepository(ctx context.Context, l zerolog.Logger) repository.EncryptionRepository
- func NewBloockIntegrityRepository(ctx context.Context, l zerolog.Logger) repository.IntegrityRepository
- func NewBloockKeyRepository(ctx context.Context, l zerolog.Logger) repository.KeyRepository
- func NewBloockMetadataRepository(ctx context.Context, l zerolog.Logger, ent *connection.EntConnection) repository.MetadataRepository
- func NewHttpNotificationRepository(ctx context.Context, l zerolog.Logger) repository.NotificationRepository
- func NewMessageAggregatorRepository(ctx context.Context, l zerolog.Logger, ent *connection.EntConnection) repository.MessageAggregatorRepository
- func NewProcessRepository(ctx context.Context, l zerolog.Logger, ent *connection.EntConnection) repository.ProcessRepository
- type BloockAuthenticityRepository
- func (b BloockAuthenticityRepository) SignWithLocalCertificate(ctx context.Context, data []byte, localCertificate key.LocalCertificate) (string, *record.Record, error)
- func (b BloockAuthenticityRepository) SignWithLocalKey(ctx context.Context, data []byte, localKey key.LocalKey) (string, *record.Record, error)
- func (b BloockAuthenticityRepository) SignWithManagedCertificate(ctx context.Context, data []byte, managedCertificate key.ManagedCertificate, ...) (string, *record.Record, error)
- func (b BloockAuthenticityRepository) SignWithManagedKey(ctx context.Context, data []byte, managedKey key.ManagedKey, ...) (string, *record.Record, error)
- type BloockAvailabilityRepository
- func (b BloockAvailabilityRepository) FindFile(ctx context.Context, id string) ([]byte, error)
- func (b BloockAvailabilityRepository) RetrieveLocal(ctx context.Context, filePath string) ([]byte, error)
- func (b BloockAvailabilityRepository) RetrieveTmp(ctx context.Context, filename string) ([]byte, error)
- func (b BloockAvailabilityRepository) UploadHosted(ctx context.Context, file *domain.File, record record.Record) (string, error)
- func (b BloockAvailabilityRepository) UploadIpfs(ctx context.Context, file *domain.File, record record.Record) (string, error)
- func (b BloockAvailabilityRepository) UploadLocal(ctx context.Context, file *domain.File) (string, error)
- func (b BloockAvailabilityRepository) UploadTmp(ctx context.Context, file *domain.File, record record.Record) (string, error)
- type BloockEncryptionRepository
- func (b BloockEncryptionRepository) EncryptWithLocalKey(ctx context.Context, data []byte, localKey key.LocalKey) (*record.Record, error)
- func (b BloockEncryptionRepository) EncryptWithManagedCertificate(ctx context.Context, data []byte, managedCertificate key.ManagedCertificate, ...) (*record.Record, error)
- func (b BloockEncryptionRepository) EncryptWithManagedKey(ctx context.Context, data []byte, managedKey key.ManagedKey, ...) (*record.Record, error)
- func (b BloockEncryptionRepository) LoadLocalCertificate(ctx context.Context, pkcs12 []byte, pkcs12Password string) (*key.LocalCertificate, error)
- func (b BloockEncryptionRepository) LoadLocalKey(ctx context.Context, kty key.KeyType, key string) (*key.LocalKey, error)
- func (b BloockEncryptionRepository) LoadManagedCertificate(ctx context.Context, kid string) (*key.ManagedCertificate, error)
- func (b BloockEncryptionRepository) LoadManagedKey(ctx context.Context, kid string) (*key.ManagedKey, error)
- type BloockIntegrityRepository
- func (b BloockIntegrityRepository) Certify(ctx context.Context, file []byte) (domain.Certification, error)
- func (b BloockIntegrityRepository) CertifyFromHash(ctx context.Context, hash string, apiKey string) (domain.Certification, error)
- func (b BloockIntegrityRepository) GetProof(ctx context.Context, hash []string, apiKey string) (domain.BloockProof, error)
- type BloockKeyRepository
- type BloockMetadataRepository
- func (s BloockMetadataRepository) ExistCertificationByHash(ctx context.Context, hash string) (bool, error)
- func (s BloockMetadataRepository) FindCertificationByHash(ctx context.Context, hash string) (domain.Certification, error)
- func (s BloockMetadataRepository) GetCertificationsByAnchorID(ctx context.Context, anchorID int) ([]domain.Certification, error)
- func (s BloockMetadataRepository) GetFileHash(ctx context.Context, file []byte) (string, error)
- func (s BloockMetadataRepository) GetRecord(ctx context.Context, file []byte) (*record.Record, error)
- func (s BloockMetadataRepository) GetRecordDetails(ctx context.Context, file []byte) (*record.RecordDetails, error)
- func (s BloockMetadataRepository) SaveCertification(ctx context.Context, certification domain.Certification) error
- func (s BloockMetadataRepository) UpdateCertification(ctx context.Context, certification domain.Certification) error
- func (s BloockMetadataRepository) UpdateCertificationDataID(ctx context.Context, cert domain.Certification) error
- type HttpNotificationRepository
- type MerkleTreeRepository
- type MessageAggregatorRepository
- func (s MessageAggregatorRepository) ExistRoot(ctx context.Context, root string) (bool, error)
- func (s MessageAggregatorRepository) GetMessagesByHashes(ctx context.Context, hash []string) ([]domain.Message, error)
- func (s MessageAggregatorRepository) GetMessagesByRootAndAnchorID(ctx context.Context, root string, anchorID int) ([]domain.Message, error)
- func (s MessageAggregatorRepository) GetPendingMessages(ctx context.Context) ([]domain.Message, error)
- func (s MessageAggregatorRepository) SaveMessage(ctx context.Context, message domain.Message) error
- func (s MessageAggregatorRepository) UpdateMessage(ctx context.Context, m domain.Message) error
- type ProcessRepository
- func (p ProcessRepository) FindProcessByID(ctx context.Context, id uuid.UUID) (domain.Process, error)
- func (p ProcessRepository) List(ctx context.Context, pq utils.PaginationQuery) ([]domain.Process, utils.Pagination, error)
- func (p ProcessRepository) SaveProcess(ctx context.Context, process domain.Process, isAggregated bool) error
- func (p ProcessRepository) UpdateAggregatedAnchorID(ctx context.Context, anchorID int) error
- func (p ProcessRepository) UpdateStatusByAnchorID(ctx context.Context, anchorID int) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidResponse = errors.New("record couldn't send")
View Source
var ErrUnreadyProofStatus = errors.New("unready proof status")
Functions ¶
func NewBloockAuthenticityRepository ¶
func NewBloockAuthenticityRepository(ctx context.Context, l zerolog.Logger) repository.AuthenticityRepository
func NewBloockAvailabilityRepository ¶
func NewBloockAvailabilityRepository(ctx context.Context, l zerolog.Logger) repository.AvailabilityRepository
func NewBloockEncryptionRepository ¶
func NewBloockEncryptionRepository(ctx context.Context, l zerolog.Logger) repository.EncryptionRepository
func NewBloockIntegrityRepository ¶
func NewBloockIntegrityRepository(ctx context.Context, l zerolog.Logger) repository.IntegrityRepository
func NewBloockKeyRepository ¶
func NewBloockKeyRepository(ctx context.Context, l zerolog.Logger) repository.KeyRepository
func NewBloockMetadataRepository ¶
func NewBloockMetadataRepository(ctx context.Context, l zerolog.Logger, ent *connection.EntConnection) repository.MetadataRepository
func NewHttpNotificationRepository ¶
func NewHttpNotificationRepository(ctx context.Context, l zerolog.Logger) repository.NotificationRepository
func NewMessageAggregatorRepository ¶ added in v1.3.0
func NewMessageAggregatorRepository(ctx context.Context, l zerolog.Logger, ent *connection.EntConnection) repository.MessageAggregatorRepository
func NewProcessRepository ¶ added in v1.3.0
func NewProcessRepository(ctx context.Context, l zerolog.Logger, ent *connection.EntConnection) repository.ProcessRepository
Types ¶
type BloockAuthenticityRepository ¶
type BloockAuthenticityRepository struct {
// contains filtered or unexported fields
}
func (BloockAuthenticityRepository) SignWithLocalCertificate ¶
func (b BloockAuthenticityRepository) SignWithLocalCertificate(ctx context.Context, data []byte, localCertificate key.LocalCertificate) (string, *record.Record, error)
func (BloockAuthenticityRepository) SignWithLocalKey ¶
func (BloockAuthenticityRepository) SignWithManagedCertificate ¶
func (b BloockAuthenticityRepository) SignWithManagedCertificate(ctx context.Context, data []byte, managedCertificate key.ManagedCertificate, accessControl *key.AccessControl) (string, *record.Record, error)
func (BloockAuthenticityRepository) SignWithManagedKey ¶
func (b BloockAuthenticityRepository) SignWithManagedKey(ctx context.Context, data []byte, managedKey key.ManagedKey, accessControl *key.AccessControl) (string, *record.Record, error)
type BloockAvailabilityRepository ¶
type BloockAvailabilityRepository struct {
// contains filtered or unexported fields
}
func (BloockAvailabilityRepository) RetrieveLocal ¶ added in v1.3.0
func (BloockAvailabilityRepository) RetrieveTmp ¶
func (BloockAvailabilityRepository) UploadHosted ¶
func (BloockAvailabilityRepository) UploadIpfs ¶
func (BloockAvailabilityRepository) UploadLocal ¶
type BloockEncryptionRepository ¶
type BloockEncryptionRepository struct {
// contains filtered or unexported fields
}
func (BloockEncryptionRepository) EncryptWithLocalKey ¶
func (BloockEncryptionRepository) EncryptWithManagedCertificate ¶
func (b BloockEncryptionRepository) EncryptWithManagedCertificate(ctx context.Context, data []byte, managedCertificate key.ManagedCertificate, accessControl *key.AccessControl) (*record.Record, error)
func (BloockEncryptionRepository) EncryptWithManagedKey ¶
func (b BloockEncryptionRepository) EncryptWithManagedKey(ctx context.Context, data []byte, managedKey key.ManagedKey, accessControl *key.AccessControl) (*record.Record, error)
func (BloockEncryptionRepository) LoadLocalCertificate ¶
func (b BloockEncryptionRepository) LoadLocalCertificate(ctx context.Context, pkcs12 []byte, pkcs12Password string) (*key.LocalCertificate, error)
func (BloockEncryptionRepository) LoadLocalKey ¶
func (BloockEncryptionRepository) LoadManagedCertificate ¶
func (b BloockEncryptionRepository) LoadManagedCertificate(ctx context.Context, kid string) (*key.ManagedCertificate, error)
func (BloockEncryptionRepository) LoadManagedKey ¶
func (b BloockEncryptionRepository) LoadManagedKey(ctx context.Context, kid string) (*key.ManagedKey, error)
type BloockIntegrityRepository ¶
type BloockIntegrityRepository struct {
// contains filtered or unexported fields
}
func (BloockIntegrityRepository) Certify ¶
func (b BloockIntegrityRepository) Certify(ctx context.Context, file []byte) (domain.Certification, error)
func (BloockIntegrityRepository) CertifyFromHash ¶ added in v1.3.0
func (b BloockIntegrityRepository) CertifyFromHash(ctx context.Context, hash string, apiKey string) (domain.Certification, error)
func (BloockIntegrityRepository) GetProof ¶ added in v1.3.0
func (b BloockIntegrityRepository) GetProof(ctx context.Context, hash []string, apiKey string) (domain.BloockProof, error)
type BloockKeyRepository ¶
type BloockKeyRepository struct {
// contains filtered or unexported fields
}
type BloockMetadataRepository ¶
type BloockMetadataRepository struct {
// contains filtered or unexported fields
}
func (BloockMetadataRepository) ExistCertificationByHash ¶
func (BloockMetadataRepository) FindCertificationByHash ¶ added in v1.3.0
func (s BloockMetadataRepository) FindCertificationByHash(ctx context.Context, hash string) (domain.Certification, error)
func (BloockMetadataRepository) GetCertificationsByAnchorID ¶
func (s BloockMetadataRepository) GetCertificationsByAnchorID(ctx context.Context, anchorID int) ([]domain.Certification, error)
func (BloockMetadataRepository) GetFileHash ¶
func (BloockMetadataRepository) GetRecordDetails ¶
func (s BloockMetadataRepository) GetRecordDetails(ctx context.Context, file []byte) (*record.RecordDetails, error)
func (BloockMetadataRepository) SaveCertification ¶
func (s BloockMetadataRepository) SaveCertification(ctx context.Context, certification domain.Certification) error
func (BloockMetadataRepository) UpdateCertification ¶
func (s BloockMetadataRepository) UpdateCertification(ctx context.Context, certification domain.Certification) error
func (BloockMetadataRepository) UpdateCertificationDataID ¶
func (s BloockMetadataRepository) UpdateCertificationDataID(ctx context.Context, cert domain.Certification) error
type HttpNotificationRepository ¶
type HttpNotificationRepository struct {
// contains filtered or unexported fields
}
func (HttpNotificationRepository) NotifyCertification ¶
func (h HttpNotificationRepository) NotifyCertification(hash string, file []byte) error
type MerkleTreeRepository ¶ added in v1.3.0
type MerkleTreeRepository struct {
// contains filtered or unexported fields
}
func NewMerkleTreeRepository ¶ added in v1.3.0
func NewMerkleTreeRepository(l zerolog.Logger) MerkleTreeRepository
func (MerkleTreeRepository) Create ¶ added in v1.3.0
func (m MerkleTreeRepository) Create(ctx context.Context, messages []domain.Message) (domain.MerkleTree, error)
type MessageAggregatorRepository ¶ added in v1.3.0
type MessageAggregatorRepository struct {
// contains filtered or unexported fields
}
func (MessageAggregatorRepository) GetMessagesByHashes ¶ added in v1.3.2
func (MessageAggregatorRepository) GetMessagesByRootAndAnchorID ¶ added in v1.3.0
func (MessageAggregatorRepository) GetPendingMessages ¶ added in v1.3.0
func (MessageAggregatorRepository) SaveMessage ¶ added in v1.3.0
func (MessageAggregatorRepository) UpdateMessage ¶ added in v1.3.0
type ProcessRepository ¶ added in v1.3.0
type ProcessRepository struct {
// contains filtered or unexported fields
}
func (ProcessRepository) FindProcessByID ¶ added in v1.3.0
func (ProcessRepository) List ¶ added in v1.3.0
func (p ProcessRepository) List(ctx context.Context, pq utils.PaginationQuery) ([]domain.Process, utils.Pagination, error)
func (ProcessRepository) SaveProcess ¶ added in v1.3.0
func (ProcessRepository) UpdateAggregatedAnchorID ¶ added in v1.3.0
func (p ProcessRepository) UpdateAggregatedAnchorID(ctx context.Context, anchorID int) error
func (ProcessRepository) UpdateStatusByAnchorID ¶ added in v1.3.0
func (p ProcessRepository) UpdateStatusByAnchorID(ctx context.Context, anchorID int) error
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
sql
|
|
connection/mocks
Package mock_connection is a generated GoMock package.
|
Package mock_connection is a generated GoMock package. |
Click to show internal directories.
Click to hide internal directories.