addr

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Join

func Join(endpoint Endpoint, paths ...string) (string, error)

Types

type Endpoint

type Endpoint interface {
	Host() string
	Port() int
	String() string
}

Endpoint represents an address

func Remote

func Remote(host string, port int) Endpoint

Remote create and Endpoint

func RemoteHTTP

func RemoteHTTP(addr Endpoint, path string, secure bool) Endpoint

RemoteHTTP converts the plain address to http address

Jump to

Keyboard shortcuts

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