Documentation ¶
Index ¶
- type Authentication
- type BCCSP
- type Backoff
- type Car
- type Chaincode
- type ClientKeepalive
- type Core
- type CouchDBConfig
- type DeliveryClient
- type Discovery
- type Docker
- type Events
- type FileLedger
- type FileRef
- type FilesRef
- type General
- type Golang
- type Gossip
- type GossipElection
- type GossipPvtData
- type Handler
- type HandlerMap
- type Handlers
- type HistoryConfig
- type Java
- type Kafka
- type Keepalive
- type Ledger
- type Logging
- type Metrics
- type NetworkTimeouts
- type Node
- type Orderer
- type OrdererAuthentication
- type OrdererKeepalive
- type OrdererProfile
- type OrdererSASLPlain
- type OrdererTLS
- type OrdererTopic
- type Peer
- type RAMLedger
- type Retry
- type Service
- type SoftwareProvider
- type StateConfig
- type StatsdReporter
- type SystemFlags
- type TLS
- type VM
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Authentication ¶
type BCCSP ¶
type BCCSP struct { Default string `yaml:"Default,omitempty"` SW *SoftwareProvider `yaml:"SW,omitempty"` }
type Chaincode ¶
type Chaincode struct { Builder string `yaml:"builder,omitempty"` Pull bool `yaml:"pull"` Golang *Golang `yaml:"golang,omitempty"` Car *Car `yaml:"car,omitempty"` Java *Java `yaml:"java,omitempty"` Node *Node `yaml:"node,omitempty"` StartupTimeout time.Duration `yaml:"startupTimeout,omitempty"` ExecuteTimeout time.Duration `yaml:"executeTimeout,omitempty"` Mode string `yaml:"mode,omitempty"` Keepalive int `yaml:"keepalive,omitempty"` System SystemFlags `yaml:"system,omitempty"` Logging *Logging `yaml:"logging,omitempty"` ExtraProperties map[string]interface{} `yaml:",inline,omitempty"` }
type ClientKeepalive ¶
type CouchDBConfig ¶
type CouchDBConfig struct { CouchDBAddress string `yaml:"couchDBAddress,omitempty"` Username string `yaml:"username,omitempty"` Password string `yaml:"password,omitempty"` MaxRetries int `yaml:"maxRetries,omitempty"` MaxRetriesOnStartup int `yaml:"maxRetriesOnStartup,omitempty"` RequestTimeout time.Duration `yaml:"requestTimeout,omitempty"` QueryLimit int `yaml:"queryLimit,omitempty"` MaxBatchUpdateSize int `yaml:"maxBatchUpdateSize,omitempty"` WarmIndexesAfterNBlocks int `yaml:"warmIndexesAfteNBlocks,omitempty"` }
type DeliveryClient ¶
type Docker ¶
type Docker struct { TLS *TLS `yaml:"tls,omitempty"` AttachStdout bool `yaml:"attachStdout"` HostConfig *docker.HostConfig `yaml:"hostConfig,omitempty"` }
type FileLedger ¶
type General ¶
type General struct { LedgerType string `yaml:"LedgerType,omitempty"` ListenAddress string `yaml:"ListenAddress,omitempty"` ListenPort int `yaml:"ListenPort,omitempty"` TLS *OrdererTLS `yaml:"TLS,omitempty"` Keepalive *OrdererKeepalive `yaml:"Keepalive,omitempty"` LogLevel string `yaml:"LogLevel,omitempty"` LogFormat string `yaml:"LogFormat,omitempty"` GenesisMethod string `yaml:"GenesisMethod,omitempty"` GenesisProfile string `yaml:"GenesisProfile,omitempty"` GenesisFile string `yaml:"GenesisFile,omitempty"` LocalMSPDir string `yaml:"LocalMSPDir,omitempty"` LocalMSPID string `yaml:"LocalMSPID,omitempty"` Profile *OrdererProfile `yaml:"Profile,omitempty"` BCCSP *BCCSP `yaml:"BCCSP,omitempty"` Authentication *OrdererAuthentication `yaml:"Authentication,omitempty"` ExtraProperties map[string]interface{} `yaml:",inline,omitempty"` }
type Gossip ¶
type Gossip struct { Bootstrap string `yaml:"bootstrap,omitempty"` UseLeaderElection bool `yaml:"useLeaderElection"` OrgLeader bool `yaml:"orgLeader"` Endpoint string `yaml:"endpoint,omitempty"` MaxBlockCountToStore int `yaml:"maxBlockCountToStore,omitempty"` MaxPropagationBurstLatency time.Duration `yaml:"maxPropagationBurstLatency,omitempty"` MaxPropagationBurstSize int `yaml:"maxPropagationBurstSize,omitempty"` PropagateIterations int `yaml:"propagateIterations,omitempty"` PropagatePeerNum int `yaml:"propagatePeerNum,omitempty"` PullInterval time.Duration `yaml:"pullInterval,omitempty"` PullPeerNum int `yaml:"pullPeerNum,omitempty"` RequestStateInfoInterval time.Duration `yaml:"requestStateInfoInterval,omitempty"` PublishStateInfoInterval time.Duration `yaml:"publishStateInfoInterval,omitempty"` StateInfoRetentionInterval time.Duration `yaml:"stateInfoRetentionInterval,omitempty"` PublishCertPeriod time.Duration `yaml:"publishCertPeriod,omitempty"` DialTimeout time.Duration `yaml:"dialTimeout,omitempty"` ConnTimeout time.Duration `yaml:"connTimeout,omitempty"` RecvBuffSize int `yaml:"recvBuffSize,omitempty"` SendBuffSize int `yaml:"sendBuffSize,omitempty"` DigestWaitTime time.Duration `yaml:"digestWaitTime,omitempty"` RequestWaitTime time.Duration `yaml:"requestWaitTime,omitempty"` ResponseWaitTime time.Duration `yaml:"responseWaitTime,omitempty"` AliveTimeInterval time.Duration `yaml:"aliveTimeInterval,omitempty"` AliveExpirationTimeout time.Duration `yaml:"aliveExpirationTimeout,omitempty"` ReconnectInterval time.Duration `yaml:"reconnectInterval,omitempty"` ExternalEndpoint string `yaml:"externalEndpoint,omitempty"` Election *GossipElection `yaml:"election,omitempty"` PvtData *GossipPvtData `yaml:"pvtData,omitempty"` }
type GossipElection ¶
type GossipElection struct { StartupGracePeriod time.Duration `yaml:"startupGracePeriod,omitempty"` MembershipSampleInterval time.Duration `yaml:"membershipSampleInterval,omitempty"` LeaderAliveThreshold time.Duration `yaml:"leaderAliveThreshold,omitempty"` LeaderElectionDuration time.Duration `yaml:"leaderElectionDuration,omitempty"` }
type GossipPvtData ¶
type HandlerMap ¶
type Handlers ¶
type Handlers struct { AuthFilters []Handler `yaml:"authFilters,omitempty"` Decorators []Handler `yaml:"decorators,omitempty"` Endorsers HandlerMap `yaml:"endorsers,omitempty"` Validators HandlerMap `yaml:"validators,omitempty"` }
type HistoryConfig ¶
type HistoryConfig struct {
EnableHistoryDatabase bool `yaml:"enableHistoryDatabase"`
}
type Kafka ¶
type Kafka struct { Retry *Retry `yaml:"Retry,omitempty"` Verbose bool `yaml:"Verbose"` TLS *OrdererTLS `yaml:"TLS,omitempty"` SASLPlain *OrdererSASLPlain `yaml:"SASLPlain,omitempty"` Topic *OrdererTopic `yaml:"Topic,omitempty"` }
type Keepalive ¶
type Keepalive struct { MinInterval time.Duration `yaml:"minInterval,omitempty"` Client *ClientKeepalive `yaml:"client,omitempty"` DeliveryClient *ClientKeepalive `yaml:"deliveryClient,omitempty"` }
type Ledger ¶
type Ledger struct { // Blockchain - not sure if it's needed State *StateConfig `yaml:"state,omitempty"` History *HistoryConfig `yaml:"history,omitempty"` }
type NetworkTimeouts ¶
type Orderer ¶
type Orderer struct { General *General `yaml:"General,omitempty"` FileLedger *FileLedger `yaml:"FileLedger,omitempty"` RAMLedger *RAMLedger `yaml:"RAMLedger,omitempty"` Kafka *Kafka `yaml:"Kafka,omitempty"` ExtraProperties map[string]interface{} `yaml:",inline,omitempty"` }
type OrdererAuthentication ¶
type OrdererKeepalive ¶
type OrdererProfile ¶
type OrdererSASLPlain ¶ added in v1.3.0
type OrdererTLS ¶
type OrdererTLS struct { Enabled bool `yaml:"Enabled"` PrivateKey string `yaml:"PrivateKey,omitempty"` Certificate string `yaml:"Certificate,omitempty"` RootCAs []string `yaml:"RootCAs,omitempty"` ClientAuthRequired bool `yaml:"ClientAuthRequired"` ClientRootCAs []string `yaml:"ClientRootCAs,omitempty"` }
type OrdererTopic ¶ added in v1.3.0
type OrdererTopic struct {
ReplicationFactor int16
}
type Peer ¶
type Peer struct { ID string `yaml:"id,omitempty"` NetworkID string `yaml:"networkId,omitempty"` ListenAddress string `yaml:"listenAddress,omitempty"` ChaincodeListenAddress string `yaml:"chaincodeListenAddress,omitempty"` ChaincodeAddress string `yaml:"chaincodeAddress,omitempty"` Address string `yaml:"address,omitempty"` AddressAutoDetect bool `yaml:"addressAutoDetect"` Keepalive *Keepalive `yaml:"keepalive,omitempty"` Gossip *Gossip `yaml:"gossip,omitempty"` Events *Events `yaml:"events,omitempty"` TLS *TLS `yaml:"tls,omitempty"` Authentication *Authentication `yaml:"authentication,omitempty"` FileSystemPath string `yaml:"fileSystemPath,omitempty"` BCCSP *BCCSP `yaml:"BCCSP,omitempty"` MSPConfigPath string `yaml:"mspConfigPath,omitempty"` LocalMSPID string `yaml:"localMspId,omitempty"` Deliveryclient *DeliveryClient `yaml:"deliveryclient,omitempty"` LocalMspType string `yaml:"localMspType,omitempty"` AdminService *Service `yaml:"adminService,omitempty"` Handlers *Handlers `yaml:"handlers,omitempty"` ValidatorPoolSize int `yaml:"validatorPoolSize,omitempty"` Discovery *Discovery `yaml:"discovery,omitempty"` ExtraProperties map[string]interface{} `yaml:",inline,omitempty"` }
type Retry ¶
type Retry struct { ShortInterval time.Duration `yaml:"ShortInterval,omitempty"` ShortTotal time.Duration `yaml:"ShortTotal,omitempty"` LongInterval time.Duration `yaml:"LongInterval,omitempty"` LongTotal time.Duration `yaml:"LongTotal,omitempty"` NetworkTimeouts *NetworkTimeouts `yaml:"NetworkTimeouts,omitempty"` Metadata *Backoff `yaml:"Metadata,omitempty"` Producer *Backoff `yaml:"Producer,omitempty"` Consumer *Backoff `yaml:"Consumer,omitempty"` }
type SoftwareProvider ¶
type StateConfig ¶
type StateConfig struct { StateDatabase string `yaml:"stateDatabase,omitempty"` CouchDBConfig *CouchDBConfig `yaml:"couchDBConfig,omitempty"` }
type StatsdReporter ¶
type SystemFlags ¶
type TLS ¶
type TLS struct { Enabled bool `yaml:"enabled"` ClientAuthRequired bool `yaml:"clientAuthRequired"` CA *FileRef `yaml:"ca,omitempty"` Cert *FileRef `yaml:"cert,omitempty"` Key *FileRef `yaml:"key,omitempty"` RootCert *FileRef `yaml:"rootcert,omitempty"` ClientRootCAs *FilesRef `yaml:"clientRootCAs,omitempty"` ClientKey *FileRef `yaml:"clientKey,omitempty"` ClientCert *FileRef `yaml:"clientCert,omitempty"` }
Click to show internal directories.
Click to hide internal directories.