fakeredis

package
v0.0.0-...-5e22790 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeRedisServer

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

func New

func New(name string) *FakeRedisServer

func Start

func Start(name, network string) *FakeRedisServer

func StartTLS

func StartTLS(name, network string) *FakeRedisServer

func (*FakeRedisServer) Addr

func (s *FakeRedisServer) Addr() net.Addr

func (*FakeRedisServer) IsShuttingDown

func (s *FakeRedisServer) IsShuttingDown() bool

func (*FakeRedisServer) LastRequest

func (s *FakeRedisServer) LastRequest() *resp.Msg

func (*FakeRedisServer) RecordRequest

func (s *FakeRedisServer) RecordRequest(req *resp.Msg)

func (*FakeRedisServer) ReqCnt

func (s *FakeRedisServer) ReqCnt() int

func (*FakeRedisServer) Requests

func (s *FakeRedisServer) Requests() []*resp.Msg

func (*FakeRedisServer) Run

func (s *FakeRedisServer) Run(startedChan chan struct{}, network string, useTLS bool)

func (*FakeRedisServer) Stop

func (s *FakeRedisServer) Stop()

Jump to

Keyboard shortcuts

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