{"modulePath":"github.com/eric-erki/https-hyperledger.org","version":"v1.4.4","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package common\n\n## Types\n\n```go\ntype ChainID []byte\n```\nChainID defines the identity representation of a chain\n\n```go\ntype InvalidationResult int\n```\nInvalidationResult determines how a message affects another message when it is put into gossip message store\n\n```go\nconst (\n\t// MessageNoAction means messages have no relation\n\tMessageNoAction InvalidationResult = iota\n\t// MessageInvalidates means message invalidates the other message\n\tMessageInvalidates\n\t// MessageInvalidated means message is invalidated by the other message\n\tMessageInvalidated\n)\n```\n\n```go\ntype MessageAcceptor func(interface{}) bool\n```\nMessageAcceptor is a predicate that is used to determine in which messages the subscriber that created the instance of the MessageAcceptor is interested in.\n\n```go\ntype MessageReplacingPolicy func(this interface{}, that interface{}) InvalidationResult\n```\nMessageReplacingPolicy Returns: MESSAGE\\_INVALIDATES if this message invalidates that MESSAGE\\_INVALIDATED if this message is invalidated by that MESSAGE\\_NO\\_ACTION otherwise\n\n```go\ntype PKIidType []byte\n```\nPKIidType defines the type that holds the PKI-id which is the security identifier of a peer\n\n```go\nfunc (id PKIidType) IsNotSameFilter(that PKIidType) bool\n```\nIsNotSameFilter generate filter function which provides a predicate to identify whenever current id equals to another one.\n\n```go\nfunc (p PKIidType) String() string\n```\n\n```go\ntype Payload struct {\n\tChainID ChainID // The channel's ID of the block\n\tData    []byte  // The content of the message, possibly encrypted or signed\n\tHash    string  // The message hash\n\tSeqNum  uint64  // The message sequence number\n}\n```\nPayload defines an object that contains a ledger block\n\n```go\ntype TLSCertificates struct {\n\tTLSServerCert atomic.Value // *tls.Certificate server certificate of the peer\n\tTLSClientCert atomic.Value // *tls.Certificate client certificate of the peer\n}\n```\nTLSCertificates aggregates server and client TLS certificates\n\n","path":"github.com/eric-erki/https-hyperledger.org/gossip/common","name":"common","synopsis":"","isRedistributable":true}
