Documentation ¶
Index ¶
- type Client
- type ClientSettings
- type Instance
- func (m *Instance) Clients() []*Client
- func (m *Instance) NewClient(s ClientSettings) *Client
- func (m *Instance) NewConnection(src *Client, dest *Node) network.Connection
- func (m *Instance) NewNodes(count int, serviceTime time.Duration, enableQueueLatency bool, ...) Nodes
- func (m *Instance) Nodes() Nodes
- func (m *Instance) ShutDown()
- type Node
- func (n *Node) ActiveRequests() uint64
- func (n *Node) Latency() *timeseries.Instance
- func (n *Node) Locality() locality.Instance
- func (n *Node) Name() string
- func (n *Node) QueueLatency() *timeseries.Instance
- func (n *Node) QueueLength() *timeseries.Instance
- func (n *Node) Request(onDone func())
- func (n *Node) ShutDown()
- func (n *Node) TotalRequests() uint64
- type Nodes
- type RouteKey
- type Settings
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) SendRequests ¶
func (c *Client) SendRequests(conn network.Connection, numRequests int, done func())
type ClientSettings ¶
type Instance ¶
type Instance struct {
// contains filtered or unexported fields
}
func (*Instance) NewClient ¶
func (m *Instance) NewClient(s ClientSettings) *Client
func (*Instance) NewConnection ¶
func (m *Instance) NewConnection(src *Client, dest *Node) network.Connection
type Node ¶
type Node struct {
// contains filtered or unexported fields
}
func (*Node) ActiveRequests ¶
func (*Node) Latency ¶
func (n *Node) Latency() *timeseries.Instance
func (*Node) QueueLatency ¶
func (n *Node) QueueLatency() *timeseries.Instance
func (*Node) QueueLength ¶
func (n *Node) QueueLength() *timeseries.Instance
func (*Node) TotalRequests ¶
type Nodes ¶
type Nodes []*Node
func (Nodes) Latency ¶
func (nodes Nodes) Latency() *timeseries.Instance
func (Nodes) QueueLatency ¶
func (nodes Nodes) QueueLatency() *timeseries.Instance
func (Nodes) TotalRequests ¶
Click to show internal directories.
Click to hide internal directories.