sub

package
v0.0.51 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RECV_GET_ACK = "RECV_GET_ACK"
	PEERS_PRUNED = "PEERS_PRUNED"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type SubscriptionService

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

func NewSubscriptionService

func NewSubscriptionService(bufferSize int) *SubscriptionService

func (*SubscriptionService) Publish

func (s *SubscriptionService) Publish(topic string, event interface{})

func (*SubscriptionService) Subscribe

func (s *SubscriptionService) Subscribe(topic string) chan interface{}

func (*SubscriptionService) Unsubscribe

func (s *SubscriptionService) Unsubscribe(topic string, ch chan interface{})

type Topic

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

Jump to

Keyboard shortcuts

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