message

package
v0.0.0-...-7fee067 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Message

type Message struct {
	Topic     Topic
	Requestor string
	Payload   interface{}
}

func (Message) GetPayload

func (m Message) GetPayload() interface{}

func (Message) GetRequestor

func (m Message) GetRequestor() string

func (Message) GetTopic

func (m Message) GetTopic() string

func (Message) Hash

func (m Message) Hash() string

func (Message) String

func (m Message) String() string

type MessageBus

type MessageBus interface {
	Subscribe() chan Request
	Publish(msg Request)
}

type Request

type Request interface {
	GetPayload() interface{}
	GetRequestor() string
	GetTopic() string
	Hash() string
	String() string
}

type Topic

type Topic interface {
	String() string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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