eventlogger

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 Config

type Config struct {
	DatabaseAddress string   `toml:"database_address"`
	DatabaseName    string   `toml:"database_name"`
	NATSClusterID   string   `toml:"nats_cluster_id"`
	NATSURL         string   `toml:"nats_url"`
	NATSClientID    string   `toml:"nats_client_id"`
	Subscribes      []string `toml:"subscribes"`
}

Config of EventLogger service.

type EventLogger

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

EventLogger defines event logging NATS subscriber service.

func NewEventLogger

func NewEventLogger(log *zap.Logger, config *Config, eventsStreaming *event.EventsStreaming, eventRepository event.Repository) *EventLogger

NewEventLogger returns new event logging service.

func (*EventLogger) Listen

func (eventLogger *EventLogger) Listen()

Listen for events to log.

Jump to

Keyboard shortcuts

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