covenant

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2018 License: MIT Imports: 4 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
	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 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 {
	Name1    string
	Age1     int
	Address1 string
	Map      map[string]int
	// 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 {
	Name2    string
	Address2 string
	Age2     int
	Map      map[string]int
	// 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 `msg:"which"`
	Other Data              `msg:"other"`
	Nums  [Eight]float64    `msg:"nums"`
}

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