eventstoredb

package
v0.0.0-...-dc7611c Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EventstoreDBContainerOptionsDecorator = func(t *testing.T, ctx context.Context) interface{} {
	return func(c *config.EventStoreDbOptions, logger logger.Logger) (*config.EventStoreDbOptions, error) {
		newOption, err := NewEventstoreDBTestContainers(logger).CreatingContainerOptions(ctx, t)
		if err != nil {
			return nil, err
		}
		newOption.Subscription = c.Subscription

		return newOption, nil
	}
}
View Source
var ReplaceEventStoreContainerOptions = func(t *testing.T, options *config.EventStoreDbOptions, ctx context.Context, logger logger.Logger) error {
	newOption, err := NewEventstoreDBTestContainers(logger).CreatingContainerOptions(ctx, t)
	if err != nil {
		return err
	}

	options.HttpPort = newOption.HttpPort
	options.TcpPort = newOption.TcpPort
	options.Host = newOption.Host

	return nil
}

Functions

func NewEventstoreDBTestContainers

func NewEventstoreDBTestContainers(l logger.Logger) contracts.EventstoreDBContainer

Types

This section is empty.

Jump to

Keyboard shortcuts

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