v1

package
v1.0.8-3 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Authentication

type Authentication struct {
	TimeWindow         commonapi.Duration `json:"timeWindow,omitempty"`
	NoExpirationChecks *bool              `json:"noExpirationChecks,omitempty"`
}

Authentication contains configuration parameters related to authenticating client messages.

type Cluster

type Cluster struct {
	ListenAddress                        string             `json:"listenAddress,omitempty"`
	ListenPort                           uint16             `json:"listenPort,omitempty"`
	ServerCertificate                    string             `json:"serverCertificate,omitempty"`
	ServerPrivateKey                     string             `json:"serverPrivateKey,omitempty"`
	ClientCertificate                    string             `json:"clientCertificate,omitempty"`
	ClientPrivateKey                     string             `json:"clientPrivateKey,omitempty"`
	RootCAs                              []string           `json:"rootCas,omitempty"`
	DialTimeout                          commonapi.Duration `json:"dialTimeout,omitempty"`
	RPCTimeout                           commonapi.Duration `json:"rpcTimeout,omitempty"`
	ReplicationBufferSize                int                `json:"replicationBufferSize,omitempty"`
	ReplicationPullTimeout               commonapi.Duration `json:"replicationPullTimeout,omitempty"`
	ReplicationRetryTimeout              commonapi.Duration `json:"replicationRetryTimeout,omitempty"`
	ReplicationBackgroundRefreshInterval commonapi.Duration `json:"replicationBackgroundRefreshInterval,omitempty"`
	ReplicationMaxRetries                int                `json:"replicationMaxRetries,omitempty"`
	SendBufferSize                       int                `json:"sendBufferSize,omitempty"`
	CertExpirationWarningThreshold       commonapi.Duration `json:"certExpirationWarningThreshold,omitempty"`
	TLSHandshakeTimeShift                commonapi.Duration `json:"tlsHandshakeTimeShift,omitempty"`
}

type Consumer

type Consumer struct {
	RetryBackoff commonapi.Duration `json:"retryBackoff,omitempty"`
}

Consumer contains configuration for the consumer's retries when failing to read from a Kafa partition.

type Debug

type Debug struct {
	BroadcastTraceDir string `json:"broadcastTraceDir,omitempty"`
	DeliverTraceDir   string `json:"deliverTraceDir,omitempty"`
}

Debug contains configuration for the orderer's debug parameters.

type FileLedger

type FileLedger struct {
	Location string `json:"location,omitempty"`
	Prefix   string `json:"prefix,omitempty"`
}

FileLedger contains configuration for the file-based ledger.

type General

type General struct {
	LedgerType        string             `json:"ledgerType,omitempty"`
	ListenAddress     string             `json:"listenAddress,omitempty"`
	ListenPort        uint16             `json:"listenPort,omitempty"`
	TLS               TLS                `json:"tls,omitempty"`
	Cluster           Cluster            `json:"cluster,omitempty"`
	Keepalive         Keepalive          `json:"keepalive,omitempty"`
	ConnectionTimeout commonapi.Duration `json:"connectionTimeout,omitempty"`
	GenesisMethod     string             `json:"genesisMethod,omitempty"`
	GenesisFile       string             `json:"genesisFile,omitempty"` // For compatibility only, will be replaced by BootstrapFile
	BootstrapFile     string             `json:"bootstrapFile,omitempty"`
	Profile           Profile            `json:"profile,omitempty"`
	LocalMSPDir       string             `json:"localMspDir,omitempty"`
	LocalMSPID        string             `json:"localMspId,omitempty"`
	BCCSP             *commonapi.BCCSP   `json:"BCCSP,omitempty"`
	Authentication    Authentication     `json:"authentication,omitempty"`
}

General contains config which should be common among all orderer types.

type Keepalive

type Keepalive struct {
	ServerMinInterval commonapi.Duration `json:"serverMinInterval,omitempty"`
	ServerInterval    commonapi.Duration `json:"serverInterval,omitempty"`
	ServerTimeout     commonapi.Duration `json:"serverTimeout,omitempty"`
}

