eventbus

package
v0.0.0-...-407c266 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2019 License: CC0-1.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const EarliestOffset string = "0"

Variables

This section is empty.

Functions

func NewServer

func NewServer() *grpc.Server

Types

type Client

type Client struct {
	Conn *grpc.ClientConn
}

func Dial

func Dial(address string) (*Client, error)

func (*Client) Publish

func (c *Client) Publish(event proto.Message) error

func (*Client) Subscribe

func (c *Client) Subscribe(offset string, handler func(proto.Message, string) error) error

Directories

Path Synopsis
cmd
eventbus command
internal
pb
Package pb is a generated protocol buffer package.
Package pb is a generated protocol buffer package.

Jump to

Keyboard shortcuts

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