Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Connect

func Connect(protoAddr string) (net.Conn, error)

    Connect dials the given address and returns a net.Conn. The protoAddr argument should be prefixed with the protocol, eg. "tcp://127.0.0.1:8080" or "unix:///tmp/test.sock"

    func GetFreePort

    func GetFreePort() (int, error)

      GetFreePort gets a free port from the operating system. Ripped from https://github.com/phayes/freeport. BSD-licensed.

      func ProtocolAndAddress

      func ProtocolAndAddress(listenAddr string) (string, string)

        ProtocolAndAddress splits an address into the protocol and address components. For instance, "tcp://127.0.0.1:8080" will be split into "tcp" and "127.0.0.1:8080". If the address has no protocol prefix, the default is "tcp".

        Types

        This section is empty.

        Source Files