pb

package
v2.8.4-rc1 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2026 License: BSD-3-Clause Imports: 5 Imported by: 0 modules, 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

Overview

Package pb holds only Protocol Buffer definitions and generated code.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthBps        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowBps          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupBps = fmt.Errorf("proto: unexpected end of group")
)
View Source
var Kind_name = map[int32]string{
	0: "KIND_UNSPECIFIED",
	1: "DATA",
	2: "AUTH",
	3: "EOS",
	4: "ROSTER",
}
View Source
var Kind_value = map[string]int32{
	"KIND_UNSPECIFIED": 0,
	"DATA":             1,
	"AUTH":             2,
	"EOS":              3,
	"ROSTER":           4,
}
View Source
var Status_name = map[int32]string{
	0: "STATUS_UNSPECIFIED",
	1: "OK",
	2: "FULL",
	3: "REJECTED",
}
View Source
var Status_value = map[string]int32{
	"STATUS_UNSPECIFIED": 0,
	"OK":                 1,
	"FULL":               2,
	"REJECTED":           3,
}
View Source
var TopicBinding_name = map[int32]string{
	0: "TOPIC_BINDING_UNSPECIFIED",
	1: "FEED_TOPIC",
}
View Source
var TopicBinding_value = map[string]int32{
	"TOPIC_BINDING_UNSPECIFIED": 0,
	"FEED_TOPIC":                1,
}

Functions

This section is empty.

Types

type Ack

type Ack struct {
	Status    Status `protobuf:"varint,1,opt,name=status,proto3,enum=bps.Status" json:"status,omitempty"`
	Challenge []byte `protobuf:"bytes,2,opt,name=challenge,proto3" json:"challenge,omitempty"`
}

Broker -> peer, answering Join. A non-OK Ack ends the stream.

func (*Ack) Descriptor

func (*Ack) Descriptor() ([]byte, []int)

func (*Ack) GetChallenge

func (m *Ack) GetChallenge() []byte

func (*Ack) GetStatus

func (m *Ack) GetStatus() Status

func (*Ack) Marshal

func (m *Ack) Marshal() (dAtA []byte, err error)

func (*Ack) MarshalTo

func (m *Ack) MarshalTo(dAtA []byte) (int, error)

func (*Ack) MarshalToSizedBuffer

func (m *Ack) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Ack) ProtoMessage

func (*Ack) ProtoMessage()

func (*Ack) Reset

func (m *Ack) Reset()

func (*Ack) Size

func (m *Ack) Size() (n int)

func (*Ack) String

func (m *Ack) String() string

func (*Ack) Unmarshal

func (m *Ack) Unmarshal(dAtA []byte) error

func (*Ack) XXX_DiscardUnknown

func (m *Ack) XXX_DiscardUnknown()

func (*Ack) XXX_Marshal

func (m *Ack) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Ack) XXX_Merge

func (m *Ack) XXX_Merge(src proto.Message)

func (*Ack) XXX_Size

func (m *Ack) XXX_Size() int

func (*Ack) XXX_Unmarshal

func (m *Ack) XXX_Unmarshal(b []byte) error

type Broadcast

type Broadcast struct {
	Soc       []byte `protobuf:"bytes,1,opt,name=soc,proto3" json:"soc,omitempty"`
	Kind      Kind   `protobuf:"varint,2,opt,name=kind,proto3,enum=bps.Kind" json:"kind,omitempty"`
	Challenge []byte `protobuf:"bytes,3,opt,name=challenge,proto3" json:"challenge,omitempty"`
	Index     uint64 `protobuf:"varint,4,opt,name=index,proto3" json:"index,omitempty"`
}

Every frame after the handshake. soc is the index-th update of the session feed: a single-owner chunk whose id is derived from kind, challenge and index (see bps.ID).

func (*Broadcast) Descriptor

func (*Broadcast) Descriptor() ([]byte, []int)

func (*Broadcast) GetChallenge

func (m *Broadcast) GetChallenge() []byte

