Documentation
¶
Index ¶
Constants ¶
View Source
const Eight = 8
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HeaderTest ¶
type HeaderTest struct {
Version int32
TestName string
TestArray []byte
Producer proto.NodeID
GenesisHash []hash.Hash
ParentHash []*hash.Hash
MerkleRoot *[]*hash.Hash
Timestamp time.Time
}
HeaderTest is a block header.
func (*HeaderTest) MarshalHash ¶
func (z *HeaderTest) MarshalHash() (o []byte, err error)
MarshalHash marshals for hash
func (*HeaderTest) Msgsize ¶
func (z *HeaderTest) Msgsize() (s int)
Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
type HeaderTest2 ¶
type HeaderTest2 struct {
Version2 int32
TestName2 string
TestArray2 []byte
Producer2 proto.NodeID
GenesisHash2 []hash.Hash
ParentHash2 []*hash.Hash
MerkleRoot2 *[]*hash.Hash
Timestamp2 time.Time
}
HeaderTest is a block header.
func (*HeaderTest2) MarshalHash ¶
func (z *HeaderTest2) MarshalHash() (o []byte, err error)
MarshalHash marshals for hash
func (*HeaderTest2) Msgsize ¶
func (z *HeaderTest2) Msgsize() (s int)
Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
type Person1 ¶
type Person1 struct {
Name1 string
Age1 int
Address1 string
Map map[string]int
// contains filtered or unexported fields
}
func (*Person1) MarshalHash ¶
MarshalHash marshals for hash
type Person2 ¶
type Person2 struct {
Name2 string
Address2 string
Age2 int
Map map[string]int
// contains filtered or unexported fields
}
func (*Person2) MarshalHash ¶
MarshalHash marshals for hash
Click to show internal directories.
Click to hide internal directories.