eventing_service

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() (sdk.EventService, error)

Create new Dev EventService

func NewWithClientAndSubs

func NewWithClientAndSubs(client LocalHttpEventingClient, subs map[string][]string) (sdk.EventService, error)

Types

type LocalEventService

type LocalEventService struct {
	sdk.UnimplementedEventingPlugin
	// 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 *sdk.NitricEvent) error

Publish a message to a given topic

type LocalHttpEventingClient

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

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

Jump to

Keyboard shortcuts

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