Documentation ¶
Index ¶
- Variables
- func RegisterScoutHubServer(s grpc.ServiceRegistrar, srv ScoutHubServer)
- type Ack
- type AdvertRequest
- func (*AdvertRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AdvertRequest) GetGroupID() *MulticastGroupID
- func (x *AdvertRequest) GetRvId() string
- func (*AdvertRequest) ProtoMessage()
- func (x *AdvertRequest) ProtoReflect() protoreflect.Message
- func (x *AdvertRequest) Reset()
- func (x *AdvertRequest) String() string
- type DelegateSub
- func (*DelegateSub) Descriptor() ([]byte, []int)deprecated
- func (x *DelegateSub) GetGroupID() *MulticastGroupID
- func (x *DelegateSub) GetSub() *MinimalSubData
- func (*DelegateSub) ProtoMessage()
- func (x *DelegateSub) ProtoReflect() protoreflect.Message
- func (x *DelegateSub) Reset()
- func (x *DelegateSub) String() string
- type Event
- func (*Event) Descriptor() ([]byte, []int)deprecated
- func (x *Event) GetAckAddr() string
- func (x *Event) GetBackup() bool
- func (x *Event) GetBirthTime() string
- func (x *Event) GetEvent() string
- func (x *Event) GetEventID() *EventID
- func (x *Event) GetLastHop() string
- func (x *Event) GetOriginalRoute() string
- func (x *Event) GetPredicate() string
- func (x *Event) GetPubAddr() string
- func (x *Event) GetRvId() string
- func (*Event) ProtoMessage()
- func (x *Event) ProtoReflect() protoreflect.Message
- func (x *Event) Reset()
- func (x *Event) String() string
- type EventAck
- func (*EventAck) Descriptor() ([]byte, []int)deprecated
- func (x *EventAck) GetEventID() *EventID
- func (x *EventAck) GetPeerID() string
- func (x *EventAck) GetRecruitMessage() *RecruitTrackerMessage
- func (x *EventAck) GetRvID() string
- func (*EventAck) ProtoMessage()
- func (x *EventAck) ProtoReflect() protoreflect.Message
- func (x *EventAck) Reset()
- func (x *EventAck) String() string
- type EventID
- func (*EventID) Descriptor() ([]byte, []int)deprecated
- func (x *EventID) GetPublisherID() string
- func (x *EventID) GetSeqID() int32
- func (x *EventID) GetSessionNumber() int32
- func (*EventID) ProtoMessage()
- func (x *EventID) ProtoReflect() protoreflect.Message
- func (x *EventID) Reset()
- func (x *EventID) String() string
- type EventLog
- func (*EventLog) Descriptor() ([]byte, []int)deprecated
- func (x *EventLog) GetEvent() *Event
- func (x *EventLog) GetEventID() *EventID
- func (x *EventLog) GetLog() map[string]bool
- func (x *EventLog) GetRecruitMessage() *RecruitTrackerMessage
- func (x *EventLog) GetRvID() string
- func (*EventLog) ProtoMessage()
- func (x *EventLog) ProtoReflect() protoreflect.Message
- func (x *EventLog) Reset()
- func (x *EventLog) String() string
- type HelpRequest
- func (*HelpRequest) Descriptor() ([]byte, []int)deprecated
- func (x *HelpRequest) GetGroupID() *MulticastGroupID
- func (x *HelpRequest) GetSubs() map[int32]*MinimalSubData
- func (*HelpRequest) ProtoMessage()
- func (x *HelpRequest) ProtoReflect() protoreflect.Message
- func (x *HelpRequest) Reset()
- func (x *HelpRequest) String() string
- type MinimalSubData
- func (*MinimalSubData) Descriptor() ([]byte, []int)deprecated
- func (x *MinimalSubData) GetAddr() string
- func (x *MinimalSubData) GetPredicate() string
- func (*MinimalSubData) ProtoMessage()
- func (x *MinimalSubData) ProtoReflect() protoreflect.Message
- func (x *MinimalSubData) Reset()
- func (x *MinimalSubData) String() string
- type MulticastGroupID
- func (*MulticastGroupID) Descriptor() ([]byte, []int)deprecated
- func (x *MulticastGroupID) GetOwnerAddr() string
- func (x *MulticastGroupID) GetPredicate() string
- func (*MulticastGroupID) ProtoMessage()
- func (x *MulticastGroupID) ProtoReflect() protoreflect.Message
- func (x *MulticastGroupID) Reset()
- func (x *MulticastGroupID) String() string
- type PremiumEvent
- func (*PremiumEvent) Descriptor() ([]byte, []int)deprecated
- func (x *PremiumEvent) GetBirthTime() string
- func (x *PremiumEvent) GetEvent() string
- func (x *PremiumEvent) GetEventPred() string
- func (x *PremiumEvent) GetGroupID() *MulticastGroupID
- func (*PremiumEvent) ProtoMessage()
- func (x *PremiumEvent) ProtoReflect() protoreflect.Message
- func (x *PremiumEvent) Reset()
- func (x *PremiumEvent) String() string
- type PremiumSubscription
- func (*PremiumSubscription) Descriptor() ([]byte, []int)deprecated
- func (x *PremiumSubscription) GetAddr() string
- func (x *PremiumSubscription) GetCap() int32
- func (x *PremiumSubscription) GetOwnPredicate() string
- func (x *PremiumSubscription) GetPubPredicate() string
- func (x *PremiumSubscription) GetRegion() string
- func (*PremiumSubscription) ProtoMessage()
- func (x *PremiumSubscription) ProtoReflect() protoreflect.Message
- func (x *PremiumSubscription) Reset()
- func (x *PremiumSubscription) String() string
- type RecruitTrackerMessage
- func (*RecruitTrackerMessage) Descriptor() ([]byte, []int)deprecated
- func (x *RecruitTrackerMessage) GetLeader() bool
- func (x *RecruitTrackerMessage) GetRvAddr() string
- func (x *RecruitTrackerMessage) GetRvID() string
- func (*RecruitTrackerMessage) ProtoMessage()
- func (x *RecruitTrackerMessage) ProtoReflect() protoreflect.Message
- func (x *RecruitTrackerMessage) Reset()
- func (x *RecruitTrackerMessage) String() string
- type RefreshTracker
- type ScoutHubClient
- type ScoutHubServer
- type ScoutHub_BackupRefreshClient
- type ScoutHub_BackupRefreshServer
- type SearchReply
- type SearchRequest
- func (*SearchRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SearchRequest) GetPredicate() string
- func (x *SearchRequest) GetRvID() string
- func (*SearchRequest) ProtoMessage()
- func (x *SearchRequest) ProtoReflect() protoreflect.Message
- func (x *SearchRequest) Reset()
- func (x *SearchRequest) String() string
- type Subscription
- func (*Subscription) Descriptor() ([]byte, []int)deprecated
- func (x *Subscription) GetBackups() map[int32]string
- func (x *Subscription) GetIntAddr() string
- func (x *Subscription) GetPeerID() string
- func (x *Subscription) GetPredicate() string
- func (x *Subscription) GetRvId() string
- func (x *Subscription) GetShortcut() string
- func (x *Subscription) GetSubAddr() string
- func (*Subscription) ProtoMessage()
- func (x *Subscription) ProtoReflect() protoreflect.Message
- func (x *Subscription) Reset()
- func (x *Subscription) String() string
- type UnimplementedScoutHubServer
- func (UnimplementedScoutHubServer) AckOp(context.Context, *Ack) (*Ack, error)
- func (UnimplementedScoutHubServer) AckToTracker(context.Context, *EventAck) (*Ack, error)
- func (UnimplementedScoutHubServer) AckUp(context.Context, *EventAck) (*Ack, error)
- func (UnimplementedScoutHubServer) AdvertiseGroup(context.Context, *AdvertRequest) (*Ack, error)
- func (UnimplementedScoutHubServer) BackupRefresh(ScoutHub_BackupRefreshServer) error
- func (UnimplementedScoutHubServer) DelegateSubToHelper(context.Context, *DelegateSub) (*Ack, error)
- func (UnimplementedScoutHubServer) GroupSearchRequest(context.Context, *SearchRequest) (*SearchReply, error)
- func (UnimplementedScoutHubServer) HelpNewRv(context.Context, *Event) (*Ack, error)
- func (UnimplementedScoutHubServer) LogToTracker(context.Context, *EventLog) (*Ack, error)
- func (UnimplementedScoutHubServer) Notify(context.Context, *Event) (*Ack, error)
- func (UnimplementedScoutHubServer) PremiumPublish(context.Context, *PremiumEvent) (*Ack, error)
- func (UnimplementedScoutHubServer) PremiumSubscribe(context.Context, *PremiumSubscription) (*Ack, error)
- func (UnimplementedScoutHubServer) PremiumUnsubscribe(context.Context, *PremiumSubscription) (*Ack, error)
- func (UnimplementedScoutHubServer) Publish(context.Context, *Event) (*Ack, error)
- func (UnimplementedScoutHubServer) RequestHelp(context.Context, *HelpRequest) (*Ack, error)
- func (UnimplementedScoutHubServer) Subscribe(context.Context, *Subscription) (*Ack, error)
- func (UnimplementedScoutHubServer) TrackerRefresh(context.Context, *RecruitTrackerMessage) (*Ack, error)
- func (UnimplementedScoutHubServer) UpdateBackup(context.Context, *Update) (*Ack, error)
- type UnsafeScoutHubServer
- type Update
- func (*Update) Descriptor() ([]byte, []int)deprecated
- func (x *Update) GetBackups() map[int32]string
- func (x *Update) GetPredicate() string
- func (x *Update) GetRoute() string
- func (x *Update) GetRouteAddr() string
- func (x *Update) GetSender() string
- func (*Update) ProtoMessage()
- func (x *Update) ProtoReflect() protoreflect.Message
- func (x *Update) Reset()
- func (x *Update) String() string
Constants ¶
This section is empty.
Variables ¶
var File_pb_scoutHub_proto protoreflect.FileDescriptor
var ScoutHub_ServiceDesc = grpc.ServiceDesc{ ServiceName: "contentpubsub.pb.ScoutHub", HandlerType: (*ScoutHubServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Subscribe", Handler: _ScoutHub_Subscribe_Handler, }, { MethodName: "Publish", Handler: _ScoutHub_Publish_Handler, }, { MethodName: "Notify", Handler: _ScoutHub_Notify_Handler, }, { MethodName: "UpdateBackup", Handler: _ScoutHub_UpdateBackup_Handler, }, { MethodName: "LogToTracker", Handler: _ScoutHub_LogToTracker_Handler, }, { MethodName: "AckToTracker", Handler: _ScoutHub_AckToTracker_Handler, }, { MethodName: "TrackerRefresh", Handler: _ScoutHub_TrackerRefresh_Handler, }, { MethodName: "AckUp", Handler: _ScoutHub_AckUp_Handler, }, { MethodName: "AckOp", Handler: _ScoutHub_AckOp_Handler, }, { MethodName: "HelpNewRv", Handler: _ScoutHub_HelpNewRv_Handler, }, { MethodName: "AdvertiseGroup", Handler: _ScoutHub_AdvertiseGroup_Handler, }, { MethodName: "GroupSearchRequest", Handler: _ScoutHub_GroupSearchRequest_Handler, }, { MethodName: "PremiumSubscribe", Handler: _ScoutHub_PremiumSubscribe_Handler, }, { MethodName: "PremiumUnsubscribe", Handler: _ScoutHub_PremiumUnsubscribe_Handler, }, { MethodName: "PremiumPublish", Handler: _ScoutHub_PremiumPublish_Handler, }, { MethodName: "RequestHelp", Handler: _ScoutHub_RequestHelp_Handler, }, { MethodName: "DelegateSubToHelper", Handler: _ScoutHub_DelegateSubToHelper_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "BackupRefresh", Handler: _ScoutHub_BackupRefresh_Handler, ClientStreams: true, }, }, Metadata: "pb/scoutHub.proto", }
ScoutHub_ServiceDesc is the grpc.ServiceDesc for ScoutHub service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterScoutHubServer ¶
func RegisterScoutHubServer(s grpc.ServiceRegistrar, srv ScoutHubServer)
Types ¶
type Ack ¶
type Ack struct { State bool `protobuf:"varint,1,opt,name=state,proto3" json:"state,omitempty"` Info string `protobuf:"bytes,2,opt,name=info,proto3" json:"info,omitempty"` Op string `protobuf:"bytes,3,opt,name=op,proto3" json:"op,omitempty"` // contains filtered or unexported fields }
func (*Ack) Descriptor
deprecated
func (*Ack) ProtoMessage ¶
func (*Ack) ProtoMessage()
func (*Ack) ProtoReflect ¶
func (x *Ack) ProtoReflect() protoreflect.Message
type AdvertRequest ¶
type AdvertRequest struct { GroupID *MulticastGroupID `protobuf:"bytes,1,opt,name=groupID,proto3" json:"groupID,omitempty"` RvId string `protobuf:"bytes,2,opt,name=rvId,proto3" json:"rvId,omitempty"` // contains filtered or unexported fields }
func (*AdvertRequest) Descriptor
deprecated
func (*AdvertRequest) Descriptor() ([]byte, []int)
Deprecated: Use AdvertRequest.ProtoReflect.Descriptor instead.
func (*AdvertRequest) GetGroupID ¶
func (x *AdvertRequest) GetGroupID() *MulticastGroupID
func (*AdvertRequest) GetRvId ¶
func (x *AdvertRequest) GetRvId() string
func (*AdvertRequest) ProtoMessage ¶
func (*AdvertRequest) ProtoMessage()
func (*AdvertRequest) ProtoReflect ¶
func (x *AdvertRequest) ProtoReflect() protoreflect.Message
func (*AdvertRequest) Reset ¶
func (x *AdvertRequest) Reset()
func (*AdvertRequest) String ¶
func (x *AdvertRequest) String() string
type DelegateSub ¶
type DelegateSub struct { GroupID *MulticastGroupID `protobuf:"bytes,1,opt,name=groupID,proto3" json:"groupID,omitempty"` Sub *MinimalSubData `protobuf:"bytes,2,opt,name=sub,proto3" json:"sub,omitempty"` // contains filtered or unexported fields }
func (*DelegateSub) Descriptor
deprecated
func (*DelegateSub) Descriptor() ([]byte, []int)
Deprecated: Use DelegateSub.ProtoReflect.Descriptor instead.
func (*DelegateSub) GetGroupID ¶
func (x *DelegateSub) GetGroupID() *MulticastGroupID
func (*DelegateSub) GetSub ¶
func (x *DelegateSub) GetSub() *MinimalSubData
func (*DelegateSub) ProtoMessage ¶
func (*DelegateSub) ProtoMessage()
func (*DelegateSub) ProtoReflect ¶
func (x *DelegateSub) ProtoReflect() protoreflect.Message
func (*DelegateSub) Reset ¶
func (x *DelegateSub) Reset()
func (*DelegateSub) String ¶
func (x *DelegateSub) String() string
type Event ¶
type Event struct { EventID *EventID `protobuf:"bytes,1,opt,name=eventID,proto3" json:"eventID,omitempty"` Predicate string `protobuf:"bytes,2,opt,name=predicate,proto3" json:"predicate,omitempty"` RvId string `protobuf:"bytes,3,opt,name=rvId,proto3" json:"rvId,omitempty"` Event string `protobuf:"bytes,4,opt,name=event,proto3" json:"event,omitempty"` LastHop string `protobuf:"bytes,5,opt,name=lastHop,proto3" json:"lastHop,omitempty"` AckAddr string `protobuf:"bytes,6,opt,name=ackAddr,proto3" json:"ackAddr,omitempty"` Backup bool `protobuf:"varint,7,opt,name=backup,proto3" json:"backup,omitempty"` OriginalRoute string `protobuf:"bytes,8,opt,name=originalRoute,proto3" json:"originalRoute,omitempty"` BirthTime string `protobuf:"bytes,9,opt,name=birthTime,proto3" json:"birthTime,omitempty"` PubAddr string `protobuf:"bytes,10,opt,name=pubAddr,proto3" json:"pubAddr,omitempty"` // contains filtered or unexported fields }
func (*Event) Descriptor
deprecated
func (*Event) GetAckAddr ¶
func (*Event) GetBirthTime ¶
func (*Event) GetEventID ¶
func (*Event) GetLastHop ¶
func (*Event) GetOriginalRoute ¶
func (*Event) GetPredicate ¶
func (*Event) GetPubAddr ¶
func (*Event) ProtoMessage ¶
func (*Event) ProtoMessage()
func (*Event) ProtoReflect ¶
func (x *Event) ProtoReflect() protoreflect.Message
type EventAck ¶
type EventAck struct { RvID string `protobuf:"bytes,1,opt,name=rvID,proto3" json:"rvID,omitempty"` EventID *EventID `protobuf:"bytes,2,opt,name=eventID,proto3" json:"eventID,omitempty"` PeerID string `protobuf:"bytes,3,opt,name=peerID,proto3" json:"peerID,omitempty"` RecruitMessage *RecruitTrackerMessage `protobuf:"bytes,4,opt,name=recruitMessage,proto3" json:"recruitMessage,omitempty"` // contains filtered or unexported fields }
func (*EventAck) Descriptor
deprecated
func (*EventAck) GetEventID ¶
func (*EventAck) GetRecruitMessage ¶
func (x *EventAck) GetRecruitMessage() *RecruitTrackerMessage
func (*EventAck) ProtoMessage ¶
func (*EventAck) ProtoMessage()
func (*EventAck) ProtoReflect ¶
func (x *EventAck) ProtoReflect() protoreflect.Message
type EventID ¶
type EventID struct { PublisherID string `protobuf:"bytes,1,opt,name=publisherID,proto3" json:"publisherID,omitempty"` SessionNumber int32 `protobuf:"varint,2,opt,name=sessionNumber,proto3" json:"sessionNumber,omitempty"` SeqID int32 `protobuf:"varint,3,opt,name=seqID,proto3" json:"seqID,omitempty"` // contains filtered or unexported fields }
func (*EventID) Descriptor
deprecated
func (*EventID) GetPublisherID ¶
func (*EventID) GetSessionNumber ¶
func (*EventID) ProtoMessage ¶
func (*EventID) ProtoMessage()
func (*EventID) ProtoReflect ¶
func (x *EventID) ProtoReflect() protoreflect.Message
type EventLog ¶
type EventLog struct { RvID string `protobuf:"bytes,1,opt,name=rvID,proto3" json:"rvID,omitempty"` EventID *EventID `protobuf:"bytes,2,opt,name=eventID,proto3" json:"eventID,omitempty"` Event *Event `protobuf:"bytes,3,opt,name=event,proto3" json:"event,omitempty"` Log map[string]bool `` /* 148-byte string literal not displayed */ RecruitMessage *RecruitTrackerMessage `protobuf:"bytes,5,opt,name=recruitMessage,proto3" json:"recruitMessage,omitempty"` // contains filtered or unexported fields }
func (*EventLog) Descriptor
deprecated
func (*EventLog) GetEventID ¶
func (*EventLog) GetRecruitMessage ¶
func (x *EventLog) GetRecruitMessage() *RecruitTrackerMessage
func (*EventLog) ProtoMessage ¶
func (*EventLog) ProtoMessage()
func (*EventLog) ProtoReflect ¶
func (x *EventLog) ProtoReflect() protoreflect.Message
type HelpRequest ¶
type HelpRequest struct { GroupID *MulticastGroupID `protobuf:"bytes,1,opt,name=groupID,proto3" json:"groupID,omitempty"` Subs map[int32]*MinimalSubData `` /* 150-byte string literal not displayed */ // contains filtered or unexported fields }
func (*HelpRequest) Descriptor
deprecated
func (*HelpRequest) Descriptor() ([]byte, []int)
Deprecated: Use HelpRequest.ProtoReflect.Descriptor instead.
func (*HelpRequest) GetGroupID ¶
func (x *HelpRequest) GetGroupID() *MulticastGroupID
func (*HelpRequest) GetSubs ¶
func (x *HelpRequest) GetSubs() map[int32]*MinimalSubData
func (*HelpRequest) ProtoMessage ¶
func (*HelpRequest) ProtoMessage()
func (*HelpRequest) ProtoReflect ¶
func (x *HelpRequest) ProtoReflect() protoreflect.Message
func (*HelpRequest) Reset ¶
func (x *HelpRequest) Reset()
func (*HelpRequest) String ¶
func (x *HelpRequest) String() string
type MinimalSubData ¶
type MinimalSubData struct { Predicate string `protobuf:"bytes,1,opt,name=predicate,proto3" json:"predicate,omitempty"` Addr string `protobuf:"bytes,2,opt,name=addr,proto3" json:"addr,omitempty"` // contains filtered or unexported fields }
func (*MinimalSubData) Descriptor
deprecated
func (*MinimalSubData) Descriptor() ([]byte, []int)
Deprecated: Use MinimalSubData.ProtoReflect.Descriptor instead.
func (*MinimalSubData) GetAddr ¶
func (x *MinimalSubData) GetAddr() string
func (*MinimalSubData) GetPredicate ¶
func (x *MinimalSubData) GetPredicate() string
func (*MinimalSubData) ProtoMessage ¶
func (*MinimalSubData) ProtoMessage()
func (*MinimalSubData) ProtoReflect ¶
func (x *MinimalSubData) ProtoReflect() protoreflect.Message
func (*MinimalSubData) Reset ¶
func (x *MinimalSubData) Reset()
func (*MinimalSubData) String ¶
func (x *MinimalSubData) String() string
type MulticastGroupID ¶
type MulticastGroupID struct { OwnerAddr string `protobuf:"bytes,1,opt,name=ownerAddr,proto3" json:"ownerAddr,omitempty"` Predicate string `protobuf:"bytes,2,opt,name=predicate,proto3" json:"predicate,omitempty"` // contains filtered or unexported fields }
func (*MulticastGroupID) Descriptor
deprecated
func (*MulticastGroupID) Descriptor() ([]byte, []int)
Deprecated: Use MulticastGroupID.ProtoReflect.Descriptor instead.
func (*MulticastGroupID) GetOwnerAddr ¶
func (x *MulticastGroupID) GetOwnerAddr() string
func (*MulticastGroupID) GetPredicate ¶
func (x *MulticastGroupID) GetPredicate() string
func (*MulticastGroupID) ProtoMessage ¶
func (*MulticastGroupID) ProtoMessage()
func (*MulticastGroupID) ProtoReflect ¶
func (x *MulticastGroupID) ProtoReflect() protoreflect.Message
func (*MulticastGroupID) Reset ¶
func (x *MulticastGroupID) Reset()
func (*MulticastGroupID) String ¶
func (x *MulticastGroupID) String() string
type PremiumEvent ¶
type PremiumEvent struct { GroupID *MulticastGroupID `protobuf:"bytes,1,opt,name=groupID,proto3" json:"groupID,omitempty"` Event string `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` EventPred string `protobuf:"bytes,3,opt,name=eventPred,proto3" json:"eventPred,omitempty"` BirthTime string `protobuf:"bytes,4,opt,name=birthTime,proto3" json:"birthTime,omitempty"` // contains filtered or unexported fields }
func (*PremiumEvent) Descriptor
deprecated
func (*PremiumEvent) Descriptor() ([]byte, []int)
Deprecated: Use PremiumEvent.ProtoReflect.Descriptor instead.
func (*PremiumEvent) GetBirthTime ¶
func (x *PremiumEvent) GetBirthTime() string
func (*PremiumEvent) GetEvent ¶
func (x *PremiumEvent) GetEvent() string
func (*PremiumEvent) GetEventPred ¶
func (x *PremiumEvent) GetEventPred() string
func (*PremiumEvent) GetGroupID ¶
func (x *PremiumEvent) GetGroupID() *MulticastGroupID
func (*PremiumEvent) ProtoMessage ¶
func (*PremiumEvent) ProtoMessage()
func (*PremiumEvent) ProtoReflect ¶
func (x *PremiumEvent) ProtoReflect() protoreflect.Message
func (*PremiumEvent) Reset ¶
func (x *PremiumEvent) Reset()
func (*PremiumEvent) String ¶
func (x *PremiumEvent) String() string
type PremiumSubscription ¶
type PremiumSubscription struct { Addr string `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"` Cap int32 `protobuf:"varint,2,opt,name=cap,proto3" json:"cap,omitempty"` Region string `protobuf:"bytes,3,opt,name=region,proto3" json:"region,omitempty"` OwnPredicate string `protobuf:"bytes,4,opt,name=ownPredicate,proto3" json:"ownPredicate,omitempty"` PubPredicate string `protobuf:"bytes,5,opt,name=pubPredicate,proto3" json:"pubPredicate,omitempty"` // contains filtered or unexported fields }
func (*PremiumSubscription) Descriptor
deprecated
func (*PremiumSubscription) Descriptor() ([]byte, []int)
Deprecated: Use PremiumSubscription.ProtoReflect.Descriptor instead.
func (*PremiumSubscription) GetAddr ¶
func (x *PremiumSubscription) GetAddr() string
func (*PremiumSubscription) GetCap ¶
func (x *PremiumSubscription) GetCap() int32
func (*PremiumSubscription) GetOwnPredicate ¶
func (x *PremiumSubscription) GetOwnPredicate() string
func (*PremiumSubscription) GetPubPredicate ¶
func (x *PremiumSubscription) GetPubPredicate() string
func (*PremiumSubscription) GetRegion ¶
func (x *PremiumSubscription) GetRegion() string
func (*PremiumSubscription) ProtoMessage ¶
func (*PremiumSubscription) ProtoMessage()
func (*PremiumSubscription) ProtoReflect ¶
func (x *PremiumSubscription) ProtoReflect() protoreflect.Message
func (*PremiumSubscription) Reset ¶
func (x *PremiumSubscription) Reset()
func (*PremiumSubscription) String ¶
func (x *PremiumSubscription) String() string
type RecruitTrackerMessage ¶
type RecruitTrackerMessage struct { Leader bool `protobuf:"varint,1,opt,name=leader,proto3" json:"leader,omitempty"` RvID string `protobuf:"bytes,2,opt,name=rvID,proto3" json:"rvID,omitempty"` RvAddr string `protobuf:"bytes,3,opt,name=rvAddr,proto3" json:"rvAddr,omitempty"` // contains filtered or unexported fields }
func (*RecruitTrackerMessage) Descriptor
deprecated
func (*RecruitTrackerMessage) Descriptor() ([]byte, []int)
Deprecated: Use RecruitTrackerMessage.ProtoReflect.Descriptor instead.
func (*RecruitTrackerMessage) GetLeader ¶
func (x *RecruitTrackerMessage) GetLeader() bool
func (*RecruitTrackerMessage) GetRvAddr ¶
func (x *RecruitTrackerMessage) GetRvAddr() string
func (*RecruitTrackerMessage) GetRvID ¶
func (x *RecruitTrackerMessage) GetRvID() string
func (*RecruitTrackerMessage) ProtoMessage ¶
func (*RecruitTrackerMessage) ProtoMessage()
func (*RecruitTrackerMessage) ProtoReflect ¶
func (x *RecruitTrackerMessage) ProtoReflect() protoreflect.Message
func (*RecruitTrackerMessage) Reset ¶
func (x *RecruitTrackerMessage) Reset()
func (*RecruitTrackerMessage) String ¶
func (x *RecruitTrackerMessage) String() string
type RefreshTracker ¶
type RefreshTracker struct { Logs map[string]*EventLog `` /* 149-byte string literal not displayed */ // contains filtered or unexported fields }
func (*RefreshTracker) Descriptor
deprecated
func (*RefreshTracker) Descriptor() ([]byte, []int)
Deprecated: Use RefreshTracker.ProtoReflect.Descriptor instead.
func (*RefreshTracker) GetLogs ¶
func (x *RefreshTracker) GetLogs() map[string]*EventLog
func (*RefreshTracker) ProtoMessage ¶
func (*RefreshTracker) ProtoMessage()
func (*RefreshTracker) ProtoReflect ¶
func (x *RefreshTracker) ProtoReflect() protoreflect.Message
func (*RefreshTracker) Reset ¶
func (x *RefreshTracker) Reset()
func (*RefreshTracker) String ¶
func (x *RefreshTracker) String() string
type ScoutHubClient ¶
type ScoutHubClient interface { // ScoutSubs Subscribe(ctx context.Context, in *Subscription, opts ...grpc.CallOption) (*Ack, error) Publish(ctx context.Context, in *Event, opts ...grpc.CallOption) (*Ack, error) Notify(ctx context.Context, in *Event, opts ...grpc.CallOption) (*Ack, error) UpdateBackup(ctx context.Context, in *Update, opts ...grpc.CallOption) (*Ack, error) BackupRefresh(ctx context.Context, opts ...grpc.CallOption) (ScoutHub_BackupRefreshClient, error) LogToTracker(ctx context.Context, in *EventLog, opts ...grpc.CallOption) (*Ack, error) AckToTracker(ctx context.Context, in *EventAck, opts ...grpc.CallOption) (*Ack, error) TrackerRefresh(ctx context.Context, in *RecruitTrackerMessage, opts ...grpc.CallOption) (*Ack, error) AckUp(ctx context.Context, in *EventAck, opts ...grpc.CallOption) (*Ack, error) AckOp(ctx context.Context, in *Ack, opts ...grpc.CallOption) (*Ack, error) HelpNewRv(ctx context.Context, in *Event, opts ...grpc.CallOption) (*Ack, error) // FastDelivery AdvertiseGroup(ctx context.Context, in *AdvertRequest, opts ...grpc.CallOption) (*Ack, error) GroupSearchRequest(ctx context.Context, in *SearchRequest, opts ...grpc.CallOption) (*SearchReply, error) PremiumSubscribe(ctx context.Context, in *PremiumSubscription, opts ...grpc.CallOption) (*Ack, error) PremiumUnsubscribe(ctx context.Context, in *PremiumSubscription, opts ...grpc.CallOption) (*Ack, error) PremiumPublish(ctx context.Context, in *PremiumEvent, opts ...grpc.CallOption) (*Ack, error) RequestHelp(ctx context.Context, in *HelpRequest, opts ...grpc.CallOption) (*Ack, error) DelegateSubToHelper(ctx context.Context, in *DelegateSub, opts ...grpc.CallOption) (*Ack, error) }
ScoutHubClient is the client API for ScoutHub service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewScoutHubClient ¶
func NewScoutHubClient(cc grpc.ClientConnInterface) ScoutHubClient
type ScoutHubServer ¶
type ScoutHubServer interface { // ScoutSubs Subscribe(context.Context, *Subscription) (*Ack, error) Publish(context.Context, *Event) (*Ack, error) Notify(context.Context, *Event) (*Ack, error) UpdateBackup(context.Context, *Update) (*Ack, error) BackupRefresh(ScoutHub_BackupRefreshServer) error LogToTracker(context.Context, *EventLog) (*Ack, error) AckToTracker(context.Context, *EventAck) (*Ack, error) TrackerRefresh(context.Context, *RecruitTrackerMessage) (*Ack, error) AckUp(context.Context, *EventAck) (*Ack, error) AckOp(context.Context, *Ack) (*Ack, error) HelpNewRv(context.Context, *Event) (*Ack, error) // FastDelivery AdvertiseGroup(context.Context, *AdvertRequest) (*Ack, error) GroupSearchRequest(context.Context, *SearchRequest) (*SearchReply, error) PremiumSubscribe(context.Context, *PremiumSubscription) (*Ack, error) PremiumUnsubscribe(context.Context, *PremiumSubscription) (*Ack, error) PremiumPublish(context.Context, *PremiumEvent) (*Ack, error) RequestHelp(context.Context, *HelpRequest) (*Ack, error) DelegateSubToHelper(context.Context, *DelegateSub) (*Ack, error) // contains filtered or unexported methods }
ScoutHubServer is the server API for ScoutHub service. All implementations must embed UnimplementedScoutHubServer for forward compatibility
type SearchReply ¶
type SearchReply struct { Groups map[int32]*MulticastGroupID `` /* 154-byte string literal not displayed */ // contains filtered or unexported fields }
func (*SearchReply) Descriptor
deprecated
func (*SearchReply) Descriptor() ([]byte, []int)
Deprecated: Use SearchReply.ProtoReflect.Descriptor instead.
func (*SearchReply) GetGroups ¶
func (x *SearchReply) GetGroups() map[int32]*MulticastGroupID
func (*SearchReply) ProtoMessage ¶
func (*SearchReply) ProtoMessage()
func (*SearchReply) ProtoReflect ¶
func (x *SearchReply) ProtoReflect() protoreflect.Message
func (*SearchReply) Reset ¶
func (x *SearchReply) Reset()
func (*SearchReply) String ¶
func (x *SearchReply) String() string
type SearchRequest ¶
type SearchRequest struct { Predicate string `protobuf:"bytes,1,opt,name=predicate,proto3" json:"predicate,omitempty"` RvID string `protobuf:"bytes,2,opt,name=rvID,proto3" json:"rvID,omitempty"` // contains filtered or unexported fields }
func (*SearchRequest) Descriptor
deprecated
func (*SearchRequest) Descriptor() ([]byte, []int)
Deprecated: Use SearchRequest.ProtoReflect.Descriptor instead.
func (*SearchRequest) GetPredicate ¶
func (x *SearchRequest) GetPredicate() string
func (*SearchRequest) GetRvID ¶
func (x *SearchRequest) GetRvID() string
func (*SearchRequest) ProtoMessage ¶
func (*SearchRequest) ProtoMessage()
func (*SearchRequest) ProtoReflect ¶
func (x *SearchRequest) ProtoReflect() protoreflect.Message
func (*SearchRequest) Reset ¶
func (x *SearchRequest) Reset()
func (*SearchRequest) String ¶
func (x *SearchRequest) String() string
type Subscription ¶
type Subscription struct { PeerID string `protobuf:"bytes,1,opt,name=peerID,proto3" json:"peerID,omitempty"` Predicate string `protobuf:"bytes,2,opt,name=predicate,proto3" json:"predicate,omitempty"` RvId string `protobuf:"bytes,3,opt,name=rvId,proto3" json:"rvId,omitempty"` Shortcut string `protobuf:"bytes,4,opt,name=shortcut,proto3" json:"shortcut,omitempty"` Backups map[int32]string `` /* 156-byte string literal not displayed */ SubAddr string `protobuf:"bytes,6,opt,name=subAddr,proto3" json:"subAddr,omitempty"` IntAddr string `protobuf:"bytes,7,opt,name=intAddr,proto3" json:"intAddr,omitempty"` // contains filtered or unexported fields }
func (*Subscription) Descriptor
deprecated
func (*Subscription) Descriptor() ([]byte, []int)
Deprecated: Use Subscription.ProtoReflect.Descriptor instead.
func (*Subscription) GetBackups ¶
func (x *Subscription) GetBackups() map[int32]string
func (*Subscription) GetIntAddr ¶
func (x *Subscription) GetIntAddr() string
func (*Subscription) GetPeerID ¶
func (x *Subscription) GetPeerID() string
func (*Subscription) GetPredicate ¶
func (x *Subscription) GetPredicate() string
func (*Subscription) GetRvId ¶
func (x *Subscription) GetRvId() string
func (*Subscription) GetShortcut ¶
func (x *Subscription) GetShortcut() string
func (*Subscription) GetSubAddr ¶
func (x *Subscription) GetSubAddr() string
func (*Subscription) ProtoMessage ¶
func (*Subscription) ProtoMessage()
func (*Subscription) ProtoReflect ¶
func (x *Subscription) ProtoReflect() protoreflect.Message
func (*Subscription) Reset ¶
func (x *Subscription) Reset()
func (*Subscription) String ¶
func (x *Subscription) String() string
type UnimplementedScoutHubServer ¶
type UnimplementedScoutHubServer struct { }
UnimplementedScoutHubServer must be embedded to have forward compatible implementations.
func (UnimplementedScoutHubServer) AckToTracker ¶
func (UnimplementedScoutHubServer) AdvertiseGroup ¶
func (UnimplementedScoutHubServer) AdvertiseGroup(context.Context, *AdvertRequest) (*Ack, error)
func (UnimplementedScoutHubServer) BackupRefresh ¶
func (UnimplementedScoutHubServer) BackupRefresh(ScoutHub_BackupRefreshServer) error
func (UnimplementedScoutHubServer) DelegateSubToHelper ¶
func (UnimplementedScoutHubServer) DelegateSubToHelper(context.Context, *DelegateSub) (*Ack, error)
func (UnimplementedScoutHubServer) GroupSearchRequest ¶
func (UnimplementedScoutHubServer) GroupSearchRequest(context.Context, *SearchRequest) (*SearchReply, error)
func (UnimplementedScoutHubServer) LogToTracker ¶
func (UnimplementedScoutHubServer) PremiumPublish ¶
func (UnimplementedScoutHubServer) PremiumPublish(context.Context, *PremiumEvent) (*Ack, error)
func (UnimplementedScoutHubServer) PremiumSubscribe ¶
func (UnimplementedScoutHubServer) PremiumSubscribe(context.Context, *PremiumSubscription) (*Ack, error)
func (UnimplementedScoutHubServer) PremiumUnsubscribe ¶
func (UnimplementedScoutHubServer) PremiumUnsubscribe(context.Context, *PremiumSubscription) (*Ack, error)
func (UnimplementedScoutHubServer) RequestHelp ¶
func (UnimplementedScoutHubServer) RequestHelp(context.Context, *HelpRequest) (*Ack, error)
func (UnimplementedScoutHubServer) Subscribe ¶
func (UnimplementedScoutHubServer) Subscribe(context.Context, *Subscription) (*Ack, error)
func (UnimplementedScoutHubServer) TrackerRefresh ¶
func (UnimplementedScoutHubServer) TrackerRefresh(context.Context, *RecruitTrackerMessage) (*Ack, error)
func (UnimplementedScoutHubServer) UpdateBackup ¶
type UnsafeScoutHubServer ¶
type UnsafeScoutHubServer interface {
// contains filtered or unexported methods
}
UnsafeScoutHubServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ScoutHubServer will result in compilation errors.
type Update ¶
type Update struct { Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` Route string `protobuf:"bytes,2,opt,name=route,proto3" json:"route,omitempty"` RouteAddr string `protobuf:"bytes,3,opt,name=routeAddr,proto3" json:"routeAddr,omitempty"` Predicate string `protobuf:"bytes,4,opt,name=predicate,proto3" json:"predicate,omitempty"` Backups map[int32]string `` /* 156-byte string literal not displayed */ // contains filtered or unexported fields }
func (*Update) Descriptor
deprecated
func (*Update) GetBackups ¶ added in v0.13.110
func (*Update) GetPredicate ¶
func (*Update) GetRouteAddr ¶
func (*Update) ProtoMessage ¶
func (*Update) ProtoMessage()
func (*Update) ProtoReflect ¶
func (x *Update) ProtoReflect() protoreflect.Message