Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrResultNotFound = errors.New("result not found")
)
Functions ¶
func MustGetZbusClient ¶
MustGetZbusClient gets zbus client from the given context
func TryGetZbusClient ¶
TryGetZbusClient tries to get zbus client from the given context
Types ¶
type PerformanceMonitor ¶
type PerformanceMonitor struct {
// contains filtered or unexported fields
}
PerformanceMonitor holds the module data
func NewPerformanceMonitor ¶
func NewPerformanceMonitor(redisAddr string) (*PerformanceMonitor, error)
NewPerformanceMonitor returns PerformanceMonitor instance
func (*PerformanceMonitor) AddTask ¶
func (pm *PerformanceMonitor) AddTask(task Task)
AddTask a simple helper method to add new tasks
func (*PerformanceMonitor) Get ¶
func (pm *PerformanceMonitor) Get(taskName string) (pkg.TaskResult, error)
Get gets data from redis
func (*PerformanceMonitor) GetAll ¶
func (pm *PerformanceMonitor) GetAll() ([]pkg.TaskResult, error)
GetAll gets the results for all the tests with moduleName as prefix
Click to show internal directories.
Click to hide internal directories.