Documentation ¶
Index ¶
- Constants
- func GetServerType() string
- func InitConfig(config string) error
- type BlockchainConf
- type ChallengerMerkleConf
- type ChallengerPairingConf
- type DataOwnerChallenger
- type DataOwnerConf
- type DataOwnerCopierConf
- type DataOwnerEncryptorConf
- type DataOwnerSlicerConf
- type FabricConf
- type IPFSConf
- type LocalConf
- type Log
- type MonitorConf
- type ProverConf
- type ServerConf
- type SimpleSlicerConf
- type SoftEncryptorConf
- type StorageConf
- type StorageModeConf
- type XchainConf
Constants ¶
View Source
const NodeTypeDataOwner = "dataOwner"
The application can be running as a dataOwner node or a storage node.
View Source
const NodeTypeStorage = "storage"
Variables ¶
This section is empty.
Functions ¶
func InitConfig ¶
InitConfig, load and parses configuration file
Types ¶
type BlockchainConf ¶
type BlockchainConf struct { Type string Xchain *XchainConf Fabric *FabricConf }
type ChallengerMerkleConf ¶
type ChallengerPairingConf ¶
type DataOwnerChallenger ¶
type DataOwnerChallenger struct { Type string Pairing *ChallengerPairingConf Merkle *ChallengerMerkleConf }
type DataOwnerConf ¶
type DataOwnerConf struct { Name string ListenAddress string PrivateKey string KeyPath string PublicAddress string AllowCros bool Slicer *DataOwnerSlicerConf Encryptor *DataOwnerEncryptorConf Blockchain *BlockchainConf Copier *DataOwnerCopierConf Monitor *MonitorConf Challenger *DataOwnerChallenger }
type DataOwnerCopierConf ¶
type DataOwnerCopierConf struct {
Type string
}
type DataOwnerEncryptorConf ¶
type DataOwnerEncryptorConf struct { Type string SoftEncryptor *SoftEncryptorConf }
type DataOwnerSlicerConf ¶
type DataOwnerSlicerConf struct { Type string SimpleSlicer *SimpleSlicerConf }
type FabricConf ¶
type MonitorConf ¶
type ProverConf ¶
type ProverConf struct {
LocalRoot string
}
type ServerConf ¶
type SimpleSlicerConf ¶
type SoftEncryptorConf ¶
type SoftEncryptorConf struct {
Password string
}
type StorageConf ¶
type StorageConf struct { Name string ListenAddress string PrivateKey string KeyPath string PublicAddress string Blockchain *BlockchainConf Monitor *MonitorConf Mode *StorageModeConf Prover *ProverConf }
type StorageModeConf ¶
Click to show internal directories.
Click to hide internal directories.