Documentation ¶ Index ¶ func GetListener(endpoint string) (lis net.Listener, err error) type Target func ParseTarget(target string) (ret Target, err error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func GetListener ¶ func GetListener(endpoint string) (lis net.Listener, err error) Helper Functions Types ¶ type Target ¶ type Target struct { Scheme string Host string Port string Path string } func ParseTarget ¶ func ParseTarget(target string) (ret Target, err error) ParseTarget splits target into a Target struct containing scheme, host, port and path. If target is not a valid scheme://host:port/path, it returns error. Source Files ¶ View all Source files endpoint.go Click to show internal directories. Click to hide internal directories.