conn

package
v0.4.15 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2020 License: MIT Imports: 7 Imported by: 0

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