localmem

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 5, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SharedMem

type SharedMem struct {
	// contains filtered or unexported fields
}

func New

func New(logger *logrus.Logger) (*SharedMem, error)

func (*SharedMem) AsyncPublishMessage

func (m *SharedMem) AsyncPublishMessage(data domain.Message) error

func (*SharedMem) AsyncWriteEntity

func (m *SharedMem) AsyncWriteEntity(data domain.Entity) error

func (*SharedMem) NewSubscriber

func (m *SharedMem) NewSubscriber() (sharedmem.Subscriber, error)

func (*SharedMem) SyncReadEntity

func (m *SharedMem) SyncReadEntity() (domain.Entity, error)

type Subscriber

type Subscriber struct {
	// contains filtered or unexported fields
}

func (*Subscriber) SyncSubscribeMessage

func (sub *Subscriber) SyncSubscribeMessage() (domain.Message, error)

Jump to

Keyboard shortcuts

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