machinery

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPServer

type HTTPServer struct {
	Playlist *pkg.Playlist
	// contains filtered or unexported fields
}

func NewHTTPServer

func NewHTTPServer() *HTTPServer

func (*HTTPServer) HandlePlaylist

func (s *HTTPServer) HandlePlaylist(playlist *pkg.Playlist)

func (*HTTPServer) Start

func (s *HTTPServer) Start(ctx context.Context) error

type Machine

type Machine struct {
	Router *message.Router
	PubSub *gochannel.GoChannel
}

func NewMachine

func NewMachine() (*Machine, error)

func (*Machine) Publish

func (r *Machine) Publish(topic string, messages ...*message.Message) error

Jump to

Keyboard shortcuts

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