essentials

package
v2.1.7 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2022 License: MIT Imports: 2 Imported by: 1

Documentation

Overview

This is a minimal package that contains _essentials_ of mtglib and its complimentary packages. This is mostly required to comply some interfaces between mtglib and its internals to avoid circular dependencies.

This package should contain only bare minimum and mostly technical.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CloseableReader

type CloseableReader interface {
	io.Reader
	CloseRead() error
}

CloseableReader is an io.Reader interface that can close its reading end.

type CloseableWriter

type CloseableWriter interface {
	io.Writer
	CloseWrite() error
}

CloseableWriter is an io.Writer that can close its writing end.

type Conn

type Conn interface {
	net.Conn
	CloseableReader
	CloseableWriter
}

Conn is an extension of net.Conn that can close its ends. This mostly implies TCP connections.

Jump to

Keyboard shortcuts

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