Documentation
¶
Index ¶
Constants ¶
View Source
const ( // Encryption Types NoneEncryption = "none" AesGcmEncryption = "aes-gcm" )
Variables ¶
View Source
var ( // CDXJ Versioning VersionKey = "WARC-CDXJ" VersionValue = "1.0" )
Functions ¶
This section is empty.
Types ¶
type Indexer ¶
type Indexer interface { // Index indexes the WARC file at the given file path and returns a CDXJ Index(name string) (simplecdxj.CDXJ, error) // SetEncryptionKey sets the encryption key and salt used to encrypt data // before pushing to IPFS SetEncryptionKey(key, salt []byte) }
Indexer represents an interface to a WARC file to IPFS indexer
type JsonBlock ¶
type JsonBlock struct { // Defined Fields Uri string `json:"uri"` Ref string `json:"ref"` Sha string `json:"sha"` Hsc int `json:"hsc"` Mct string `json:"mct"` Rid string `json:"rid"` // Custom Fields Locator string `json:"x_locator"` Title string `json:"x_title,omitempty"` EncryptionKeyID string `json:"x_encryption_key_id,omitempty"` EncryptionMethod string `json:"x_encryption_method,omitempty"` EncryptionNonce string `json:"x_encryption_nonce,omitempty"` }
JsonBlock represents the content block (AKA payload) of the CDXJ record
Click to show internal directories.
Click to hide internal directories.