Documentation ¶
Index ¶
- type FakeRedisServer
- func (s *FakeRedisServer) Addr() net.Addr
- func (s *FakeRedisServer) IsShuttingDown() bool
- func (s *FakeRedisServer) LastRequest() *resp.Msg
- func (s *FakeRedisServer) RecordRequest(req *resp.Msg)
- func (s *FakeRedisServer) ReqCnt() int
- func (s *FakeRedisServer) Requests() []*resp.Msg
- func (s *FakeRedisServer) Run(startedChan chan struct{}, network string, useTLS bool)
- func (s *FakeRedisServer) Stop()
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()
Click to show internal directories.
Click to hide internal directories.