Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MapRecordsToProto ¶
Types ¶
type AuthenticityDetails ¶ added in v2.7.0
type AuthenticityDetails struct {
Signatures []authenticity.Signature
}
AuthenticityDetails represents details related to the authenticity of a record, including signatures.
func NewAuthenticityDetailsFromProto ¶ added in v2.7.0
func NewAuthenticityDetailsFromProto(r *proto.AuthenticityDetails) *AuthenticityDetails
func (*AuthenticityDetails) ToProto ¶ added in v2.7.0
func (r *AuthenticityDetails) ToProto() *proto.AuthenticityDetails
type AvailabilityDetails ¶ added in v2.7.0
AvailabilityDetails represents details related to the availability of a record, including content type and size.
func NewAvailabilityDetailsFromProto ¶ added in v2.7.0
func NewAvailabilityDetailsFromProto(r *proto.AvailabilityDetails) *AvailabilityDetails
func (*AvailabilityDetails) ToProto ¶ added in v2.7.0
func (r *AvailabilityDetails) ToProto() *proto.AvailabilityDetails
type EncryptionDetails ¶ added in v2.7.0
EncryptionDetails represents details related to the encryption of a record, including algorithm, key, and subject.
func NewEncryptionDetailsFromProto ¶ added in v2.7.0
func NewEncryptionDetailsFromProto(r *proto.EncryptionDetails) *EncryptionDetails
func (*EncryptionDetails) ToProto ¶ added in v2.7.0
func (r *EncryptionDetails) ToProto() *proto.EncryptionDetails
type IntegrityDetails ¶ added in v2.7.0
IntegrityDetails represents details related to the integrity of a record, including hash and proof.
func NewIntegrityDetailsFromProto ¶ added in v2.7.0
func NewIntegrityDetailsFromProto(r *proto.IntegrityDetails) *IntegrityDetails
func (*IntegrityDetails) ToProto ¶ added in v2.7.0
func (r *IntegrityDetails) ToProto() *proto.IntegrityDetails
type Record ¶
type Record struct { Payload []byte // contains filtered or unexported fields }
Record represents a record with payload, hash, and configuration data.
func NewRecordFromProto ¶
func NewRecordFromProto(r *proto.Record, configData *proto.ConfigData) Record
func (*Record) GetPayload ¶ added in v2.7.0
GetPayload retrieves the payload of the record.
type RecordDetails ¶ added in v2.7.0
type RecordDetails struct { IntegrityDetails *IntegrityDetails AuthenticityDetails *AuthenticityDetails EncryptionDetails *EncryptionDetails AvailabilityDetails *AvailabilityDetails }
RecordDetails represents all details related to a record, including integrity, authenticity, encryption, and availability details.
func NewRecordDetailsFromProto ¶ added in v2.7.0
func NewRecordDetailsFromProto(r *proto.RecordDetails, configData *proto.ConfigData) RecordDetails
func (*RecordDetails) ToProto ¶ added in v2.7.0
func (r *RecordDetails) ToProto() *proto.RecordDetails