Documentation ¶
Index ¶
- Constants
- func Instances(ctx context.Context) ([]database.Info, error)
- type Option
- type Redis
- func (p *Redis) CreateDB(ctx context.Context, req *database.CreateDBRequest) (*database.CreateDBResponse, error)
- func (p *Redis) RemoveDB(ctx context.Context, uri string) error
- func (p *Redis) Start(ctx context.Context, detach bool) error
- func (p *Redis) Stop(ctx context.Context) error
- func (p *Redis) URI() string
- func (p *Redis) WaitForStart(ctx context.Context, timeout time.Duration) error
Constants ¶
View Source
const ( // DefaultPort is the default port for redis DefaultPort = 16379 // DefaultUser is the default user for redis DefaultUser = "" // DefaultPass is the default password for redis DefaultPass = "" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶
type Option func(*config) error
func WithLogger ¶
func WithVersion ¶
WithVersion applied selected postgres version to config
type Redis ¶
type Redis struct {
// contains filtered or unexported fields
}
Redis is a redis database
func (*Redis) CreateDB ¶ added in v0.4.0
func (p *Redis) CreateDB(ctx context.Context, req *database.CreateDBRequest) (*database.CreateDBResponse, error)
CreateDB creates a new database
Click to show internal directories.
Click to hide internal directories.