memory

package
v0.0.0-...-771d451 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MemoryProvider

type MemoryProvider struct {
	Msgs         map[string][]*pubsub.Msg
	ErrorHandler func(err error)
}

func (*MemoryProvider) Publish

func (mp *MemoryProvider) Publish(ctx context.Context, topic string, m *pubsub.Msg) error

func (*MemoryProvider) Shutdown

func (mp *MemoryProvider) Shutdown()

func (*MemoryProvider) Subscribe

func (mp *MemoryProvider) Subscribe(opts pubsub.HandlerOptions, h pubsub.MsgHandler)

Jump to

Keyboard shortcuts

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