handlers

package
v1.0.1-0...-a84aae9 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetGlobalConfig

func GetGlobalConfig(key string) interface{}

GetGlobalConfig returns the value of globalConfig.gMap

func SetGlobalConfigMap

func SetGlobalConfigMap(key string, value interface{})

SetGlobalConfigMap will set a map key/value into GlobalConfigMap.

Types

type DefaultHandler

type DefaultHandler struct {
}

func (*DefaultHandler) GetInstance

func (this *DefaultHandler) GetInstance(xesRedis redo.XesRedisBase) (instance string)

[Redis] cache=127.0.0.1:6379 GetInstance returns redis client config's key ,such as "cache". GetInstance will set redis server address into redis client.

func (*DefaultHandler) GetKey

func (this *DefaultHandler) GetKey(xesRedis redo.XesRedisBase) (ret string)

GetKey returns redis key and params (If it's a stress test scenario,return benchmark_keyName+params)

type ShardingHandler

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

func (*ShardingHandler) GetInstance

func (this *ShardingHandler) GetInstance(xesRedis redo.XesRedisBase) (instance string)

GetInstance returns redis client config's key.and setting redis server Host into redis client.

func (*ShardingHandler) GetKey

func (this *ShardingHandler) GetKey(xesRedis redo.XesRedisBase) (ret string)

GetKey returns redis key and params (If it's a stress test scenario,return benchmark_keyName+params )

func (*ShardingHandler) SetCluster

func (this *ShardingHandler) SetCluster(cluster string)

type SimpleHandler

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

func (*SimpleHandler) GetInstance

func (this *SimpleHandler) GetInstance(xesRedis redo.XesRedisBase) (instance string)

GetInstance returns redis client config's key.and setting redis server Host into redis client.

func (*SimpleHandler) GetKey

func (this *SimpleHandler) GetKey(xesRedis redo.XesRedisBase) (ret string)

GetKey returns redis key and params (If it's a stress test scenario,return benchmark_keyName+params)

func (*SimpleHandler) SetInstance

func (this *SimpleHandler) SetInstance(instance string)

Jump to

Keyboard shortcuts

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