juju: github.com/juju/juju/juju/sockets Index | Files

package sockets

import "github.com/juju/juju/juju/sockets"

Index

Package Files

sockets.go sockets_nix.go

func Dial Uses

func Dial(soc Socket) (*rpc.Client, error)

func Listen Uses

func Listen(soc Socket) (net.Listener, error)

type Socket Uses

type Socket struct {
    // Network is the socket network.
    Network string

    // Address is the socket address.
    Address string

    // TLSConfig is set when the socket should also establish a TLS connection.
    TLSConfig *tls.Config
}

Socket represents the set of parameters to use for socket to dial/listen.

Package sockets imports 11 packages (graph) and is imported by 131 packages. Updated 2019-09-15. Refresh now. Tools for package owners.