mock

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetMockRedisByAddr

func GetMockRedisByAddr(addr string) *miniredis.Miniredis

func StartMockMysql

func StartMockMysql(metadata MysqlMetaData)

func StartMockRedis

func StartMockRedis(metadata RedisMetadata)

func StopMockMysql

func StopMockMysql()

func StopMockRedis

func StopMockRedis()

Types

type MysqlMetaData

type MysqlMetaData struct {
	User         string
	Password     string
	Address      string
	Databases    []string
	MemDatabases []*memory.Database // see mysql_test.go Line#53-77
}

type RedisMetadata

type RedisMetadata struct {
	User     string // optional
	Password string // optional
	Addr     string
}

Jump to

Keyboard shortcuts

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