bus

package
v0.0.0-...-acf58c8 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2021 License: Apache-2.0 Imports: 5 Imported by: 5

Documentation

Index

Constants

View Source
const (
	ErrInvalidEventPayload
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ActionDispatcher

type ActionDispatcher func(context.Context, *coreRpc.EventRequest) (map[string]interface{}, error)

type CoreBus

type CoreBus struct {
	*coreRpc.UnimplementedBusServiceServer
	// contains filtered or unexported fields
}

func NewCoreBus

func NewCoreBus() *CoreBus

func (*CoreBus) Broadcast

func (*CoreBus) RegisterAction

func (c *CoreBus) RegisterAction(name string, in ActionDispatcher)

type Error

type Error struct {
	Reason ErrorReason
	Err    error
}

func (Error) Error

func (err Error) Error() string

type ErrorReason

type ErrorReason int

Jump to

Keyboard shortcuts

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