net

package
v0.0.0-...-6d4bf48 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2023 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultTLSConfig

func DefaultTLSConfig() *tls.Config

DefaultTLSConfig returns a tls.Config object with system default security restrictions This is from gtank's cryptopasta defaults https://github.com/gtank/cryptopasta

func LookupHost

func LookupHost(host string) (addrs []string, err error)

LookupHost looks up the given host using etcd or the local resolver. It returns an array of that host's addresses See LookupHost in packages chain/net/etcdname and net for more.

Types

type Dialer

type Dialer net.Dialer

Dialer satisfies the interface pq.Dialer, using chain/net/etcdname for hostname lookups in addition to the local resolver.

func (*Dialer) Dial

func (d *Dialer) Dial(network, addr string) (net.Conn, error)

Dial connects to the address on the named network. Hostname lookup for addr uses package etcdname in addition to the local resolver. See func Dial for a description of the network and addr parameters.

func (*Dialer) DialTimeout

func (d *Dialer) DialTimeout(network, addr string, timeout time.Duration) (net.Conn, error)

DialTimeout acts like Dial but takes a timeout. The timeout includes name resolution, if required.

Directories

Path Synopsis
http
authz
Package authz is a generated protocol buffer package.
Package authz is a generated protocol buffer package.
httperror
Package httperror defines the format for HTTP error responses from Chain services.
Package httperror defines the format for HTTP error responses from Chain services.
httpjson
Package httpjson creates HTTP handlers to map request and response formats onto Go function signatures.
Package httpjson creates HTTP handlers to map request and response formats onto Go function signatures.
reqid
Package reqid creates request IDs and stores them in Contexts.
Package reqid creates request IDs and stores them in Contexts.
static
Package static provides a handler for serving static assets from an in-memory map.
Package static provides a handler for serving static assets from an in-memory map.
Package raft provides raft coordination.
Package raft provides raft coordination.

Jump to

Keyboard shortcuts

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