common

package
v0.0.0-...-fbe82ab Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChainID

type ChainID []byte

chainID定义链的标识表示形式

type InvalidationResult

type InvalidationResult int

InvalidationResult确定消息如何影响其他消息 当它被放进八卦信息商店时

const (
	//messagenoaction表示消息没有关系
	MessageNoAction InvalidationResult = iota
	//message invalidates表示消息使其他消息无效
	MessageInvalidates
	//message invalidated表示消息被另一条消息失效。
	MessageInvalidated
)

type MessageAcceptor

type MessageAcceptor func(interface{}) bool

messageacceptor是一个谓词,用于 确定在哪些消息中创建了 MessageAcceptor的实例感兴趣。

type MessageReplacingPolicy

type MessageReplacingPolicy func(this interface{}, that interface{}) InvalidationResult

messagereplacingpolicy返回: 如果此消息使 如果此消息被此消息无效,则消息无效 消息\u否则不执行\u操作

type PKIidType

type PKIidType []byte

pki id type定义保存pki ID的类型 它是对等机的安全标识符

func (PKIidType) IsNotSameFilter

func (id PKIidType) IsNotSameFilter(that PKIidType) bool

不是相同的筛选器生成筛选器函数 提供谓词以在当前ID 等于另一个。

func (PKIidType) String

func (p PKIidType) String() string

type Payload

type Payload struct {
	ChainID ChainID //块的通道ID
	Data    []byte  //消息的内容,可能加密或签名
	Hash    string  //消息哈希
	SeqNum  uint64  //消息序列号
}

有效负载定义包含分类帐块的对象

type TLSCertificates

type TLSCertificates struct {
	TLSServerCert atomic.Value //*对等端的tls.certificate server证书
	TLSClientCert atomic.Value //*对等端的tls.certificate客户端证书
}

TLSCertificates聚合服务器和客户端TLS证书

Jump to

Keyboard shortcuts

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