testmgrsrv

package
v0.0.0-...-910d698 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2023 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Home

func Home(w http.ResponseWriter, r *http.Request)

Types

type Handler

type Handler struct {
	http.Handler

	Nodes map[string](dtype.NodeInfo)

	TC    *TestConfig
	Ready bool
	// contains filtered or unexported fields
}

func NewHandler

func NewHandler(mode string, path string) *Handler

func (*Handler) KillProcess

func (h *Handler) KillProcess()

func (*Handler) SimulateAccessPatternProc

func (h *Handler) SimulateAccessPatternProc()

func (*Handler) SimulateTransactionProc

func (h *Handler) SimulateTransactionProc()

func (*Handler) StartService

func (h *Handler) StartService(port int)

func (*Handler) UpdateTestStatus

func (h *Handler) UpdateTestStatus(ready bool)

type Test

type Test struct {
	Start bool `json:"start"`
}

type TestConfig

type TestConfig struct {
	Nodes *map[string]dtype.NodeInfo
	// contains filtered or unexported fields
}

func NewTestConfig

func NewTestConfig(db dbagent.DBAgent, nodes *map[string]dtype.NodeInfo) *TestConfig

func (*TestConfig) GetANwithRandom

func (tc *TestConfig) GetANwithRandom() *dtype.NodeInfo

Select transaction Randomly

func (*TestConfig) GetANwithTimeWeight

func (tc *TestConfig) GetANwithTimeWeight() *dtype.NodeInfo

Select latest transactions more

Jump to

Keyboard shortcuts

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