gossip

package
v1.5.5 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Update

type Update struct {
	// time to live for entry
	Expires uint64 `protobuf:"varint,1,opt,name=expires,proto3" json:"expires,omitempty"`
	// type of update
	Type int32 `protobuf:"varint,2,opt,name=type,proto3" json:"type,omitempty"`
	// what action is taken
	Action int32 `protobuf:"varint,3,opt,name=action,proto3" json:"action,omitempty"`
	// any other associated metadata about the data
	Metadata map[string]string `` /* 157-byte string literal not displayed */
	// the payload data;
	Data                 []byte   `protobuf:"bytes,7,opt,name=data,proto3" json:"data,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Update is the message broadcast

func (*Update) Descriptor

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

func (*Update) GetAction

func (m *Update) GetAction() int32

func (*Update) GetData

func (m *Update) GetData() []byte

func (*Update) GetExpires

func (m *Update) GetExpires() uint64

func (*Update) GetMetadata

func (m *Update) GetMetadata() map[string]string

func (*Update) GetType

func (m *Update) GetType() int32

func (*Update) ProtoMessage

func (*Update) ProtoMessage()

func (*Update) Reset

func (m *Update) Reset()

func (*Update) String

func (m *Update) String() string

func (*Update) XXX_DiscardUnknown

func (m *Update) XXX_DiscardUnknown()

func (*Update) XXX_Marshal

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

func (*Update) XXX_Merge

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

func (*Update) XXX_Size

func (m *Update) XXX_Size() int

func (*Update) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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