topics

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2020 License: MPL-2.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

View Source
const (
	// MWC is the multi-level wildcard
	MWC = "#"

	// SWC is the single level wildcard
	SWC = "+"
)

Variables

View Source
var (
	ErrTopicNotFound = errors.New("Topic not found")
)

Functions

This section is empty.

Types

type Node

type Node struct {
	Buf                  []byte           `protobuf:"bytes,2,opt,name=Buf,proto3" json:"Buf,omitempty"`
	Children             map[string]*Node `` /* 157-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
	XXX_unrecognized     []byte           `json:"-"`
	XXX_sizecache        int32            `json:"-"`
}

func (*Node) Descriptor

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

func (*Node) GetBuf

func (m *Node) GetBuf() []byte

func (*Node) GetChildren

func (m *Node) GetChildren() map[string]*Node

func (*Node) ProtoMessage

func (*Node) ProtoMessage()

func (*Node) Reset

func (m *Node) Reset()

func (*Node) String

func (m *Node) String() string

func (*Node) XXX_DiscardUnknown

func (m *Node) XXX_DiscardUnknown()

func (*Node) XXX_Marshal

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

func (*Node) XXX_Merge

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

func (*Node) XXX_Size

func (m *Node) XXX_Size() int

func (*Node) XXX_Unmarshal

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

type Store

type Store interface {
	Insert(topic []byte, payload []byte) error
	Remove(topic []byte) error
	Match(topic []byte, msg *[][]byte) error
	Dump() ([]byte, error)
	Load([]byte) error
	Count() int
}

func NewTree

func NewTree() Store

Jump to

Keyboard shortcuts

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