Documentation ¶
Index ¶
Constants ¶
View Source
const ( Code_OK = 0 Code_Failed = 1 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppLayer ¶
The Application layer that filters passed transactions for validity. Transactions are formatted as:
tx := []byte( IpfsHash + "/" + EncryptionPassword )
Upon validation, the layer pulls the vidshare-object from IPFS, and validates it (including the decryption password). Aside from existence and parse-validity, the metadata passes through an array of validators (.Validators-field) which can decide, whether a media object is Valid or not.
Finally, if passed, it (optionally) sends the ipfs-hash, metadata and password through an event channel so that another thread (or agent) can perform further processing asynchronously.
There is one potential source of Non-Determinism: It uses IPFS.
Click to show internal directories.
Click to hide internal directories.