event

package
v0.0.0-...-718b68f Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventsStreaming

type EventsStreaming struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func NewEventsStreaming

func NewEventsStreaming() *EventsStreaming

func (*EventsStreaming) Connect

func (es *EventsStreaming) Connect(clusterID string, options ...stan.Option) (err error)

func (*EventsStreaming) NATS

func (es *EventsStreaming) NATS() stan.Conn

NATS returns the current NATS connection.

func (*EventsStreaming) Publish

func (es *EventsStreaming) Publish(event *pb.Event) error

type Repository

type Repository interface {
	New(ctx context.Context, event *entities.Event) error
}

Repository of events.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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