Documentation
¶
Index ¶
- Constants
- func AddConsumerSmartContract(contract core.SmartContract)
- func RegisterProviderSmartContract(contract core.SmartContract)
- func StartConsume(configFile string) error
- func StartServe(validatorUrl string) error
- type ClusterConfig
- type Config
- type ConsumerConfig
- type NodeConfig
- type SawtoothConfig
Constants ¶
View Source
const ( METHOD_NAME = "Name" METHOD_VERSION = "Version" )
Variables ¶
This section is empty.
Functions ¶
func AddConsumerSmartContract ¶
func AddConsumerSmartContract(contract core.SmartContract)
func RegisterProviderSmartContract ¶
func RegisterProviderSmartContract(contract core.SmartContract)
func StartConsume ¶
func StartServe ¶
Types ¶
type ClusterConfig ¶
type ClusterConfig struct {
Nodes []NodeConfig `yaml:"nodes"`
FaultTolerant string `yaml:"fault-tolerant"`
LoadBalance string `yaml:"load-balance"`
RetryCount int `yaml:"retry-count"`
RetryInterval int `yaml:"retry-interval"`
}
type Config ¶
type Config struct {
Sawtooth SawtoothConfig `yaml:"sawtooth"`
}
type ConsumerConfig ¶
type ConsumerConfig struct {
Cluster ClusterConfig `yaml:"cluster"`
SignerKeyfile string `yaml:"signer-keyfile"`
}
type NodeConfig ¶
type SawtoothConfig ¶
type SawtoothConfig struct {
Consumer ConsumerConfig `yaml:"consumer"`
}
Click to show internal directories.
Click to hide internal directories.