Documentation ¶
Index ¶
Constants ¶
View Source
const ( // TCP is the prefix for tcp TCP string = "tcp" // TLS is the prefix for tls TLS string = "tls" // Unix is the prefix for unix Unix string = "unix" )
Variables ¶
View Source
var ( // ErrEmptySchema signals that the address has no schema in it. ErrEmptySchema = errors.New("empty schema can't be used") )
Functions ¶
func ComposeEndpoint ¶
ComposeEndpoint returns address string composed from provided schema and schema-less address.
Types ¶
type Config ¶
type Config struct {
Name, Addr string
// HandoverOnUpgrade indicates whether the socket should be handed over to the new
// process during an upgrade. If the socket is not handed over, it should be be unique
// to avoid colliding with the old process' socket. If the socket is a Unix socket, a
// possible existing file at the path is removed.
HandoverOnUpgrade bool
}
Config represents a network type, and address
func ParseEndpoint ¶
ParseEndpoint returns Config based on the passed in address string. Returns error only if provided endpoint has no schema or address defined.
Click to show internal directories.
Click to hide internal directories.