events_service

package
v0.12.0-rc.7 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() (events.EventService, error)

Create new Dev EventService

func NewWithClientAndSubs

func NewWithClientAndSubs(client LocalHttpeventsClient, subs map[string][]string) (events.EventService, error)

Types

type LocalEventService

type LocalEventService struct {
	events.UnimplementedeventsPlugin
	// contains filtered or unexported fields
}

func (*LocalEventService) ListTopics

func (s *LocalEventService) ListTopics() ([]string, error)

Get a list of available topics

func (*LocalEventService) Publish

func (s *LocalEventService) Publish(topic string, event *events.NitricEvent) error

Publish a message to a given topic

type LocalHttpeventsClient

type LocalHttpeventsClient interface {
	Do(req *http.Request) (*http.Response, error)
}

Interface for methods utilised by The local pubsub plugin for http events

Jump to

Keyboard shortcuts

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