subpub

package
v0.0.0-...-6785f5e Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IPublish

type IPublish interface {
	Publish(key uint64, parameters ...interface{}) error
}

type ISubscribe

type ISubscribe interface {
	Subscribe(key uint64, onFunction func(...interface{}) error) error
}

type SubPub

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

func NewSubPub

func NewSubPub() *SubPub

func (*SubPub) Publish

func (p *SubPub) Publish(key uint64, parameters ...interface{}) error

func (*SubPub) Subscribe

func (p *SubPub) Subscribe(key uint64, onFunction func(...interface{}) error) error

Jump to

Keyboard shortcuts

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