inject

package
v0.0.0-...-24bbe80 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TCPConn

type TCPConn struct {
	net.Conn
	ReadFunc            func(b []byte) (n int, err error)
	WriteFunc           func(b []byte) (n int, err error)
	CloseFunc           func() error
	SetReadDeadlineFunc func(t time.Time) error
}

SLAMService represents a fake instance of a slam service.

func NewTCPConn

func NewTCPConn() *TCPConn

NewSLAMService returns a new injected SLAM service.

func (*TCPConn) Close

func (conn *TCPConn) Close() error

func (*TCPConn) Read

func (conn *TCPConn) Read(b []byte) (n int, err error)

func (*TCPConn) SetReadDeadline

func (conn *TCPConn) SetReadDeadline(t time.Time) error

func (*TCPConn) Write

func (conn *TCPConn) Write(b []byte) (n int, err error)

Jump to

Keyboard shortcuts

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