Documentation
¶
Overview ¶
Package pb holds only Protocol Buffer definitions and generated code.
Index ¶
- Variables
- type Ack
- func (*Ack) Descriptor() ([]byte, []int)
- func (m *Ack) GetChallenge() []byte
- func (m *Ack) GetStatus() Status
- func (m *Ack) Marshal() (dAtA []byte, err error)
- func (m *Ack) MarshalTo(dAtA []byte) (int, error)
- func (m *Ack) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Ack) ProtoMessage()
- func (m *Ack) Reset()
- func (m *Ack) Size() (n int)
- func (m *Ack) String() string
- func (m *Ack) Unmarshal(dAtA []byte) error
- func (m *Ack) XXX_DiscardUnknown()
- func (m *Ack) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Ack) XXX_Merge(src proto.Message)
- func (m *Ack) XXX_Size() int
- func (m *Ack) XXX_Unmarshal(b []byte) error
- type Broadcast
- func (*Broadcast) Descriptor() ([]byte, []int)
- func (m *Broadcast) GetChallenge() []byte
- func (m *Broadcast) GetIndex() uint64
- func (m *Broadcast) GetKind() Kind
- func (m *Broadcast) GetSoc() []byte
- func (m *Broadcast) Marshal() (dAtA []byte, err error)
- func (m *Broadcast) MarshalTo(dAtA []byte) (int, error)
- func (m *Broadcast) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Broadcast) ProtoMessage()
- func (m *Broadcast) Reset()
- func (m *Broadcast) Size() (n int)
- func (m *Broadcast) String() string
- func (m *Broadcast) Unmarshal(dAtA []byte) error
- func (m *Broadcast) XXX_DiscardUnknown()
- func (m *Broadcast) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Broadcast) XXX_Merge(src proto.Message)
- func (m *Broadcast) XXX_Size() int
- func (m *Broadcast) XXX_Unmarshal(b []byte) error
- type CohortSpec
- func (*CohortSpec) Descriptor() ([]byte, []int)
- func (m *CohortSpec) GetBinding() TopicBinding
- func (m *CohortSpec) GetPrincipal() []byte
- func (m *CohortSpec) GetTopic() []byte
- func (m *CohortSpec) Marshal() (dAtA []byte, err error)
- func (m *CohortSpec) MarshalTo(dAtA []byte) (int, error)
- func (m *CohortSpec) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*CohortSpec) ProtoMessage()
- func (m *CohortSpec) Reset()
- func (m *CohortSpec) Size() (n int)
- func (m *CohortSpec) String() string
- func (m *CohortSpec) Unmarshal(dAtA []byte) error
- func (m *CohortSpec) XXX_DiscardUnknown()
- func (m *CohortSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CohortSpec) XXX_Merge(src proto.Message)
- func (m *CohortSpec) XXX_Size() int
- func (m *CohortSpec) XXX_Unmarshal(b []byte) error
- type Join
- func (*Join) Descriptor() ([]byte, []int)
- func (m *Join) GetCohort() *CohortSpec
- func (m *Join) GetOwner() []byte
- func (m *Join) Marshal() (dAtA []byte, err error)
- func (m *Join) MarshalTo(dAtA []byte) (int, error)
- func (m *Join) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Join) ProtoMessage()
- func (m *Join) Reset()
- func (m *Join) Size() (n int)
- func (m *Join) String() string
- func (m *Join) Unmarshal(dAtA []byte) error
- func (m *Join) XXX_DiscardUnknown()
- func (m *Join) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Join) XXX_Merge(src proto.Message)
- func (m *Join) XXX_Size() int
- func (m *Join) XXX_Unmarshal(b []byte) error
- type Kind
- type Roster
- func (*Roster) Descriptor() ([]byte, []int)
- func (m *Roster) GetPublishers() [][]byte
- func (m *Roster) Marshal() (dAtA []byte, err error)
- func (m *Roster) MarshalTo(dAtA []byte) (int, error)
- func (m *Roster) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Roster) ProtoMessage()
- func (m *Roster) Reset()
- func (m *Roster) Size() (n int)
- func (m *Roster) String() string
- func (m *Roster) Unmarshal(dAtA []byte) error
- func (m *Roster) XXX_DiscardUnknown()
- func (m *Roster) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Roster) XXX_Merge(src proto.Message)
- func (m *Roster) XXX_Size() int
- func (m *Roster) XXX_Unmarshal(b []byte) error
- type Status
- type TopicBinding
Constants ¶
This section is empty.
Variables ¶
var ( ErrInvalidLengthBps = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowBps = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupBps = fmt.Errorf("proto: unexpected end of group") )
var Kind_name = map[int32]string{
0: "KIND_UNSPECIFIED",
1: "DATA",
2: "AUTH",
3: "EOS",
4: "ROSTER",
}
var Kind_value = map[string]int32{
"KIND_UNSPECIFIED": 0,
"DATA": 1,
"AUTH": 2,
"EOS": 3,
"ROSTER": 4,
}
var Status_name = map[int32]string{
0: "STATUS_UNSPECIFIED",
1: "OK",
2: "FULL",
3: "REJECTED",
}
var Status_value = map[string]int32{
"STATUS_UNSPECIFIED": 0,
"OK": 1,
"FULL": 2,
"REJECTED": 3,
}
var TopicBinding_name = map[int32]string{
0: "TOPIC_BINDING_UNSPECIFIED",
1: "FEED_TOPIC",
}
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) GetChallenge ¶
func (*Ack) ProtoMessage ¶
func (*Ack) ProtoMessage()
func (*Ack) XXX_DiscardUnknown ¶
func (m *Ack) XXX_DiscardUnknown()
func (*Ack) XXX_Unmarshal ¶
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) GetChallenge ¶
func (*Broadcast) MarshalToSizedBuffer ¶
func (*Broadcast) ProtoMessage ¶
func (*Broadcast) ProtoMessage()
func (*Broadcast) XXX_DiscardUnknown ¶
func (m *Broadcast) XXX_DiscardUnknown()
func (*Broadcast) XXX_Marshal ¶
func (*Broadcast) XXX_Unmarshal ¶
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) 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) GetCohort ¶
func (m *Join) GetCohort() *CohortSpec
func (*Join) ProtoMessage ¶
func (*Join) ProtoMessage()
func (*Join) XXX_DiscardUnknown ¶
func (m *Join) XXX_DiscardUnknown()
func (*Join) XXX_Unmarshal ¶
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) GetPublishers ¶
func (*Roster) MarshalToSizedBuffer ¶
func (*Roster) ProtoMessage ¶
func (*Roster) ProtoMessage()
func (*Roster) XXX_DiscardUnknown ¶
func (m *Roster) XXX_DiscardUnknown()
func (*Roster) XXX_Marshal ¶
func (*Roster) XXX_Unmarshal ¶
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