eventstore

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: 13 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 {
	ListenAddress          string `toml:"listen_address"`
	DatabaseAddress        string `toml:"database_address"`
	DatabaseName           string `toml:"database_name"`
	NATSClusterID          string `toml:"nats_cluster_id"`
	NATSURL                string `toml:"nats_url"`
	GRPCTLSCertificateFile string `toml:"grpc_tls_certificate_file"`
	GRPCTLSKeyFile         string `toml:"grpc_tls_key_file"`
}

Config of EventStore service.

type EventStore

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

EventStore defines gRPC handler for REST API and NATS events propagator.

func NewEventStore

func NewEventStore(
	log *zap.Logger,
	config *Config,
	eventsStreaming *event.EventsStreaming,
	authDelivery *authDelivery.AuthenticateDelivery,
	employeeRepository employee.Repository,
	roleRepository role.Repository,
) *EventStore

NewEventStore returns new event store service.

func (*EventStore) Listen

func (eventStore *EventStore) Listen()

Listen to gRPC calls.

Jump to

Keyboard shortcuts

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