{"modulePath":"github.com/eric-erki/https-hyperledger.org","version":"v1.4.4","isLatest":true,"isStandardLibrary":false,"goos":"linux","goarch":"amd64","docs":"# package server\n\n## Functions\n\n```go\nfunc Main()\n```\nMain is the entry point of orderer process\n\n```go\nfunc NewServer(\n\tr *multichannel.Registrar,\n\tmetricsProvider metrics.Provider,\n\tdebug *localconfig.Debug,\n\ttimeWindow time.Duration,\n\tmutualTLS bool,\n\texpirationCheckDisabled bool,\n) ab.AtomicBroadcastServer\n```\nNewServer creates an ab.AtomicBroadcastServer based on the broadcast target and ledger Reader\n\n```go\nfunc Start(cmd string, conf *localconfig.TopLevel)\n```\nStart provides a layer of abstraction for benchmark test\n\n```go\nfunc ValidateBootstrapBlock(block *common.Block) error\n```\nValidateBootstrapBlock returns whether this block can be used as a bootstrap block. A bootstrap block is a block of a system channel, and needs to have a ConsortiumsConfig.\n\n## Types\n\n```go\ntype ChainReplicator interface {\n\t// ReplicateChains replicates the given chains using the given last system channel config block.\n\t// It returns the names of the chains that were successfully replicated.\n\tReplicateChains(lastConfigBlock *common.Block, chains []string) []string\n}\n```\nChainReplicator replicates chains\n\n```go\ntype Factory interface {\n\t// GetOrCreate gets an existing ledger (if it exists)\n\t// or creates it if it does not\n\tGetOrCreate(chainID string) (blockledger.ReadWriter, error)\n\n\t// ChainIDs returns the chain IDs the Factory is aware of\n\tChainIDs() []string\n\n\t// Close releases all resources acquired by the factory\n\tClose()\n}\n```\nFactory retrieves or creates new ledgers by chainID\n\n","path":"github.com/eric-erki/https-hyperledger.org/orderer/common/server","name":"server","synopsis":"","isRedistributable":true}
