Documentation ¶
Index ¶
- Constants
- Variables
- type Node
- func (*Node) Descriptor() ([]byte, []int)
- func (m *Node) GetChildren() map[string]*Node
- func (m *Node) GetPeer() []uint64
- func (m *Node) GetQos() []int32
- func (m *Node) GetRecipients() []string
- func (*Node) ProtoMessage()
- func (m *Node) Reset()
- func (m *Node) String() string
- func (m *Node) XXX_DiscardUnknown()
- func (m *Node) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Node) XXX_Merge(src proto.Message)
- func (m *Node) XXX_Size() int
- func (m *Node) XXX_Unmarshal(b []byte) error
- type Tree
Constants ¶
View Source
const ( // MWC is the multi-level wildcard MWC = "#" // SWC is the single level wildcard SWC = "+" )
Variables ¶
View Source
var (
ErrSubscriptionNotFound = errors.New("Subscription not found")
)
Functions ¶
This section is empty.
Types ¶
type Node ¶
type Node struct { Recipients []string `protobuf:"bytes,1,rep,name=Recipients,proto3" json:"Recipients,omitempty"` Qos []int32 `protobuf:"varint,2,rep,packed,name=Qos,proto3" json:"Qos,omitempty"` Children map[string]*Node `` /* 157-byte string literal not displayed */ Peer []uint64 `protobuf:"varint,4,rep,packed,name=Peer,proto3" json:"Peer,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Node) Descriptor ¶
func (*Node) GetChildren ¶
func (*Node) GetRecipients ¶
func (*Node) ProtoMessage ¶
func (*Node) ProtoMessage()
func (*Node) XXX_DiscardUnknown ¶
func (m *Node) XXX_DiscardUnknown()
func (*Node) XXX_Unmarshal ¶
type Tree ¶
type Tree interface { Insert(peer uint64, pattern []byte, qos int32, sub string) error Remove(pattern []byte, sub string) error Match(topic []byte, peers *[]uint64, subs *[]string, qoss *[]int32) error List(topics *[][]byte, peers *[]uint64, subs *[]string, qoss *[]int32) error RemovePeer(peer uint64) int RemoveSession(id string) int Dump() ([]byte, error) Load([]byte) error Count() int }
Click to show internal directories.
Click to hide internal directories.