redisdocker

package
v0.0.0-...-f5c3624 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Container

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

Container represents a Docker container running a PostgreSQL image.

func NewContainer

func NewContainer() (
	*Container,
	error,
)

NewContainer starts a new redis client in a docker container.

func (Container) Close

func (c Container) Close() error

Close removes the Docker container.

func (Container) Port

func (c Container) Port() string

Port returns the container host port mapped to the database running inside it.

Jump to

Keyboard shortcuts

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