service

package
v0.0.0-...-35a4376 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Address

func Address(port int) string

func AllocateServicePorts

func AllocateServicePorts(servicePortEnvs []string) error

func ServiceAddress

func ServiceAddress(servicePortEnv string) string

func StartServices

func StartServices(
	ctx context.Context,
	containers []testcontainers.Container,
	logger log.Logger,
	servicesInit func() error,
	serviceInits ...ServiceInit,
) ([]service.Service, error)

func StartServicesInTest

func StartServicesInTest(
	ctx context.Context,
	tb testing.TB,
	containers []testcontainers.Container,
	logger log.Logger,
	servicesInit func() error,
	serviceInits ...ServiceInit,
)

Types

type ServiceInit

type ServiceInit func(
	ctx context.Context,
	containers []testcontainers.Container,
	logger log.Logger,
) (service.Service, config.WithValidation, error)

type ServicesInit

type ServicesInit func() error

Jump to

Keyboard shortcuts

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