Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IntentionRank ¶
type IntentionRank struct { From string Rank_1 string // 排名第一的NodeID,用逗号分隔 Term string Ts string Hash string Signature string }
排名
func (*IntentionRank) LoadFromInterface ¶
func (pi *IntentionRank) LoadFromInterface(obj interface{}) error
func (*IntentionRank) LoadFromJSONString ¶
func (pi *IntentionRank) LoadFromJSONString(jsonString string) error
func (*IntentionRank) PackToJSONString ¶
func (pi *IntentionRank) PackToJSONString() string
func (*IntentionRank) Sign ¶
func (pi *IntentionRank) Sign(privateKey string) error
type PackageIntention ¶
type PackageIntention struct { From string Intention string Term string Ts string Hash string Signature string }
打包意向数据包
func (*PackageIntention) LoadFromInterface ¶
func (pi *PackageIntention) LoadFromInterface(obj interface{}) error
func (*PackageIntention) LoadFromJSONString ¶
func (pi *PackageIntention) LoadFromJSONString(jsonString string) error
func (*PackageIntention) PackToJSONString ¶
func (pi *PackageIntention) PackToJSONString() string
func (*PackageIntention) Sign ¶
func (pi *PackageIntention) Sign(privateKey string) error
Click to show internal directories.
Click to hide internal directories.