wire

package
v0.0.0-...-168a2c3 Latest Latest
Warning

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

Go to latest
Published: May 30, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event struct {
	Index                uint64                 `protobuf:"varint,1,opt,name=Index,proto3" json:"Index,omitempty"`
	Creator              string                 `protobuf:"bytes,2,opt,name=Creator,proto3" json:"Creator,omitempty"`
	Parents              [][]byte               `protobuf:"bytes,3,rep,name=Parents,proto3" json:"Parents,omitempty"`
	LamportTime          uint64                 `protobuf:"varint,4,opt,name=LamportTime,proto3" json:"LamportTime,omitempty"`
	InternalTransactions []*InternalTransaction `protobuf:"bytes,5,rep,name=InternalTransactions,proto3" json:"InternalTransactions,omitempty"`
	ExternalTransactions [][]byte               `protobuf:"bytes,6,rep,name=ExternalTransactions,proto3" json:"ExternalTransactions,omitempty"`
	Sign                 string                 `protobuf:"bytes,7,opt,name=Sign,proto3" json:"Sign,omitempty"`
	XXX_NoUnkeyedLiteral struct{}               `json:"-"`
	XXX_unrecognized     []byte                 `json:"-"`
	XXX_sizecache        int32                  `json:"-"`
}

func (*Event) Descriptor

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

func (*Event) GetCreator

func (m *Event) GetCreator() string

func (*Event) GetExternalTransactions

func (m *Event) GetExternalTransactions() [][]byte

func (*Event) GetIndex

func (m *Event) GetIndex() uint64

func (*Event) GetInternalTransactions

func (m *Event) GetInternalTransactions() []*InternalTransaction

func (*Event) GetLamportTime

func (m *Event) GetLamportTime() uint64

func (*Event) GetParents

func (m *Event) GetParents() [][]byte

func (*Event) GetSign

func (m *Event) GetSign() string

func (*Event) ProtoMarshal

func (e *Event) ProtoMarshal() ([]byte, error)

ProtoMarshal marshal to protobuf.

func (*Event) ProtoMessage

func (*Event) ProtoMessage()

func (*Event) ProtoUnmarshal

func (e *Event) ProtoUnmarshal(data []byte) error

ProtoUnmarshal unmarshal from protobuf.

func (*Event) Reset

func (m *Event) Reset()

func (*Event) String

func (m *Event) String() string

func (*Event) XXX_DiscardUnknown

func (m *Event) XXX_DiscardUnknown()

func (*Event) XXX_Marshal

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

func (*Event) XXX_Merge

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

func (*Event) XXX_Size

func (m *Event) XXX_Size() int

func (*Event) XXX_Unmarshal

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

type InternalTransaction

type InternalTransaction struct {
	Index                uint64   `protobuf:"varint,1,opt,name=Index,proto3" json:"Index,omitempty"`
	Amount               uint64   `protobuf:"varint,2,opt,name=Amount,proto3" json:"Amount,omitempty"`
	Receiver             string   `protobuf:"bytes,3,opt,name=Receiver,proto3" json:"Receiver,omitempty"`
	UntilBlock           uint64   `protobuf:"varint,4,opt,name=UntilBlock,proto3" json:"UntilBlock,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*InternalTransaction) Descriptor

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

func (*InternalTransaction) Equals

Equals return true if transactions are equal.

func (*InternalTransaction) GetAmount

func (m *InternalTransaction) GetAmount() uint64

func (*InternalTransaction) GetIndex

func (m *InternalTransaction) GetIndex() uint64

func (*InternalTransaction) GetReceiver

func (m *InternalTransaction) GetReceiver() string

func (*InternalTransaction) GetUntilBlock

func (m *InternalTransaction) GetUntilBlock() uint64

func (*InternalTransaction) ProtoMarshal

func (t *InternalTransaction) ProtoMarshal() ([]byte, error)

ProtoMarshal marshal to protobuf.

func (*InternalTransaction) ProtoMessage

func (*InternalTransaction) ProtoMessage()

func (*InternalTransaction) ProtoUnmarshal

func (t *InternalTransaction) ProtoUnmarshal(data []byte) error

ProtoUnmarshal unmarshal from protobuf.

func (*InternalTransaction) Reset

func (m *InternalTransaction) Reset()

func (*InternalTransaction) String

func (m *InternalTransaction) String() string

func (*InternalTransaction) XXX_DiscardUnknown

func (m *InternalTransaction) XXX_DiscardUnknown()

func (*InternalTransaction) XXX_Marshal

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

func (*InternalTransaction) XXX_Merge

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

func (*InternalTransaction) XXX_Size

func (m *InternalTransaction) XXX_Size() int

func (*InternalTransaction) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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