pubsubv1

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2026 License: MIT Imports: 6 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use Demand.ProtoReflect.Descriptor instead.

func (*Demand) GetSubscribed

func (x *Demand) GetSubscribed() bool

func (*Demand) ProtoMessage

func (*Demand) ProtoMessage()

func (*Demand) ProtoReflect

func (x *Demand) ProtoReflect() protoreflect.Message

func (*Demand) Reset

func (x *Demand) Reset()

func (*Demand) String

func (x *Demand) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Subscribe.ProtoReflect.Descriptor instead.

func (*Subscribe) ProtoMessage

func (*Subscribe) ProtoMessage()

func (*Subscribe) ProtoReflect

func (x *Subscribe) ProtoReflect() protoreflect.Message

func (*Subscribe) Reset

func (x *Subscribe) Reset()

func (*Subscribe) String

func (x *Subscribe) String() string

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

Jump to

Keyboard shortcuts

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