message

package
v2.1.2+incompatible Latest Latest
Warning

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

Go to latest
Published: May 21, 2019 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountBlocks

type AccountBlocks struct {
	Blocks []*ledger.AccountBlock
	TTL    int32
}

AccountBlocks is batch of account blocks

func (*AccountBlocks) Deserialize

func (a *AccountBlocks) Deserialize(buf []byte) error

func (*AccountBlocks) Serialize

func (a *AccountBlocks) Serialize() ([]byte, error)

func (*AccountBlocks) String

func (a *AccountBlocks) String() string

type GetAccountBlocks

type GetAccountBlocks struct {
	Address types.Address
	From    ledger.HashHeight
	Count   uint64
	Forward bool
}

func (*GetAccountBlocks) Deserialize

func (b *GetAccountBlocks) Deserialize(buf []byte) error

func (*GetAccountBlocks) Serialize

func (b *GetAccountBlocks) Serialize() ([]byte, error)

func (*GetAccountBlocks) String

func (b *GetAccountBlocks) String() string

type GetHashHeightList

type GetHashHeightList struct {
	From []*ledger.HashHeight // from high to low
	Step uint64
	To   uint64
}

func (*GetHashHeightList) Deserialize

func (c *GetHashHeightList) Deserialize(data []byte) (err error)

func (*GetHashHeightList) Serialize

func (c *GetHashHeightList) Serialize() ([]byte, error)

type GetSnapshotBlocks

type GetSnapshotBlocks struct {
	From    ledger.HashHeight
	Count   uint64
	Forward bool
}

func (*GetSnapshotBlocks) Deserialize

func (b *GetSnapshotBlocks) Deserialize(buf []byte) error

func (*GetSnapshotBlocks) Serialize

func (b *GetSnapshotBlocks) Serialize() ([]byte, error)

func (*GetSnapshotBlocks) String

func (b *GetSnapshotBlocks) String() string

type HashHeightPoint

type HashHeightPoint struct {
	ledger.HashHeight
	Size uint64
}

func (*HashHeightPoint) DeProto

func (p *HashHeightPoint) DeProto(pb *vitepb.HashHeightPoint) (err error)

func (*HashHeightPoint) Proto

type HashHeightPointList

type HashHeightPointList struct {
	Points []*HashHeightPoint // from low to high
}

func (*HashHeightPointList) Deserialize

func (c *HashHeightPointList) Deserialize(data []byte) (err error)

func (*HashHeightPointList) Serialize

func (c *HashHeightPointList) Serialize() ([]byte, error)

type NewAccountBlock

type NewAccountBlock struct {
	Block *ledger.AccountBlock
	TTL   int32
}

NewAccountBlock is use to propagate block, stop propagate when TTL is decrease to zero

func (*NewAccountBlock) Deserialize

func (b *NewAccountBlock) Deserialize(buf []byte) error

func (*NewAccountBlock) Serialize

func (b *NewAccountBlock) Serialize() ([]byte, error)

type NewSnapshotBlock

type NewSnapshotBlock struct {
	Block *ledger.SnapshotBlock
	TTL   int32
}

NewSnapshotBlock is use to propagate block, stop propagate when TTL is decrease to zero

func (*NewSnapshotBlock) Deserialize

func (b *NewSnapshotBlock) Deserialize(buf []byte) error

func (*NewSnapshotBlock) Serialize

func (b *NewSnapshotBlock) Serialize() ([]byte, error)

type SnapshotBlocks

type SnapshotBlocks struct {
	Blocks []*ledger.SnapshotBlock
}

SnapshotBlocks is batch of snapshot blocks

func (*SnapshotBlocks) Deserialize

func (b *SnapshotBlocks) Deserialize(buf []byte) error

func (*SnapshotBlocks) Serialize

func (b *SnapshotBlocks) Serialize() ([]byte, error)

func (*SnapshotBlocks) String

func (b *SnapshotBlocks) String() string

type Trace

type Trace struct {
	Hash                 []byte   `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
	Path                 []string `protobuf:"bytes,2,rep,name=path,proto3" json:"path,omitempty"`
	TTL                  uint32   `protobuf:"varint,3,opt,name=TTL,proto3" json:"TTL,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Trace) Descriptor

func (*Trace) Descriptor() ([]byte, []int)

func (*Trace) GetHash

func (m *Trace) GetHash() []byte

func (*Trace) GetPath

func (m *Trace) GetPath() []string

func (*Trace) GetTTL

func (m *Trace) GetTTL() uint32

func (*Trace) ProtoMessage

func (*Trace) ProtoMessage()

func (*Trace) Reset

func (m *Trace) Reset()

func (*Trace) String

func (m *Trace) String() string

func (*Trace) XXX_DiscardUnknown

func (m *Trace) XXX_DiscardUnknown()

func (*Trace) XXX_Marshal

func (m *Trace) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Trace) XXX_Merge

func (m *Trace) XXX_Merge(src proto.Message)

func (*Trace) XXX_Size

func (m *Trace) XXX_Size() int

func (*Trace) XXX_Unmarshal

func (m *Trace) XXX_Unmarshal(b []byte) error

type Tracer

type Tracer struct {
	Hash types.Hash
	Path []string
	TTL  int
}

func (*Tracer) Deserialize

func (t *Tracer) Deserialize(data []byte) error

func (*Tracer) Serialize

func (t *Tracer) Serialize() ([]byte, error)

func (*Tracer) String

func (t *Tracer) String() string

Jump to

Keyboard shortcuts

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