subscription

package
v0.0.0-...-744ee7c Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EqualLists

func EqualLists(tb testing.TB, a, b subscription.List) bool

EqualLists is a utility function to compare subscription lists and show a pretty failure message It overcomes the verbose depth of assert.ElementsMatch spewConfig Duplicate of exchange/subscription/subscription:equalList

Types

type StrictKey

type StrictKey struct {
	*subscription.ExactKey
}

StrictKey is key type for subscriptions where all the pairs, QualifiedChannel and Params in a Subscription must match exactly

func (StrictKey) Match

func (k StrictKey) Match(eachKey subscription.MatchableKey) bool

Match implements MatchableKey Returns true if the key fields exactly matches the subscription, including all Pairs, QualifiedChannel and Params

func (StrictKey) String

func (k StrictKey) String() string

String implements Stringer; returns the Asset, Channel and Pairs Does not provide concurrency protection on the subscription it points to

Jump to

Keyboard shortcuts

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