topics

package
v1.54.13 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActionState

type ActionState struct {
	TopicName string
	Payload   string
	Success   bool
}

type LocalTopicsAndSubscribersService

type LocalTopicsAndSubscribersService struct {
	*topics.SubscriberManager
	// contains filtered or unexported fields
}

func NewLocalTopicsService

func NewLocalTopicsService() (*LocalTopicsAndSubscribersService, error)

Create new Dev EventService

func (*LocalTopicsAndSubscribersService) GetSubscribers

func (s *LocalTopicsAndSubscribersService) GetSubscribers() map[string]map[string]int

func (*LocalTopicsAndSubscribersService) Publish

Publish a message to a given topic

func (*LocalTopicsAndSubscribersService) Subscribe

Subscribe to a topic and handle incoming messages

func (*LocalTopicsAndSubscribersService) SubscribeToAction

func (s *LocalTopicsAndSubscribersService) SubscribeToAction(subscription func(ActionState))

func (*LocalTopicsAndSubscribersService) SubscribeToState

func (s *LocalTopicsAndSubscribersService) SubscribeToState(subscription func(State))

type State

type State = map[topicName]map[serviceName]int

Jump to

Keyboard shortcuts

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