metricconn

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 30, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddFreeConnections

func AddFreeConnections(n int64) int64

func AddReusedConnections

func AddReusedConnections(n int64) int64

func LoadFreeConnections

func LoadFreeConnections(n int64) int64

func LoadReusedConnections

func LoadReusedConnections(n int64) int64

Types

type Conn

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

func New

func New(conn net.Conn, now int64) *Conn

func (*Conn) Close

func (s *Conn) Close() error

func (*Conn) ConnectionState

func (s *Conn) ConnectionState() tls.ConnectionState

func (*Conn) File

func (s *Conn) File() (*os.File, error)

File returns a copy of object's file descriptor.

func (*Conn) GetCreated

func (s *Conn) GetCreated() int64

func (*Conn) GetLasted

func (s *Conn) GetLasted() int64

func (*Conn) GetRawConn

func (s *Conn) GetRawConn() net.Conn

func (*Conn) GetUsed

func (s *Conn) GetUsed() int64

func (*Conn) IncrUsed

func (s *Conn) IncrUsed()

func (*Conn) LocalAddr

func (s *Conn) LocalAddr() net.Addr

func (*Conn) Read

func (s *Conn) Read(b []byte) (n int, err error)

func (*Conn) RemoteAddr

func (s *Conn) RemoteAddr() net.Addr

func (*Conn) SetDeadline

func (s *Conn) SetDeadline(t time.Time) error

func (*Conn) SetReadDeadline

func (s *Conn) SetReadDeadline(t time.Time) error

func (*Conn) SetWriteDeadline

func (s *Conn) SetWriteDeadline(t time.Time) error

func (*Conn) SyscallConn

func (s *Conn) SyscallConn() (syscall.RawConn, error)

func (*Conn) Write

func (s *Conn) Write(b []byte) (n int, err error)

type TLSConnectionStater

type TLSConnectionStater interface {
	ConnectionState() tls.ConnectionState
}

Jump to

Keyboard shortcuts

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