network

package
v0.0.0-...-a142011 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Connection

type Connection interface {
	Name() string
	Request(onDone func())
	TotalRequests() uint64
	ActiveRequests() uint64
	Latency() *timeseries.Instance
}

func NewConnection

func NewConnection(name string, request func(onDone func())) Connection

type ConnectionHelper

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

func NewConnectionHelper

func NewConnectionHelper(name string) *ConnectionHelper

func (*ConnectionHelper) ActiveRequests

func (c *ConnectionHelper) ActiveRequests() uint64

func (*ConnectionHelper) Latency

func (c *ConnectionHelper) Latency() *timeseries.Instance

func (*ConnectionHelper) Name

func (c *ConnectionHelper) Name() string

func (*ConnectionHelper) Request

func (c *ConnectionHelper) Request(request func(onDone func()), onDone func())

func (*ConnectionHelper) TotalRequests

func (c *ConnectionHelper) TotalRequests() uint64

Jump to

Keyboard shortcuts

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