Keepalive contains configuration for gRPC servers.

type Metadata

type Metadata struct {
	RetryMax     int                `json:"retryMax,omitempty"`
	RetryBackoff commonapi.Duration `json:"retryBackoff,omitempty"`
}

Metadata contains configuration for the metadata requests to the Kafka cluster.

type Metrics

type Metrics struct {
	Provider string `json:"provider,omitempty"`
	Statsd   Statsd `json:"statsd,omitempty"`
}

Operations confiures the metrics provider for the orderer.

type NetworkTimeouts

type NetworkTimeouts struct {
	DialTimeout  commonapi.Duration `json:"dialTimeout,omitempty"`
	ReadTimeout  commonapi.Duration `json:"readTimeout,omitempty"`
	WriteTimeout commonapi.Duration `json:"writeTimeout,omitempty"`
}

NetworkTimeouts contains the socket timeouts for network requests to the Kafka cluster.

type Operations

type Operations struct {
	ListenAddress string `json:"listenAddress,omitempty"`
	TLS           TLS    `json:"tls,omitempty"`
}

Operations configures the operations endpont for the orderer.

type Orderer

type Orderer struct {
	General    General     `json:"general,omitempty"`
	FileLedger FileLedger  `json:"fileLedger,omitempty"`
	Debug      Debug       `json:"debug,omitempty"`
	Consensus  interface{} `json:"consensus,omitempty"`
	Operations Operations  `json:"operations,omitempty"`
	Metrics    Metrics     `json:"metrics,omitempty"`
}

type Producer

type Producer struct {
	RetryMax     int                `json:"retryMax,omitempty"`
	RetryBackoff commonapi.Duration `json:"retryBackoff,omitempty"`
}

Producer contains configuration for the producer's retries when failing to post a message to a Kafka partition.

type Profile

type Profile struct {
	Enabled *bool  `json:"enabled,omitempty"`
	Address string `json:"address,omitempty"`
}

Profile contains configuration for Go pprof profiling.

type Retry

type Retry struct {
	ShortInterval   commonapi.Duration `json:"shortInterval,omitempty"`
	ShortTotal      commonapi.Duration `json:"shortTotal,omitempty"`
	LongInterval    commonapi.Duration `json:"longInterval,omitempty"`
	LongTotal       commonapi.Duration `json:"longTotal,omitempty"`
	NetworkTimeouts NetworkTimeouts    `json:"networkTimeouts,omitempty"`
	Metadata        Metadata           `json:"metadata,omitempty"`
	Producer        Producer           `json:"producer,omitempty"`
	Consumer        Consumer           `json:"consumer,omitempty"`
}

Retry contains configuration related to retries and timeouts when the connection to the Kafka cluster cannot be established, or when Metadata requests needs to be repeated (because the cluster is in the middle of a leader election).

type SASLPlain

type SASLPlain struct {
	Enabled  *bool  `json:"enabled,omitempty"`
	User     string `json:"user,omitempty"`
	Password string `json:"password,omitempty"`
}

SASLPlain contains configuration for SASL/PLAIN authentication

type Statsd

type Statsd struct {
	Network       string             `json:"network,omitempty"`
	Address       string             `json:"address,omitempty"`
	WriteInterval commonapi.Duration `json:"writeInterval,omitempty"`
	Prefix        string             `json:"prefix,omitempty"`
}

Statsd provides the configuration required to emit statsd metrics from the orderer.

type TLS

type TLS struct {
	Enabled            *bool    `json:"enabled,omitempty"`
	PrivateKey         string   `json:"privateKey,omitempty"`
	Certificate        string   `json:"certificate,omitempty"`
	RootCAs            []string `json:"rootCas,omitempty"`
	ClientAuthRequired *bool    `json:"clientAuthRequired,omitempty"`
	ClientRootCAs      []string `json:"clientRootCas,omitempty"`
}

TLS contains configuration for TLS connections.

type Topic

type Topic struct {
	ReplicationFactor int16 `json:"replicationFactor,omitempty"`
}

Topic contains the settings to use when creating Kafka topics

Jump to

Keyboard shortcuts

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