infra

package
v0.0.0-...-a2d2855 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FULLPROCESS = 6
	TRAFFIC     = 7
	OBSERVER    = 0
	ENDORSEMENT = 4
	COMMIT      = 3

	PROPOSALFILTER = 4
	COMMITFILTER   = 3
	QUERYFILTER    = 2
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Crypto

type Crypto interface {
	protoutil.Signer
	NewSignatureHeader() (*common.SignatureHeader, error)
}

to do for #127 SM crypto just need to do an impl for this interface and replace and impl a function for func (c Config) LoadCrypto() (*CryptoImpl, error) { as generator

type ObserverWorker

type ObserverWorker interface {
	Worker
	GetTime() time.Time
}

type Worker

type Worker interface {
	Start()
}

as Tape major as Producer and Consumer pattern define an interface here as Worker with start here as for #56 and #174,in cli imp adjust sequence of P&C impl to control workflow.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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