Documentation ¶
Index ¶
- Constants
- func GetConfigTestCase(name string) (data map[string]string)
- func RandPath[T any](f ...func() T) T
- func RandPathNoResult(f ...func())
- func RandString(min, max int, typ RandStringType) string
- func RandomBool() bool
- func RandomInt(max int64) int64
- func RandomSignedInt(max int32) int64
- func RandomValue() string
- type RandStringType
- type TCPClient
- func (c *TCPClient) Close() error
- func (c *TCPClient) MustFail()
- func (c *TCPClient) MustMatch(rx string)
- func (c *TCPClient) MustRead(s string)
- func (c *TCPClient) MustReadStrings(s []string)
- func (c *TCPClient) ReadLine() (string, error)
- func (c *TCPClient) TLSState() *tls.ConnectionState
- func (c *TCPClient) Write(s string) error
- func (c *TCPClient) WriteArgs(args ...string) error
- type WedisSrv
Constants ¶
View Source
const ( DefaultContainerGracePeriod = 30 * time.Second EnvSrvBinPath = "srvBinPath" EnvDataDir = "dataDir" EnvKeepDataDir = "keepDataDir" EnvSrvPort = "srvPort" EnvConfTestCase = "confTestCase" )
Variables ¶
This section is empty.
Functions ¶
func GetConfigTestCase ¶
func RandPathNoResult ¶
func RandPathNoResult(f ...func())
func RandString ¶
func RandString(min, max int, typ RandStringType) string
func RandomBool ¶
func RandomBool() bool
func RandomSignedInt ¶
RandomSignedInt returns an integer in (-max, max)
func RandomValue ¶
func RandomValue() string
Types ¶
type TCPClient ¶
type TCPClient struct {
// contains filtered or unexported fields
}
func (*TCPClient) MustReadStrings ¶
func (*TCPClient) TLSState ¶
func (c *TCPClient) TLSState() *tls.ConnectionState
type WedisSrv ¶
type WedisSrv struct {
// contains filtered or unexported fields
}
func (*WedisSrv) InitConfigs ¶
func (*WedisSrv) NewRedisClient ¶
func (s *WedisSrv) NewRedisClient() redis.UniversalClient
func (*WedisSrv) NewTCPClient ¶
Click to show internal directories.
Click to hide internal directories.