Documentation ¶
Overview ¶
Package gossip is a generated protocol buffer package.
It is generated from these files:
github.com/micro/go-micro/registry/gossip/proto/gossip.proto
It has these top-level messages:
Update
Index ¶
- type Update
- func (*Update) Descriptor() ([]byte, []int)
- func (m *Update) GetAction() string
- func (m *Update) GetData() []byte
- func (m *Update) GetExpires() uint64
- func (m *Update) GetId() string
- func (m *Update) GetMetadata() map[string]string
- func (m *Update) GetTimestamp() uint64
- func (m *Update) GetType() string
- func (*Update) ProtoMessage()
- func (m *Update) Reset()
- func (m *Update) String() string
- func (m *Update) XXX_DiscardUnknown()
- func (m *Update) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Update) XXX_Merge(src proto.Message)
- func (m *Update) XXX_Size() int
- func (m *Update) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Update ¶
type Update struct { // unique id of update Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // unix nano timestamp of update Timestamp uint64 `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // time to live for entry Expires uint64 `protobuf:"varint,3,opt,name=expires,proto3" json:"expires,omitempty"` // type of update; service Type string `protobuf:"bytes,4,opt,name=type,proto3" json:"type,omitempty"` // what action is taken; add, del, put Action string `protobuf:"bytes,5,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) GetExpires ¶
func (*Update) GetMetadata ¶
func (*Update) GetTimestamp ¶
func (*Update) ProtoMessage ¶
func (*Update) ProtoMessage()
func (*Update) XXX_DiscardUnknown ¶
func (m *Update) XXX_DiscardUnknown()
func (*Update) XXX_Marshal ¶
func (*Update) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.