boot

package
v0.0.0-...-d84c2b0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 13, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

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 StartConsume(configFile string) error

func StartServe

func StartServe(validatorUrl string) error

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 NodeConfig struct {
	Protocol string `yaml:"protocol"`
	Ip       string `yaml:"ip"`
	Port     string `yaml:"port"`
}

type SawtoothConfig

type SawtoothConfig struct {
	Consumer ConsumerConfig `yaml:"consumer"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL