2022-03-30 16:51:56 +00:00
|
|
|
//
|
|
|
|
//Package event provides a service for subscribing to state change events.
|
|
|
|
|
2022-03-23 16:10:03 +00:00
|
|
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
2022-03-30 16:51:56 +00:00
|
|
|
// versions:
|
|
|
|
// protoc-gen-go v1.23.0
|
2022-05-23 14:37:52 +00:00
|
|
|
// protoc (unknown)
|
2020-07-23 00:25:48 +00:00
|
|
|
// source: proto/pbsubscribe/subscribe.proto
|
|
|
|
|
|
|
|
package pbsubscribe
|
|
|
|
|
|
|
|
import (
|
|
|
|
proto "github.com/golang/protobuf/proto"
|
2020-10-27 17:53:11 +00:00
|
|
|
pbservice "github.com/hashicorp/consul/proto/pbservice"
|
2022-03-30 16:51:56 +00:00
|
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
|
|
reflect "reflect"
|
|
|
|
sync "sync"
|
2020-07-23 00:25:48 +00:00
|
|
|
)
|
|
|
|
|
2022-03-30 16:51:56 +00:00
|
|
|
const (
|
|
|
|
// Verify that this generated code is sufficiently up-to-date.
|
|
|
|
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
|
|
|
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
|
|
|
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
|
|
|
)
|
2020-07-23 00:25:48 +00:00
|
|
|
|
2022-03-30 16:51:56 +00:00
|
|
|
// This is a compile-time assertion that a sufficiently up-to-date version
|
|
|
|
// of the legacy proto package is being used.
|
|
|
|
const _ = proto.ProtoPackageIsVersion4
|
2020-07-23 00:25:48 +00:00
|
|
|
|
|
|
|
// Topic enumerates the supported event topics.
|
|
|
|
type Topic int32
|
|
|
|
|
|
|
|
const (
|
|
|
|
Topic_Unknown Topic = 0
|
|
|
|
// ServiceHealth topic contains events for any changes to service health.
|
|
|
|
Topic_ServiceHealth Topic = 1
|
|
|
|
// ServiceHealthConnect topic contains events for any changes to service
|
|
|
|
// health for connect-enabled services.
|
|
|
|
Topic_ServiceHealthConnect Topic = 2
|
|
|
|
)
|
|
|
|
|
2022-03-30 16:51:56 +00:00
|
|
|
// Enum value maps for Topic.
|
|
|
|
var (
|
|
|
|
Topic_name = map[int32]string{
|
|
|
|
0: "Unknown",
|
|
|
|
1: "ServiceHealth",
|
|
|
|
2: "ServiceHealthConnect",
|
|
|
|
}
|
|
|
|
Topic_value = map[string]int32{
|
|
|
|
"Unknown": 0,
|
|
|
|
"ServiceHealth": 1,
|
|
|
|
"ServiceHealthConnect": 2,
|
|
|
|
}
|
|
|
|
)
|
2020-07-23 00:25:48 +00:00
|
|
|
|
2022-03-30 16:51:56 +00:00
|
|
|
func (x Topic) Enum() *Topic {
|
|
|
|
p := new(Topic)
|
|
|
|
*p = x
|
|
|
|
return p
|
2020-07-23 00:25:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (x Topic) String() string {
|
2022-03-30 16:51:56 +00:00
|
|
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (Topic) Descriptor() protoreflect.EnumDescriptor {
|
|
|
|
return file_proto_pbsubscribe_subscribe_proto_enumTypes[0].Descriptor()
|
|
|
|
}
|
|
|
|
|
|
|
|
func (Topic) Type() protoreflect.EnumType {
|
|
|
|
return &file_proto_pbsubscribe_subscribe_proto_enumTypes[0]
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x Topic) Number() protoreflect.EnumNumber {
|
|
|
|
return protoreflect.EnumNumber(x)
|
2020-07-23 00:25:48 +00:00
|
|
|
}
|
|
|
|
|
2022-03-30 16:51:56 +00:00
|
|
|
// Deprecated: Use Topic.Descriptor instead.
|
2020-07-23 00:25:48 +00:00
|
|
|
func (Topic) EnumDescriptor() ([]byte, []int) {
|
2022-03-30 16:51:56 +00:00
|
|
|
return file_proto_pbsubscribe_subscribe_proto_rawDescGZIP(), []int{0}
|
2020-07-23 00:25:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type CatalogOp int32
|
|
|
|
|
|
|
|
const (
|
|
|
|
CatalogOp_Register CatalogOp = 0
|
|
|
|
CatalogOp_Deregister CatalogOp = 1
|
|
|
|
)
|
|
|
|
|
2022-03-30 16:51:56 +00:00
|
|
|
// Enum value maps for CatalogOp.
|
|
|
|
var (
|
|
|
|
CatalogOp_name = map[int32]string{
|
|
|
|
0: "Register",
|
|
|
|
1: "Deregister",
|
|
|
|
}
|
|
|
|
CatalogOp_value = map[string]int32{
|
|
|
|
"Register": 0,
|
|
|
|
"Deregister": 1,
|
|
|
|
}
|
|
|
|
)
|
2020-07-23 00:25:48 +00:00
|
|
|
|
2022-03-30 16:51:56 +00:00
|
|
|
func (x CatalogOp) Enum() *CatalogOp {
|
|
|
|
p := new(CatalogOp)
|
|
|
|
*p = x
|
|
|
|
return p
|
2020-07-23 00:25:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (x CatalogOp) String() string {
|
2022-03-30 16:51:56 +00:00
|
|
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (CatalogOp) Descriptor() protoreflect.EnumDescriptor {
|
|
|
|
return file_proto_pbsubscribe_subscribe_proto_enumTypes[1].Descriptor()
|
|
|
|
}
|
|
|
|
|
|
|
|
func (CatalogOp) Type() protoreflect.EnumType {
|
|
|
|
return &file_proto_pbsubscribe_subscribe_proto_enumTypes[1]
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x CatalogOp) Number() protoreflect.EnumNumber {
|
|
|
|
return protoreflect.EnumNumber(x)
|
2020-07-23 00:25:48 +00:00
|
|
|
}
|
|
|
|
|
2022-03-30 16:51:56 +00:00
|
|
|
// Deprecated: Use CatalogOp.Descriptor instead.
|
2020-07-23 00:25:48 +00:00
|
|
|
func (CatalogOp) EnumDescriptor() ([]byte, []int) {
|
2022-03-30 16:51:56 +00:00
|
|
|
return file_proto_pbsubscribe_subscribe_proto_rawDescGZIP(), []int{1}
|
2020-07-23 00:25:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SubscribeRequest used to subscribe to a topic.
|
|
|
|
type SubscribeRequest struct {
|
2022-03-30 16:51:56 +00:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
2020-07-23 00:25:48 +00:00
|
|
|
// Topic identifies the set of events the subscriber is interested in.
|
|
|
|
Topic Topic `protobuf:"varint,1,opt,name=Topic,proto3,enum=subscribe.Topic" json:"Topic,omitempty"`
|
|
|
|
// Key is a topic-specific identifier that restricts the scope of the
|
|
|
|
// subscription to only events pertaining to that identifier. For example,
|
2022-01-28 12:27:00 +00:00
|
|
|
// to receive events for a single service, the service's name is specified
|
|
|
|
// as the key.
|
2020-07-23 00:25:48 +00:00
|
|
|
Key string `protobuf:"bytes,2,opt,name=Key,proto3" json:"Key,omitempty"`
|
|
|
|
// Token is the ACL token to authenticate the request. The token must have
|
|
|
|
// sufficient privileges to read the requested information otherwise events
|
|
|
|
// will be filtered, possibly resulting in an empty snapshot and no further
|
|
|
|
// updates sent.
|
|
|
|
Token string `protobuf:"bytes,3,opt,name=Token,proto3" json:"Token,omitempty"`
|
|
|
|
// Index is the raft index the subscriber has already observed up to. This
|
|
|
|
// is zero on an initial streaming call, but then can be provided by a
|
|
|
|
// client on subsequent re-connections such that the full snapshot doesn't
|
|
|
|
// need to be resent if the client is up to date.
|
|
|
|
Index uint64 `protobuf:"varint,4,opt,name=Index,proto3" json:"Index,omitempty"`
|
|
|
|
// Datacenter specifies the Consul datacenter the request is targeted at.
|
|
|
|
// If it's not the local DC the server will forward the request to
|
|
|
|
// the remote DC and proxy the results back to the subscriber. An empty
|
|
|
|
// string defaults to the local datacenter.
|
2020-10-27 17:27:42 +00:00
|
|
|
Datacenter string `protobuf:"bytes,5,opt,name=Datacenter,proto3" json:"Datacenter,omitempty"`
|
|
|
|
// Namespace which contains the resources. If Namespace is not specified the
|
|
|
|
// default namespace will be used.
|
|
|
|
//
|
|
|
|
// Namespace is an enterprise-only feature.
|
2021-07-22 19:33:22 +00:00
|
|
|
Namespace string `protobuf:"bytes,6,opt,name=Namespace,proto3" json:"Namespace,omitempty"`
|
|
|
|
// Partition which contains the resources. If Partition is not specified the
|
|
|
|
// default partition will be used.
|
|
|
|
//
|
|
|
|
// Partition is an enterprise-only feature.
|
2022-03-30 16:51:56 +00:00
|
|
|
Partition string `protobuf:"bytes,7,opt,name=Partition,proto3" json:"Partition,omitempty"`
|
2022-05-20 20:27:01 +00:00
|
|
|
// PeerName is the name of the peer that the requested service was imported from.
|
peering: initial sync (#12842)
- Add endpoints related to peering: read, list, generate token, initiate peering
- Update node/service/check table indexing to account for peers
- Foundational changes for pushing service updates to a peer
- Plumb peer name through Health.ServiceNodes path
see: ENT-1765, ENT-1280, ENT-1283, ENT-1283, ENT-1756, ENT-1739, ENT-1750, ENT-1679,
ENT-1709, ENT-1704, ENT-1690, ENT-1689, ENT-1702, ENT-1701, ENT-1683, ENT-1663,
ENT-1650, ENT-1678, ENT-1628, ENT-1658, ENT-1640, ENT-1637, ENT-1597, ENT-1634,
ENT-1613, ENT-1616, ENT-1617, ENT-1591, ENT-1588, ENT-1596, ENT-1572, ENT-1555
Co-authored-by: R.B. Boyer <rb@hashicorp.com>
Co-authored-by: freddygv <freddy@hashicorp.com>
Co-authored-by: Chris S. Kim <ckim@hashicorp.com>
Co-authored-by: Evan Culver <eculver@hashicorp.com>
Co-authored-by: Nitya Dhanushkodi <nitya@hashicorp.com>
2022-04-21 22:34:40 +00:00
|
|
|
PeerName string `protobuf:"bytes,8,opt,name=PeerName,proto3" json:"PeerName,omitempty"`
|
2020-07-23 00:25:48 +00:00
|
|
|
}
|
|
|
|
|
2022-03-30 16:51:56 +00:00
|
|
|
func (x *SubscribeRequest) Reset() {
|
|
|
|
*x = SubscribeRequest{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_proto_pbsubscribe_subscribe_proto_msgTypes[0]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
2020-07-23 00:25:48 +00:00
|
|
|
}
|
2022-03-23 16:10:03 +00:00
|
|
|
|
2022-03-30 16:51:56 +00:00
|
|
|
func (x *SubscribeRequest) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2020-07-23 00:25:48 +00:00
|
|
|
}
|
2022-03-30 16:51:56 +00:00
|
|
|
|
|
|
|
func (*SubscribeRequest) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *SubscribeRequest) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_proto_pbsubscribe_subscribe_proto_msgTypes[0]
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
2020-07-23 00:25:48 +00:00
|
|
|
}
|
|
|
|
|
2022-03-30 16:51:56 +00:00
|
|
|
// Deprecated: Use SubscribeRequest.ProtoReflect.Descriptor instead.
|
|
|
|
func (*SubscribeRequest) Descriptor() ([]byte, []int) {
|
|
|
|
return file_proto_pbsubscribe_subscribe_proto_rawDescGZIP(), []int{0}
|
|
|
|
}
|
2020-07-23 00:25:48 +00:00
|
|
|
|
2022-03-30 16:51:56 +00:00
|
|
|
func (x *SubscribeRequest) GetTopic() Topic {
|
|
|
|
if x != nil {
|
|
|
|
return x.Topic
|
2020-07-23 00:25:48 +00:00
|
|
|
}
|
|
|
|
return Topic_Unknown
|
|
|
|
}
|
|
|
|
|
2022-03-30 16:51:56 +00:00
|
|
|
func (x *SubscribeRequest) GetKey() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Key
|
2020-07-23 00:25:48 +00:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2022-03-30 16:51:56 +00:00
|
|
|
func (x *SubscribeRequest) GetToken() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Token
|
2020-07-23 00:25:48 +00:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2022-03-30 16:51:56 +00:00
|
|
|
func (x *SubscribeRequest) GetIndex() uint64 {
|
|
|
|
if x != nil {
|
|
|
|
return x.Index
|
2020-07-23 00:25:48 +00:00
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2022-03-30 16:51:56 +00:00
|
|
|
func (x *SubscribeRequest) GetDatacenter() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Datacenter
|
2020-07-23 00:25:48 +00:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2022-03-30 16:51:56 +00:00
|
|
|
func (x *SubscribeRequest) GetNamespace() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Namespace
|
2020-10-27 17:27:42 +00:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2022-03-30 16:51:56 +00:00
|
|
|
func (x *SubscribeRequest) GetPartition() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Partition
|
2021-07-22 19:33:22 +00:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
peering: initial sync (#12842)
- Add endpoints related to peering: read, list, generate token, initiate peering
- Update node/service/check table indexing to account for peers
- Foundational changes for pushing service updates to a peer
- Plumb peer name through Health.ServiceNodes path
see: ENT-1765, ENT-1280, ENT-1283, ENT-1283, ENT-1756, ENT-1739, ENT-1750, ENT-1679,
ENT-1709, ENT-1704, ENT-1690, ENT-1689, ENT-1702, ENT-1701, ENT-1683, ENT-1663,
ENT-1650, ENT-1678, ENT-1628, ENT-1658, ENT-1640, ENT-1637, ENT-1597, ENT-1634,
ENT-1613, ENT-1616, ENT-1617, ENT-1591, ENT-1588, ENT-1596, ENT-1572, ENT-1555
Co-authored-by: R.B. Boyer <rb@hashicorp.com>
Co-authored-by: freddygv <freddy@hashicorp.com>
Co-authored-by: Chris S. Kim <ckim@hashicorp.com>
Co-authored-by: Evan Culver <eculver@hashicorp.com>
Co-authored-by: Nitya Dhanushkodi <nitya@hashicorp.com>
2022-04-21 22:34:40 +00:00
|
|
|
func (x *SubscribeRequest) GetPeerName() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.PeerName
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2020-07-23 00:25:48 +00:00
|
|
|
// Event describes a streaming update on a subscription. Events are used both to
|
|
|
|
// describe the current "snapshot" of the result as well as ongoing mutations to
|
|
|
|
// that snapshot.
|
|
|
|
type Event struct {
|
2022-03-30 16:51:56 +00:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
2020-07-23 00:25:48 +00:00
|
|
|
// Index is the raft index at which the mutation took place. At the top
|
|
|
|
// level of a subscription there will always be at most one Event per index.
|
|
|
|
// If multiple events are published to the same topic in a single raft
|
|
|
|
// transaction then the batch of events will be encoded inside a single
|
|
|
|
// top-level event to ensure they are delivered atomically to clients.
|
2020-10-27 17:53:11 +00:00
|
|
|
Index uint64 `protobuf:"varint,1,opt,name=Index,proto3" json:"Index,omitempty"`
|
2020-07-23 00:25:48 +00:00
|
|
|
// Payload is the actual event content.
|
|
|
|
//
|
2022-03-30 16:51:56 +00:00
|
|
|
// Types that are assignable to Payload:
|
2020-07-23 00:25:48 +00:00
|
|
|
// *Event_EndOfSnapshot
|
2020-10-01 18:41:47 +00:00
|
|
|
// *Event_NewSnapshotToFollow
|
2020-07-23 00:25:48 +00:00
|
|
|
// *Event_EventBatch
|
|
|
|
// *Event_ServiceHealth
|
2022-03-30 16:51:56 +00:00
|
|
|
Payload isEvent_Payload `protobuf_oneof:"Payload"`
|
2020-07-23 00:25:48 +00:00
|
|
|
}
|
|
|
|
|
2022-03-30 16:51:56 +00:00
|
|
|
func (x *Event) Reset() {
|
|
|
|
*x = Event{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_proto_pbsubscribe_subscribe_proto_msgTypes[1]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
2020-07-23 00:25:48 +00:00
|
|
|
}
|
2022-03-23 16:10:03 +00:00
|
|
|
|
2022-03-30 16:51:56 +00:00
|
|
|
func (x *Event) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2020-07-23 00:25:48 +00:00
|
|
|
}
|
2022-03-30 16:51:56 +00:00
|
|
|
|
|
|
|
func (*Event) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *Event) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_proto_pbsubscribe_subscribe_proto_msgTypes[1]
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
2020-07-23 00:25:48 +00:00
|
|
|
}
|
2022-03-30 16:51:56 +00:00
|
|
|
|
|
|
|
// Deprecated: Use Event.ProtoReflect.Descriptor instead.
|
|
|
|
func (*Event) Descriptor() ([]byte, []int) {
|
|
|
|
return file_proto_pbsubscribe_subscribe_proto_rawDescGZIP(), []int{1}
|
2020-07-23 00:25:48 +00:00
|
|
|
}
|
2022-03-30 16:51:56 +00:00
|
|
|
|
|
|
|
func (x *Event) GetIndex() uint64 {
|
|
|
|
if x != nil {
|
|
|
|
return x.Index
|
|
|
|
}
|
|
|
|
return 0
|
2020-07-23 00:25:48 +00:00
|
|
|
}
|
2022-03-30 16:51:56 +00:00
|
|
|
|
|
|
|
func (m *Event) GetPayload() isEvent_Payload {
|
|
|
|
if m != nil {
|
|
|
|
return m.Payload
|
|
|
|
}
|
|
|
|
return nil
|
2020-07-23 00:25:48 +00:00
|
|
|
}
|
|
|
|
|
2022-03-30 16:51:56 +00:00
|
|
|
func (x *Event) GetEndOfSnapshot() bool {
|
|
|
|
if x, ok := x.GetPayload().(*Event_EndOfSnapshot); ok {
|
|
|
|
return x.EndOfSnapshot
|
|
|
|
}
|
|
|
|
return false
|
|
|
|
}
|
2020-07-23 00:25:48 +00:00
|
|
|
|
2022-03-30 16:51:56 +00:00
|
|
|
func (x *Event) GetNewSnapshotToFollow() bool {
|
|
|
|
if x, ok := x.GetPayload().(*Event_NewSnapshotToFollow); ok {
|
|
|
|
return x.NewSnapshotToFollow
|
2022-03-23 16:10:03 +00:00
|
|
|
}
|
2022-03-30 16:51:56 +00:00
|
|
|
return false
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *Event) GetEventBatch() *EventBatch {
|
|
|
|
if x, ok := x.GetPayload().(*Event_EventBatch); ok {
|
|
|
|
return x.EventBatch
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *Event) GetServiceHealth() *ServiceHealthUpdate {
|
|
|
|
if x, ok := x.GetPayload().(*Event_ServiceHealth); ok {
|
|
|
|
return x.ServiceHealth
|
|
|
|
}
|
|
|
|
return nil
|
2022-03-23 16:10:03 +00:00
|
|
|
}
|
|
|
|
|
2020-07-23 00:25:48 +00:00
|
|
|
type isEvent_Payload interface {
|
|
|
|
isEvent_Payload()
|
|
|
|
}
|
|
|
|
|
|
|
|
type Event_EndOfSnapshot struct {
|
2022-03-30 16:51:56 +00:00
|
|
|
// EndOfSnapshot indicates the event stream for the initial snapshot has
|
|
|
|
// ended. Subsequent Events delivered will be mutations to that result.
|
2022-03-23 16:10:03 +00:00
|
|
|
EndOfSnapshot bool `protobuf:"varint,2,opt,name=EndOfSnapshot,proto3,oneof"`
|
2020-07-23 00:25:48 +00:00
|
|
|
}
|
2022-03-23 16:10:03 +00:00
|
|
|
|
2020-10-01 18:41:47 +00:00
|
|
|
type Event_NewSnapshotToFollow struct {
|
2022-03-30 16:51:56 +00:00
|
|
|
// NewSnapshotToFollow indicates that the client view is stale. The client
|
|
|
|
// must reset its view before handing any more events. Subsequent events
|
|
|
|
// in the stream will be for a new snapshot until an EndOfSnapshot event
|
|
|
|
// is received.
|
2022-03-23 16:10:03 +00:00
|
|
|
NewSnapshotToFollow bool `protobuf:"varint,3,opt,name=NewSnapshotToFollow,proto3,oneof"`
|
2020-07-23 00:25:48 +00:00
|
|
|
}
|
2022-03-23 16:10:03 +00:00
|
|
|
|
2020-07-23 00:25:48 +00:00
|
|
|
type Event_EventBatch struct {
|
2022-03-30 16:51:56 +00:00
|
|
|
// EventBatch is a set of events. This is typically used as the payload
|
|
|
|
// type where multiple events are emitted in a single topic and raft
|
|
|
|
// index (e.g. transactional updates). In this case the Topic and Index
|
|
|
|
// values of all events will match and the whole set should be delivered
|
|
|
|
// and consumed atomically.
|
2022-03-23 16:10:03 +00:00
|
|
|
EventBatch *EventBatch `protobuf:"bytes,4,opt,name=EventBatch,proto3,oneof"`
|
2020-07-23 00:25:48 +00:00
|
|
|
}
|
2022-03-23 16:10:03 +00:00
|
|
|
|
2020-07-23 00:25:48 +00:00
|
|
|
type Event_ServiceHealth struct {
|
2022-03-30 16:51:56 +00:00
|
|
|
// ServiceHealth is used for ServiceHealth and ServiceHealthConnect
|
|
|
|
// topics.
|
2022-03-23 16:10:03 +00:00
|
|
|
ServiceHealth *ServiceHealthUpdate `protobuf:"bytes,10,opt,name=ServiceHealth,proto3,oneof"`
|
2020-07-23 00:25:48 +00:00
|
|
|
}
|
|
|
|
|
2022-03-23 16:10:03 +00:00
|
|
|
func (*Event_EndOfSnapshot) isEvent_Payload() {}
|
|
|
|
|
2020-10-01 18:41:47 +00:00
|
|
|
func (*Event_NewSnapshotToFollow) isEvent_Payload() {}
|
2022-03-23 16:10:03 +00:00
|
|
|
|
|
|
|
func (*Event_EventBatch) isEvent_Payload() {}
|
|
|
|
|
|
|
|
func (*Event_ServiceHealth) isEvent_Payload() {}
|
2020-07-23 00:25:48 +00:00
|
|
|
|
2022-03-30 16:51:56 +00:00
|
|
|
type EventBatch struct {
|
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
2020-07-23 00:25:48 +00:00
|
|
|
|
2022-03-30 16:51:56 +00:00
|
|
|
Events []*Event `protobuf:"bytes,1,rep,name=Events,proto3" json:"Events,omitempty"`
|
2020-07-23 00:25:48 +00:00
|
|
|
}
|
|
|
|
|
2022-03-30 16:51:56 +00:00
|
|
|
func (x *EventBatch) Reset() {
|
|
|
|
*x = EventBatch{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_proto_pbsubscribe_subscribe_proto_msgTypes[2]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
2020-07-23 00:25:48 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-03-30 16:51:56 +00:00
|
|
|
func (x *EventBatch) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2020-07-23 00:25:48 +00:00
|
|
|
}
|
|
|
|
|
2022-03-30 16:51:56 +00:00
|
|
|
func (*EventBatch) ProtoMessage() {}
|
2020-07-23 00:25:48 +00:00
|
|
|
|
2022-03-30 16:51:56 +00:00
|
|
|
func (x *EventBatch) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_proto_pbsubscribe_subscribe_proto_msgTypes[2]
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
2020-07-23 00:25:48 +00:00
|
|
|
}
|
2022-03-30 16:51:56 +00:00
|
|
|
return mi.MessageOf(x)
|
2020-07-23 00:25:48 +00:00
|
|
|
}
|
|
|
|
|
2022-03-30 16:51:56 +00:00
|
|
|
// Deprecated: Use EventBatch.ProtoReflect.Descriptor instead.
|
2020-07-23 00:25:48 +00:00
|
|
|
func (*EventBatch) Descriptor() ([]byte, []int) {
|
2022-03-30 16:51:56 +00:00
|
|
|
return file_proto_pbsubscribe_subscribe_proto_rawDescGZIP(), []int{2}
|
2020-07-23 00:25:48 +00:00
|
|
|
}
|
|
|
|
|
2022-03-30 16:51:56 +00:00
|
|
|
func (x *EventBatch) GetEvents() []*Event {
|
|
|
|
if x != nil {
|
|
|
|
return x.Events
|
2020-07-23 00:25:48 +00:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
type ServiceHealthUpdate struct {
|
2022-03-30 16:51:56 +00:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
2020-07-23 00:25:48 +00:00
|
|
|
|
2022-03-30 16:51:56 +00:00
|
|
|
Op CatalogOp `protobuf:"varint,1,opt,name=Op,proto3,enum=subscribe.CatalogOp" json:"Op,omitempty"`
|
|
|
|
CheckServiceNode *pbservice.CheckServiceNode `protobuf:"bytes,2,opt,name=CheckServiceNode,proto3" json:"CheckServiceNode,omitempty"`
|
2020-07-23 00:25:48 +00:00
|
|
|
}
|
2022-03-23 16:10:03 +00:00
|
|
|
|
2022-03-30 16:51:56 +00:00
|
|
|
func (x *ServiceHealthUpdate) Reset() {
|
|
|
|
*x = ServiceHealthUpdate{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_proto_pbsubscribe_subscribe_proto_msgTypes[3]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
2020-07-23 00:25:48 +00:00
|
|
|
}
|
2022-03-30 16:51:56 +00:00
|
|
|
|
|
|
|
func (x *ServiceHealthUpdate) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2020-07-23 00:25:48 +00:00
|
|
|
}
|
2022-03-30 16:51:56 +00:00
|
|
|
|
|
|
|
func (*ServiceHealthUpdate) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *ServiceHealthUpdate) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_proto_pbsubscribe_subscribe_proto_msgTypes[3]
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
2020-07-23 00:25:48 +00:00
|
|
|
}
|
|
|
|
|
2022-03-30 16:51:56 +00:00
|
|
|
// Deprecated: Use ServiceHealthUpdate.ProtoReflect.Descriptor instead.
|
|
|
|
func (*ServiceHealthUpdate) Descriptor() ([]byte, []int) {
|
|
|
|
return file_proto_pbsubscribe_subscribe_proto_rawDescGZIP(), []int{3}
|
|
|
|
}
|
2020-07-23 00:25:48 +00:00
|
|
|
|
2022-03-30 16:51:56 +00:00
|
|
|
func (x *ServiceHealthUpdate) GetOp() CatalogOp {
|
|
|
|
if x != nil {
|
|
|
|
return x.Op
|
2020-07-23 00:25:48 +00:00
|
|
|
}
|
|
|
|
return CatalogOp_Register
|
|
|
|
}
|
|
|
|
|
2022-03-30 16:51:56 +00:00
|
|
|
func (x *ServiceHealthUpdate) GetCheckServiceNode() *pbservice.CheckServiceNode {
|
|
|
|
if x != nil {
|
|
|
|
return x.CheckServiceNode
|
2020-07-23 00:25:48 +00:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2022-03-30 16:51:56 +00:00
|
|
|
var File_proto_pbsubscribe_subscribe_proto protoreflect.FileDescriptor
|
|
|
|
|
|
|
|
var file_proto_pbsubscribe_subscribe_proto_rawDesc = []byte{
|
|
|
|
0x0a, 0x21, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x70, 0x62, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72,
|
|
|
|
0x69, 0x62, 0x65, 0x2f, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x2e, 0x70, 0x72,
|
|
|
|
0x6f, 0x74, 0x6f, 0x12, 0x09, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x1a, 0x1a,
|
|
|
|
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x70, 0x62, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2f,
|
peering: initial sync (#12842)
- Add endpoints related to peering: read, list, generate token, initiate peering
- Update node/service/check table indexing to account for peers
- Foundational changes for pushing service updates to a peer
- Plumb peer name through Health.ServiceNodes path
see: ENT-1765, ENT-1280, ENT-1283, ENT-1283, ENT-1756, ENT-1739, ENT-1750, ENT-1679,
ENT-1709, ENT-1704, ENT-1690, ENT-1689, ENT-1702, ENT-1701, ENT-1683, ENT-1663,
ENT-1650, ENT-1678, ENT-1628, ENT-1658, ENT-1640, ENT-1637, ENT-1597, ENT-1634,
ENT-1613, ENT-1616, ENT-1617, ENT-1591, ENT-1588, ENT-1596, ENT-1572, ENT-1555
Co-authored-by: R.B. Boyer <rb@hashicorp.com>
Co-authored-by: freddygv <freddy@hashicorp.com>
Co-authored-by: Chris S. Kim <ckim@hashicorp.com>
Co-authored-by: Evan Culver <eculver@hashicorp.com>
Co-authored-by: Nitya Dhanushkodi <nitya@hashicorp.com>
2022-04-21 22:34:40 +00:00
|
|
|
0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xf0, 0x01, 0x0a, 0x10, 0x53,
|
2022-03-30 16:51:56 +00:00
|
|
|
0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,
|
|
|
|
0x26, 0x0a, 0x05, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x10,
|
|
|
|
0x2e, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x2e, 0x54, 0x6f, 0x70, 0x69, 0x63,
|
|
|
|
0x52, 0x05, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x12, 0x10, 0x0a, 0x03, 0x4b, 0x65, 0x79, 0x18, 0x02,
|
|
|
|
0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x4b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x54, 0x6f, 0x6b,
|
|
|
|
0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12,
|
|
|
|
0x14, 0x0a, 0x05, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05,
|
|
|
|
0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x1e, 0x0a, 0x0a, 0x44, 0x61, 0x74, 0x61, 0x63, 0x65, 0x6e,
|
|
|
|
0x74, 0x65, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x44, 0x61, 0x74, 0x61, 0x63,
|
|
|
|
0x65, 0x6e, 0x74, 0x65, 0x72, 0x12, 0x1c, 0x0a, 0x09, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61,
|
|
|
|
0x63, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x70,
|
|
|
|
0x61, 0x63, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x50, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e,
|
|
|
|
0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x50, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f,
|
peering: initial sync (#12842)
- Add endpoints related to peering: read, list, generate token, initiate peering
- Update node/service/check table indexing to account for peers
- Foundational changes for pushing service updates to a peer
- Plumb peer name through Health.ServiceNodes path
see: ENT-1765, ENT-1280, ENT-1283, ENT-1283, ENT-1756, ENT-1739, ENT-1750, ENT-1679,
ENT-1709, ENT-1704, ENT-1690, ENT-1689, ENT-1702, ENT-1701, ENT-1683, ENT-1663,
ENT-1650, ENT-1678, ENT-1628, ENT-1658, ENT-1640, ENT-1637, ENT-1597, ENT-1634,
ENT-1613, ENT-1616, ENT-1617, ENT-1591, ENT-1588, ENT-1596, ENT-1572, ENT-1555
Co-authored-by: R.B. Boyer <rb@hashicorp.com>
Co-authored-by: freddygv <freddy@hashicorp.com>
Co-authored-by: Chris S. Kim <ckim@hashicorp.com>
Co-authored-by: Evan Culver <eculver@hashicorp.com>
Co-authored-by: Nitya Dhanushkodi <nitya@hashicorp.com>
2022-04-21 22:34:40 +00:00
|
|
|
0x6e, 0x12, 0x1a, 0x0a, 0x08, 0x50, 0x65, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x08, 0x20,
|
|
|
|
0x01, 0x28, 0x09, 0x52, 0x08, 0x50, 0x65, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x85, 0x02,
|
|
|
|
0x0a, 0x05, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x49, 0x6e, 0x64, 0x65, 0x78,
|
|
|
|
0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x26, 0x0a,
|
|
|
|
0x0d, 0x45, 0x6e, 0x64, 0x4f, 0x66, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x18, 0x02,
|
|
|
|
0x20, 0x01, 0x28, 0x08, 0x48, 0x00, 0x52, 0x0d, 0x45, 0x6e, 0x64, 0x4f, 0x66, 0x53, 0x6e, 0x61,
|
|
|
|
0x70, 0x73, 0x68, 0x6f, 0x74, 0x12, 0x32, 0x0a, 0x13, 0x4e, 0x65, 0x77, 0x53, 0x6e, 0x61, 0x70,
|
|
|
|
0x73, 0x68, 0x6f, 0x74, 0x54, 0x6f, 0x46, 0x6f, 0x6c, 0x6c, 0x6f, 0x77, 0x18, 0x03, 0x20, 0x01,
|
|
|
|
0x28, 0x08, 0x48, 0x00, 0x52, 0x13, 0x4e, 0x65, 0x77, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f,
|
|
|
|
0x74, 0x54, 0x6f, 0x46, 0x6f, 0x6c, 0x6c, 0x6f, 0x77, 0x12, 0x37, 0x0a, 0x0a, 0x45, 0x76, 0x65,
|
|
|
|
0x6e, 0x74, 0x42, 0x61, 0x74, 0x63, 0x68, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e,
|
|
|
|
0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x2e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x42,
|
|
|
|
0x61, 0x74, 0x63, 0x68, 0x48, 0x00, 0x52, 0x0a, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x42, 0x61, 0x74,
|
|
|
|
0x63, 0x68, 0x12, 0x46, 0x0a, 0x0d, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x48, 0x65, 0x61,
|
|
|
|
0x6c, 0x74, 0x68, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x73, 0x75, 0x62, 0x73,
|
|
|
|
0x63, 0x72, 0x69, 0x62, 0x65, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x48, 0x65, 0x61,
|
|
|
|
0x6c, 0x74, 0x68, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x00, 0x52, 0x0d, 0x53, 0x65, 0x72,
|
|
|
|
0x76, 0x69, 0x63, 0x65, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x42, 0x09, 0x0a, 0x07, 0x50, 0x61,
|
|
|
|
0x79, 0x6c, 0x6f, 0x61, 0x64, 0x22, 0x36, 0x0a, 0x0a, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x42, 0x61,
|
|
|
|
0x74, 0x63, 0x68, 0x12, 0x28, 0x0a, 0x06, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20,
|
|
|
|
0x03, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x2e,
|
2022-05-23 14:37:52 +00:00
|
|
|
0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x06, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x22, 0x82, 0x01,
|
peering: initial sync (#12842)
- Add endpoints related to peering: read, list, generate token, initiate peering
- Update node/service/check table indexing to account for peers
- Foundational changes for pushing service updates to a peer
- Plumb peer name through Health.ServiceNodes path
see: ENT-1765, ENT-1280, ENT-1283, ENT-1283, ENT-1756, ENT-1739, ENT-1750, ENT-1679,
ENT-1709, ENT-1704, ENT-1690, ENT-1689, ENT-1702, ENT-1701, ENT-1683, ENT-1663,
ENT-1650, ENT-1678, ENT-1628, ENT-1658, ENT-1640, ENT-1637, ENT-1597, ENT-1634,
ENT-1613, ENT-1616, ENT-1617, ENT-1591, ENT-1588, ENT-1596, ENT-1572, ENT-1555
Co-authored-by: R.B. Boyer <rb@hashicorp.com>
Co-authored-by: freddygv <freddy@hashicorp.com>
Co-authored-by: Chris S. Kim <ckim@hashicorp.com>
Co-authored-by: Evan Culver <eculver@hashicorp.com>
Co-authored-by: Nitya Dhanushkodi <nitya@hashicorp.com>
2022-04-21 22:34:40 +00:00
|
|
|
0x0a, 0x13, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x55,
|
|
|
|
0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x24, 0x0a, 0x02, 0x4f, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28,
|
|
|
|
0x0e, 0x32, 0x14, 0x2e, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x2e, 0x43, 0x61,
|
2022-05-23 14:37:52 +00:00
|
|
|
0x74, 0x61, 0x6c, 0x6f, 0x67, 0x4f, 0x70, 0x52, 0x02, 0x4f, 0x70, 0x12, 0x45, 0x0a, 0x10, 0x43,
|
peering: initial sync (#12842)
- Add endpoints related to peering: read, list, generate token, initiate peering
- Update node/service/check table indexing to account for peers
- Foundational changes for pushing service updates to a peer
- Plumb peer name through Health.ServiceNodes path
see: ENT-1765, ENT-1280, ENT-1283, ENT-1283, ENT-1756, ENT-1739, ENT-1750, ENT-1679,
ENT-1709, ENT-1704, ENT-1690, ENT-1689, ENT-1702, ENT-1701, ENT-1683, ENT-1663,
ENT-1650, ENT-1678, ENT-1628, ENT-1658, ENT-1640, ENT-1637, ENT-1597, ENT-1634,
ENT-1613, ENT-1616, ENT-1617, ENT-1591, ENT-1588, ENT-1596, ENT-1572, ENT-1555
Co-authored-by: R.B. Boyer <rb@hashicorp.com>
Co-authored-by: freddygv <freddy@hashicorp.com>
Co-authored-by: Chris S. Kim <ckim@hashicorp.com>
Co-authored-by: Evan Culver <eculver@hashicorp.com>
Co-authored-by: Nitya Dhanushkodi <nitya@hashicorp.com>
2022-04-21 22:34:40 +00:00
|
|
|
0x68, 0x65, 0x63, 0x6b, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x18,
|
2022-05-23 14:37:52 +00:00
|
|
|
0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e,
|
|
|
|
0x43, 0x68, 0x65, 0x63, 0x6b, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x4e, 0x6f, 0x64, 0x65,
|
|
|
|
0x52, 0x10, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x4e, 0x6f,
|
|
|
|
0x64, 0x65, 0x2a, 0x41, 0x0a, 0x05, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x12, 0x0b, 0x0a, 0x07, 0x55,
|
|
|
|
0x6e, 0x6b, 0x6e, 0x6f, 0x77, 0x6e, 0x10, 0x00, 0x12, 0x11, 0x0a, 0x0d, 0x53, 0x65, 0x72, 0x76,
|
|
|
|
0x69, 0x63, 0x65, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x10, 0x01, 0x12, 0x18, 0x0a, 0x14, 0x53,
|
|
|
|
0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x43, 0x6f, 0x6e, 0x6e,
|
|
|
|
0x65, 0x63, 0x74, 0x10, 0x02, 0x2a, 0x29, 0x0a, 0x09, 0x43, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67,
|
|
|
|
0x4f, 0x70, 0x12, 0x0c, 0x0a, 0x08, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x10, 0x00,
|
|
|
|
0x12, 0x0e, 0x0a, 0x0a, 0x44, 0x65, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x10, 0x01,
|
|
|
|
0x32, 0x59, 0x0a, 0x17, 0x53, 0x74, 0x61, 0x74, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x53,
|
|
|
|
0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x3e, 0x0a, 0x09, 0x53,
|
|
|
|
0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x12, 0x1b, 0x2e, 0x73, 0x75, 0x62, 0x73, 0x63,
|
|
|
|
0x72, 0x69, 0x62, 0x65, 0x2e, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x52, 0x65,
|
|
|
|
0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x10, 0x2e, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62,
|
|
|
|
0x65, 0x2e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x22, 0x00, 0x30, 0x01, 0x42, 0x92, 0x01, 0x0a, 0x0d,
|
|
|
|
0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x42, 0x0e, 0x53,
|
|
|
|
0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a,
|
peering: initial sync (#12842)
- Add endpoints related to peering: read, list, generate token, initiate peering
- Update node/service/check table indexing to account for peers
- Foundational changes for pushing service updates to a peer
- Plumb peer name through Health.ServiceNodes path
see: ENT-1765, ENT-1280, ENT-1283, ENT-1283, ENT-1756, ENT-1739, ENT-1750, ENT-1679,
ENT-1709, ENT-1704, ENT-1690, ENT-1689, ENT-1702, ENT-1701, ENT-1683, ENT-1663,
ENT-1650, ENT-1678, ENT-1628, ENT-1658, ENT-1640, ENT-1637, ENT-1597, ENT-1634,
ENT-1613, ENT-1616, ENT-1617, ENT-1591, ENT-1588, ENT-1596, ENT-1572, ENT-1555
Co-authored-by: R.B. Boyer <rb@hashicorp.com>
Co-authored-by: freddygv <freddy@hashicorp.com>
Co-authored-by: Chris S. Kim <ckim@hashicorp.com>
Co-authored-by: Evan Culver <eculver@hashicorp.com>
Co-authored-by: Nitya Dhanushkodi <nitya@hashicorp.com>
2022-04-21 22:34:40 +00:00
|
|
|
0x2d, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x68, 0x61, 0x73, 0x68,
|
|
|
|
0x69, 0x63, 0x6f, 0x72, 0x70, 0x2f, 0x63, 0x6f, 0x6e, 0x73, 0x75, 0x6c, 0x2f, 0x70, 0x72, 0x6f,
|
2022-05-23 14:37:52 +00:00
|
|
|
0x74, 0x6f, 0x2f, 0x70, 0x62, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0xa2, 0x02,
|
|
|
|
0x03, 0x53, 0x58, 0x58, 0xaa, 0x02, 0x09, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65,
|
|
|
|
0xca, 0x02, 0x09, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0xe2, 0x02, 0x15, 0x53,
|
|
|
|
0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61,
|
|
|
|
0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x09, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65,
|
|
|
|
0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
2022-03-30 16:51:56 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
var (
|
|
|
|
file_proto_pbsubscribe_subscribe_proto_rawDescOnce sync.Once
|
|
|
|
file_proto_pbsubscribe_subscribe_proto_rawDescData = file_proto_pbsubscribe_subscribe_proto_rawDesc
|
|
|
|
)
|
|
|
|
|
|
|
|
func file_proto_pbsubscribe_subscribe_proto_rawDescGZIP() []byte {
|
|
|
|
file_proto_pbsubscribe_subscribe_proto_rawDescOnce.Do(func() {
|
|
|
|
file_proto_pbsubscribe_subscribe_proto_rawDescData = protoimpl.X.CompressGZIP(file_proto_pbsubscribe_subscribe_proto_rawDescData)
|
|
|
|
})
|
|
|
|
return file_proto_pbsubscribe_subscribe_proto_rawDescData
|
|
|
|
}
|
|
|
|
|
|
|
|
var file_proto_pbsubscribe_subscribe_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
|
|
|
|
var file_proto_pbsubscribe_subscribe_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
|
|
|
|
var file_proto_pbsubscribe_subscribe_proto_goTypes = []interface{}{
|
|
|
|
(Topic)(0), // 0: subscribe.Topic
|
|
|
|
(CatalogOp)(0), // 1: subscribe.CatalogOp
|
|
|
|
(*SubscribeRequest)(nil), // 2: subscribe.SubscribeRequest
|
|
|
|
(*Event)(nil), // 3: subscribe.Event
|
|
|
|
(*EventBatch)(nil), // 4: subscribe.EventBatch
|
|
|
|
(*ServiceHealthUpdate)(nil), // 5: subscribe.ServiceHealthUpdate
|
2022-05-23 14:37:52 +00:00
|
|
|
(*pbservice.CheckServiceNode)(nil), // 6: service.CheckServiceNode
|
2022-03-30 16:51:56 +00:00
|
|
|
}
|
|
|
|
var file_proto_pbsubscribe_subscribe_proto_depIdxs = []int32{
|
|
|
|
0, // 0: subscribe.SubscribeRequest.Topic:type_name -> subscribe.Topic
|
|
|
|
4, // 1: subscribe.Event.EventBatch:type_name -> subscribe.EventBatch
|
|
|
|
5, // 2: subscribe.Event.ServiceHealth:type_name -> subscribe.ServiceHealthUpdate
|
|
|
|
3, // 3: subscribe.EventBatch.Events:type_name -> subscribe.Event
|
|
|
|
1, // 4: subscribe.ServiceHealthUpdate.Op:type_name -> subscribe.CatalogOp
|
2022-05-23 14:37:52 +00:00
|
|
|
6, // 5: subscribe.ServiceHealthUpdate.CheckServiceNode:type_name -> service.CheckServiceNode
|
2022-03-30 16:51:56 +00:00
|
|
|
2, // 6: subscribe.StateChangeSubscription.Subscribe:input_type -> subscribe.SubscribeRequest
|
|
|
|
3, // 7: subscribe.StateChangeSubscription.Subscribe:output_type -> subscribe.Event
|
|
|
|
7, // [7:8] is the sub-list for method output_type
|
|
|
|
6, // [6:7] is the sub-list for method input_type
|
|
|
|
6, // [6:6] is the sub-list for extension type_name
|
|
|
|
6, // [6:6] is the sub-list for extension extendee
|
|
|
|
0, // [0:6] is the sub-list for field type_name
|
|
|
|
}
|
|
|
|
|
|
|
|
func init() { file_proto_pbsubscribe_subscribe_proto_init() }
|
|
|
|
func file_proto_pbsubscribe_subscribe_proto_init() {
|
|
|
|
if File_proto_pbsubscribe_subscribe_proto != nil {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
if !protoimpl.UnsafeEnabled {
|
|
|
|
file_proto_pbsubscribe_subscribe_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
switch v := v.(*SubscribeRequest); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_proto_pbsubscribe_subscribe_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
switch v := v.(*Event); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_proto_pbsubscribe_subscribe_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
switch v := v.(*EventBatch); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_proto_pbsubscribe_subscribe_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
switch v := v.(*ServiceHealthUpdate); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_proto_pbsubscribe_subscribe_proto_msgTypes[1].OneofWrappers = []interface{}{
|
|
|
|
(*Event_EndOfSnapshot)(nil),
|
|
|
|
(*Event_NewSnapshotToFollow)(nil),
|
|
|
|
(*Event_EventBatch)(nil),
|
|
|
|
(*Event_ServiceHealth)(nil),
|
|
|
|
}
|
|
|
|
type x struct{}
|
|
|
|
out := protoimpl.TypeBuilder{
|
|
|
|
File: protoimpl.DescBuilder{
|
|
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
|
|
RawDescriptor: file_proto_pbsubscribe_subscribe_proto_rawDesc,
|
|
|
|
NumEnums: 2,
|
|
|
|
NumMessages: 4,
|
|
|
|
NumExtensions: 0,
|
|
|
|
NumServices: 1,
|
|
|
|
},
|
|
|
|
GoTypes: file_proto_pbsubscribe_subscribe_proto_goTypes,
|
|
|
|
DependencyIndexes: file_proto_pbsubscribe_subscribe_proto_depIdxs,
|
|
|
|
EnumInfos: file_proto_pbsubscribe_subscribe_proto_enumTypes,
|
|
|
|
MessageInfos: file_proto_pbsubscribe_subscribe_proto_msgTypes,
|
|
|
|
}.Build()
|
|
|
|
File_proto_pbsubscribe_subscribe_proto = out.File
|
|
|
|
file_proto_pbsubscribe_subscribe_proto_rawDesc = nil
|
|
|
|
file_proto_pbsubscribe_subscribe_proto_goTypes = nil
|
|
|
|
file_proto_pbsubscribe_subscribe_proto_depIdxs = nil
|
2020-07-23 00:25:48 +00:00
|
|
|
}
|