conn

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2020 License: MIT Imports: 7 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

DO NOT EDIT! Code generated.

Index

Constants

This section is empty.

Variables

View Source
var ConnNone _ConnNone

Functions

func ConnGet

func ConnGet(ctx context.Context, name string, defaults net.Conn) net.Conn

func ConnPut

func ConnPut(ctx context.Context, name string, def net.Conn) net.Conn

func NewConnDefWithConfig

func NewConnDefWithConfig(ctx context.Context, conf *Config) net.Conn

func NewConnRefWithConfig

func NewConnRefWithConfig(ctx context.Context, conf *Config) net.Conn

Types

type Config

type Config struct {
	Name string
	Def  net.Conn `json:",omitempty"`
}

type Conn

type Conn struct {
	Name string
	Def  net.Conn
	Ctx  context.Context
}

func (*Conn) Close

func (o *Conn) Close() error

func (*Conn) LocalAddr

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

func (*Conn) Read

func (o *Conn) Read(a []uint8) (int, error)

func (*Conn) RemoteAddr

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

func (*Conn) SetDeadline

func (o *Conn) SetDeadline(time time.Time) error

func (*Conn) SetReadDeadline

func (o *Conn) SetReadDeadline(time time.Time) error

func (*Conn) SetWriteDeadline

func (o *Conn) SetWriteDeadline(time time.Time) error

func (*Conn) Write

func (o *Conn) Write(a []uint8) (int, error)

Jump to

Keyboard shortcuts

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