message_archive

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MsgCountInit

func MsgCountInit()

Types

type MessageCounter

type MessageCounter struct {
	// contains filtered or unexported fields
}
var MsgCounter *MessageCounter

global msg counter , generate global msg request id

func (*MessageCounter) Get

func (m *MessageCounter) Get() uint32

get current request id

type SendingType

type SendingType uint8
const (
	SendingTypeBroadcast SendingType = iota
	SendingTypeMulticast
	SendingTypeMulticastToSource
	SendingTypeBroacastWithFilter
	SendingTypeBroacastWithLink
)

func (*SendingType) DecodeMsg

func (z *SendingType) DecodeMsg(dc *msgp.Reader) (err error)

DecodeMsg implements msgp.Decodable

func (SendingType) EncodeMsg

func (z SendingType) EncodeMsg(en *msgp.Writer) (err error)

EncodeMsg implements msgp.Encodable

func (SendingType) MarshalMsg

func (z SendingType) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (SendingType) Msgsize

func (z SendingType) Msgsize() (s int)

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

func (*SendingType) UnmarshalMsg

func (z *SendingType) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

type SequencerProposal

type SequencerProposal struct {
	types.Sequencer
}

func (SequencerProposal) Copy

func (s SequencerProposal) Copy() bft.Proposal

func (*SequencerProposal) DecodeMsg

func (z *SequencerProposal) DecodeMsg(dc *msgp.Reader) (err error)

DecodeMsg implements msgp.Decodable

func (*SequencerProposal) EncodeMsg

func (z *SequencerProposal) EncodeMsg(en *msgp.Writer) (err error)

EncodeMsg implements msgp.Encodable

func (SequencerProposal) Equal

func (s SequencerProposal) Equal(o bft.Proposal) bool

func (SequencerProposal) GetId

func (s SequencerProposal) GetId() *types2.Hash

func (*SequencerProposal) MarshalMsg

func (z *SequencerProposal) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (*SequencerProposal) Msgsize

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

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

func (*SequencerProposal) String

func (s *SequencerProposal) String() string

func (*SequencerProposal) UnmarshalMsg

func (z *SequencerProposal) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

Jump to

Keyboard shortcuts

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