covenant

package
v2.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const Eight = 8

Variables

This section is empty.

Functions

This section is empty.

Types

type Data

type Data []byte

func (Data) MarshalHash

func (z Data) MarshalHash() (o []byte, err error)

MarshalHash marshals for hash

func (Data) Msgsize

func (z Data) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

type HeaderTest

type HeaderTest struct {
	Version     int32  `hsp:"01"`
	TestName    string `hsp:"00"`
	TestArray   []byte
	S           Struct
	Producer    proto.NodeID  `hsp:"02"`
	GenesisHash []hash.Hash   `hsp:"06"`
	ParentHash  []*hash.Hash  `hsp:"03"`
	MerkleRoot  *[]*hash.Hash `hsp:"05"`
	Timestamp   time.Time     `hsp:"04"`
	// contains filtered or unexported fields
}

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 {
	S            Struct // position is not relevant
	Version2     int32  `hsp:"01"`
	TestName2    string `hsp:"00"`
	TestArray    []byte
	Producer2    proto.NodeID  `hsp:"02"`
	GenesisHash2 []hash.Hash   `hsp:"06"`
	ParentHash2  []*hash.Hash  `hsp:"03"`
	MerkleRoot2  *[]*hash.Hash `hsp:"05"`
	Timestamp2   time.Time     `hsp:"04"`
	// contains filtered or unexported fields
}

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 MyInt

type MyInt int

func (MyInt) MarshalHash

func (z MyInt) MarshalHash() (o []byte, err error)

MarshalHash marshals for hash

func (MyInt) Msgsize

func (z MyInt) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

type Person1

type Person1 struct {
	Name    string
	Age     int
	Address string
	Map     map[string]int

	Unexported string `hsp:"-"` // this field is ignored
	// contains filtered or unexported fields
}

func (*Person1) MarshalHash

func (z *Person1) MarshalHash() (o []byte, err error)

MarshalHash marshals for hash

func (*Person1) Msgsize

func (z *Person1) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

type Person2

type Person2 struct {
	Name    string
	Address string
	Age     int
	Map222  map[string]int `hspack:"Map"`

	Unexported string `hsp:"-"` // this field is ignored
	// contains filtered or unexported fields
}

func (*Person2) MarshalHash

func (z *Person2) MarshalHash() (o []byte, err error)

MarshalHash marshals for hash

func (*Person2) Msgsize

func (z *Person2) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

type Struct

type Struct struct {
	Which map[string]*MyInt `hsp:"2which"`
	Other Data              `hsp:"1other"`
	Nums  [Eight]float64    `hsp:"3nums"`
}

func (*Struct) MarshalHash

func (z *Struct) MarshalHash() (o []byte, err error)

MarshalHash marshals for hash

func (*Struct) Msgsize

func (z *Struct) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

Jump to

Keyboard shortcuts

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