matching

package
v0.0.0-...-851f1fa Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Fascriber

type Fascriber struct {
	Notification NotificationType
	ClientId     string
}

func (Fascriber) ConfirmSubscription

func (f Fascriber) ConfirmSubscription()

type Matcher

type Matcher interface {
	// Subscribe adds the Subscriber to the topic and returns a Subscription.
	Subscribe(topic string, sub Subscriber) (*Subscription, error)

	// Unsubscribe removes the Subscription.
	Unsubscribe(sub *Subscription)

	// Lookup returns the Subscribers for the given topic.
	Lookup(topic string) []Subscriber
}

Matcher contains topic subscriptions and performs matches on them.

func NewCSTrieMatcher

func NewCSTrieMatcher() Matcher

type NotificationType

type NotificationType string
const (
	Http      NotificationType = "Http"
	WebSocket                  = "WS"
)

type Subscriber

type Subscriber interface {
}

Subscriber is a value associated with a subscription.

type Subscription

type Subscription struct {
	// contains filtered or unexported fields
}

Subscription represents a topic subscription.

Jump to

Keyboard shortcuts

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