Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Interceptor ¶
type Interceptor struct {
// contains filtered or unexported fields
}
Interceptor is a mock Redis server that serves responses from the registry. It speaks RESP2 protocol.
func NewInterceptor ¶
func NewInterceptor(addr string, reg *registry.MockRegistry) *Interceptor
NewInterceptor creates a new Redis interceptor listening on addr.
func (*Interceptor) SetResolver ¶
func (i *Interceptor) SetResolver(resolver *interpolate.Resolver)
SetResolver stores a resolver so that ${VAR} tokens in RETURNS payload files are resolved at runtime.
Click to show internal directories.
Click to hide internal directories.