connection

package
v0.0.0-...-aebc6d4 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2023 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 Connection

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

func New

func New(addr string) (*Connection, error)

func (Connection) Addr

func (c Connection) Addr() string

func (Connection) Close

func (c Connection) Close() error

func (Connection) Connected

func (c Connection) Connected() bool

func (Connection) Echo

func (c Connection) Echo() bool

func (Connection) Peek

func (c Connection) Peek(n int) ([]byte, error)

func (Connection) Read

func (c Connection) Read(p []byte) (int, error)

func (Connection) Write

func (c Connection) Write(p []byte) (int, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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