Documentation
¶
Index ¶
- Variables
- type Demand
- type Subscribe
- type Subscribed
- func (*Subscribed) Descriptor() ([]byte, []int)deprecated
- func (x *Subscribed) GetBuffer() uint32
- func (x *Subscribed) GetFrom() *v1.PID
- func (x *Subscribed) GetType() string
- func (*Subscribed) ProtoMessage()
- func (x *Subscribed) ProtoReflect() protoreflect.Message
- func (x *Subscribed) Reset()
- func (x *Subscribed) String() string
- type Unsubscribe
Constants ¶
This section is empty.
Variables ¶
var File_grpcproc_pubsub_v1_pubsub_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Demand ¶
type Demand struct {
Subscribed bool `protobuf:"varint,1,opt,name=subscribed,proto3" json:"subscribed,omitempty"`
// contains filtered or unexported fields
}
Demand tells the process a topic notifies whether anyone subscribes: it is sent when the first subscriber comes and when the last one leaves.
func (*Demand) Descriptor
deprecated
func (*Demand) GetSubscribed ¶
func (*Demand) ProtoMessage ¶
func (*Demand) ProtoMessage()
func (*Demand) ProtoReflect ¶
func (x *Demand) ProtoReflect() protoreflect.Message
type Subscribe ¶
type Subscribe struct {
// contains filtered or unexported fields
}
Subscribe, as a call, adds the caller to a topic. The topic sends it the events it keeps first, then answers with Subscribed; every event published after that follows, in order. A relay that has to subscribe to its topic first does so within the call's deadline.
func (*Subscribe) Descriptor
deprecated
func (*Subscribe) ProtoMessage ¶
func (*Subscribe) ProtoMessage()
func (*Subscribe) ProtoReflect ¶
func (x *Subscribe) ProtoReflect() protoreflect.Message
type Subscribed ¶
type Subscribed struct {
// The process the events come from: the topic, or the relay on the
// subscriber's node that stands in for a topic of another node.
From *v1.PID `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"`
// How many of the last events the topic keeps, for a relay to keep as many.
Buffer uint32 `protobuf:"varint,2,opt,name=buffer,proto3" json:"buffer,omitempty"`
// The full name of the message type the topic publishes, or empty when
// its events are of an interface type, for the subscriber to check.
Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"`
// contains filtered or unexported fields
}
Subscribed answers Subscribe.
func (*Subscribed) Descriptor
deprecated
func (*Subscribed) Descriptor() ([]byte, []int)
Deprecated: Use Subscribed.ProtoReflect.Descriptor instead.
func (*Subscribed) GetBuffer ¶
func (x *Subscribed) GetBuffer() uint32
func (*Subscribed) GetFrom ¶
func (x *Subscribed) GetFrom() *v1.PID
func (*Subscribed) GetType ¶
func (x *Subscribed) GetType() string
func (*Subscribed) ProtoMessage ¶
func (*Subscribed) ProtoMessage()
func (*Subscribed) ProtoReflect ¶
func (x *Subscribed) ProtoReflect() protoreflect.Message
func (*Subscribed) Reset ¶
func (x *Subscribed) Reset()
func (*Subscribed) String ¶
func (x *Subscribed) String() string
type Unsubscribe ¶
type Unsubscribe struct {
// contains filtered or unexported fields
}
Unsubscribe, sent, removes the sender from a topic.
func (*Unsubscribe) Descriptor
deprecated
func (*Unsubscribe) Descriptor() ([]byte, []int)
Deprecated: Use Unsubscribe.ProtoReflect.Descriptor instead.
func (*Unsubscribe) ProtoMessage ¶
func (*Unsubscribe) ProtoMessage()
func (*Unsubscribe) ProtoReflect ¶
func (x *Unsubscribe) ProtoReflect() protoreflect.Message
func (*Unsubscribe) Reset ¶
func (x *Unsubscribe) Reset()
func (*Unsubscribe) String ¶
func (x *Unsubscribe) String() string