events

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2018 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsEvent

func IsEvent(m *eventsapi.Message, v interface{}) bool

IsEvent returns true if the type of the message data is the same as v

func MarshalEvent

func MarshalEvent(v interface{}) (*ptypes.Any, error)

MarshalEvent marshals and event for transport

func PublishEvent

func PublishEvent(c *client.Client, subject string, v interface{}) error

PublishEvent publishes the event to the subject using the specified client

func UnmarshalEvent

func UnmarshalEvent(m *eventsapi.Message) (interface{}, error)

UnmarshalEvent unmarshals an event from transport

Types

This section is empty.

Jump to

Keyboard shortcuts

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