pingconfig

package
v10.319.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2021 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 PingConfig

type PingConfig struct {
	StartTime time.Time

	sync.RWMutex
	// contains filtered or unexported fields
}

PingConfig holds ping configuration for this connection.

func New

func New() *PingConfig

New returns a new locked access to PingConfig handle.

func (*PingConfig) ApplicationListening

func (p *PingConfig) ApplicationListening() bool

ApplicationListening returns true if an app is listening.

func (*PingConfig) IterationID

func (p *PingConfig) IterationID() int

IterationID returns iteration ID.

func (*PingConfig) PingID

func (p *PingConfig) PingID() string

PingID returns ping ID.

func (*PingConfig) PingReport

func (p *PingConfig) PingReport() *collector.PingReport

PingReport returns ping report.

func (*PingConfig) SeqNum

func (p *PingConfig) SeqNum() uint32

SeqNum returns tcp sequence number.

func (*PingConfig) SetApplicationListening

func (p *PingConfig) SetApplicationListening(appListening bool)

SetApplicationListening sets appListening.

func (*PingConfig) SetIterationID

func (p *PingConfig) SetIterationID(iterationID int)

SetIterationID sets iteration ID.

func (*PingConfig) SetPingID

func (p *PingConfig) SetPingID(pingID string)

SetPingID sets ping ID.

func (*PingConfig) SetPingReport

func (p *PingConfig) SetPingReport(pingReport *collector.PingReport)

SetPingReport sets ping report.

func (*PingConfig) SetSeqNum

func (p *PingConfig) SetSeqNum(seqNum uint32)

SetSeqNum sets tcp sequence number.

func (*PingConfig) SetSocketClosed

func (p *PingConfig) SetSocketClosed(socketClosed bool)

SetSocketClosed sets socket closed.

func (*PingConfig) SetSocketFd

func (p *PingConfig) SetSocketFd(socketFd uintptr)

SetSocketFd sets socket file descriptor.

func (*PingConfig) SocketClosed

func (p *PingConfig) SocketClosed() bool

SocketClosed returns socket closed.

func (*PingConfig) SocketFd

func (p *PingConfig) SocketFd() uintptr

SocketFd returns socket file descriptor.

Jump to

Keyboard shortcuts

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