func (*Broadcast) GetIndex

func (m *Broadcast) GetIndex() uint64

func (*Broadcast) GetKind

func (m *Broadcast) GetKind() Kind

func (*Broadcast) GetSoc

func (m *Broadcast) GetSoc() []byte

func (*Broadcast) Marshal

func (m *Broadcast) Marshal() (dAtA []byte, err error)

func (*Broadcast) MarshalTo

func (m *Broadcast) MarshalTo(dAtA []byte) (int, error)

func (*Broadcast) MarshalToSizedBuffer

func (m *Broadcast) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Broadcast) ProtoMessage

func (*Broadcast) ProtoMessage()

func (*Broadcast) Reset

func (m *Broadcast) Reset()

func (*Broadcast) Size

func (m *Broadcast) Size() (n int)

func (*Broadcast) String

func (m *Broadcast) String() string

func (*Broadcast) Unmarshal

func (m *Broadcast) Unmarshal(dAtA []byte) error

func (*Broadcast) XXX_DiscardUnknown

func (m *Broadcast) XXX_DiscardUnknown()

func (*Broadcast) XXX_Marshal

func (m *Broadcast) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Broadcast) XXX_Merge

func (m *Broadcast) XXX_Merge(src proto.Message)

func (*Broadcast) XXX_Size

func (m *Broadcast) XXX_Size() int

func (*Broadcast) XXX_Unmarshal

func (m *Broadcast) XXX_Unmarshal(b []byte) error

type CohortSpec

type CohortSpec struct {
	Topic     []byte       `protobuf:"bytes,1,opt,name=topic,proto3" json:"topic,omitempty"`
	Binding   TopicBinding `protobuf:"varint,2,opt,name=binding,proto3,enum=bps.TopicBinding" json:"binding,omitempty"`
	Principal []byte       `protobuf:"bytes,3,opt,name=principal,proto3" json:"principal,omitempty"`
}

The cohort's identity, keyed by its canonical serialisation.

func (*CohortSpec) Descriptor

func (*CohortSpec) Descriptor() ([]byte, []int)

func (*CohortSpec) GetBinding

func (m *CohortSpec) GetBinding() TopicBinding

func (*CohortSpec) GetPrincipal

func (m *CohortSpec) GetPrincipal() []byte

func (*CohortSpec) GetTopic

func (m *CohortSpec) GetTopic() []byte

func (*CohortSpec) Marshal

func (m *CohortSpec) Marshal() (dAtA []byte, err error)

func (*CohortSpec) MarshalTo

func (m *CohortSpec) MarshalTo(dAtA []byte) (int, error)

func (*CohortSpec) MarshalToSizedBuffer

func (m *CohortSpec) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*CohortSpec) ProtoMessage

func (*CohortSpec) ProtoMessage()

func (*CohortSpec) Reset

func (m *CohortSpec) Reset()

func (*CohortSpec) Size

func (m *CohortSpec) Size() (n int)

func (*CohortSpec) String

func (m *CohortSpec) String() string

func (*CohortSpec) Unmarshal

func (m *CohortSpec) Unmarshal(dAtA []byte) error

func (*CohortSpec) XXX_DiscardUnknown

func (m *CohortSpec) XXX_DiscardUnknown()

func (*CohortSpec) XXX_Marshal

func (m *CohortSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CohortSpec) XXX_Merge

func (m *CohortSpec) XXX_Merge(src proto.Message)

func (*CohortSpec) XXX_Size

func (m *CohortSpec) XXX_Size() int

func (*CohortSpec) XXX_Unmarshal

func (m *CohortSpec) XXX_Unmarshal(b []byte) error

type Join

type Join struct {
	Cohort *CohortSpec `protobuf:"bytes,1,opt,name=cohort,proto3" json:"cohort,omitempty"`
	Owner  []byte      `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"`
}

Peer -> broker: the first frame on a fresh stream.

func (*Join) Descriptor

func (*Join) Descriptor() ([]byte, []int)

func (*Join) GetCohort

