conn

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Open

func Open(name, address string) (io.ReadWriteCloser, error)

Open connection with specific driver backend and address

func Register

func Register(name string, driver Driver)

Register new driver backend

Types

type Driver

type Driver interface {
	Open(address string) (io.ReadWriteCloser, error)
}

Driver is interface for connection backend

type DriverFunc

type DriverFunc func(address string) (io.ReadWriteCloser, error)

DriverFunc convert function into Driver like http.HandlerFunc

func (DriverFunc) Open

func (f DriverFunc) Open(address string) (io.ReadWriteCloser, error)

Open call itsself as function

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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