func (m *Join) GetCohort() *CohortSpec

func (*Join) GetOwner

func (m *Join) GetOwner() []byte

func (*Join) Marshal

func (m *Join) Marshal() (dAtA []byte, err error)

func (*Join) MarshalTo

func (m *Join) MarshalTo(dAtA []byte) (int, error)

func (*Join) MarshalToSizedBuffer

func (m *Join) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Join) ProtoMessage

func (*Join) ProtoMessage()

func (*Join) Reset

func (m *Join) Reset()

func (*Join) Size

func (m *Join) Size() (n int)

func (*Join) String

func (m *Join) String() string

func (*Join) Unmarshal

func (m *Join) Unmarshal(dAtA []byte) error

func (*Join) XXX_DiscardUnknown

func (m *Join) XXX_DiscardUnknown()

func (*Join) XXX_Marshal

func (m *Join) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Join) XXX_Merge

func (m *Join) XXX_Merge(src proto.Message)

func (*Join) XXX_Size

func (m *Join) XXX_Size() int

func (*Join) XXX_Unmarshal

func (m *Join) XXX_Unmarshal(b []byte) error

type Kind

type Kind int32

What a chunk on this wire is.

const (
	Kind_KIND_UNSPECIFIED Kind = 0
	Kind_DATA             Kind = 1
	Kind_AUTH             Kind = 2
	// a pending stream, or a spectator stream a delivered roster names;
	// a heartbeat on a publisher stream; never delivered
	Kind_EOS    Kind = 3
	Kind_ROSTER Kind = 4
)

func (Kind) EnumDescriptor

func (Kind) EnumDescriptor() ([]byte, []int)

func (Kind) String

func (x Kind) String() string

type Roster

type Roster struct {
	Publishers [][]byte `protobuf:"bytes,1,rep,name=publishers,proto3" json:"publishers,omitempty"`
}

The payload of a ROSTER chunk.

func (*Roster) Descriptor

func (*Roster) Descriptor() ([]byte, []int)

func (*Roster) GetPublishers

func (m *Roster) GetPublishers() [][]byte

func (*Roster) Marshal

func (m *Roster) Marshal() (dAtA []byte, err error)

func (*Roster) MarshalTo

func (m *Roster) MarshalTo(dAtA []byte) (int, error)

func (*Roster) MarshalToSizedBuffer

func (m *Roster) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Roster) ProtoMessage

func (*Roster) ProtoMessage()

func (*Roster) Reset

func (m *Roster) Reset()

func (*Roster) Size

func (m *Roster) Size() (n int)

func (*Roster) String

func (m *Roster) String() string

func (*Roster) Unmarshal

func (m *Roster) Unmarshal(dAtA []byte) error

func (*Roster) XXX_DiscardUnknown

func (m *Roster) XXX_DiscardUnknown()

func (*Roster) XXX_Marshal

func (m *Roster) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Roster) XXX_Merge

func (m *Roster) XXX_Merge(src proto.Message)

func (*Roster) XXX_Size

func (m *Roster) XXX_Size() int

func (*Roster) XXX_Unmarshal

func (m *Roster) XXX_Unmarshal(b []byte) error

type Status

type Status int32
const (
	Status_STATUS_UNSPECIFIED Status = 0
	Status_OK                 Status = 1
	Status_FULL               Status = 2
	Status_REJECTED           Status = 3
)

func (Status) EnumDescriptor

func (Status) EnumDescriptor() ([]byte, []int)

func (Status) String

func (x Status) String() string

type TopicBinding

type TopicBinding int32

What the topic binds to. One binding.

const (
	TopicBinding_TOPIC_BINDING_UNSPECIFIED TopicBinding = 0
	TopicBinding_FEED_TOPIC                TopicBinding = 1
)

func (TopicBinding) EnumDescriptor

func (TopicBinding) EnumDescriptor() ([]byte, []int)

func (TopicBinding) String

func (x TopicBinding) String() string

Jump to

Keyboard shortcuts

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