dii2pah

package
v0.0.0-...-bc8fae0 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetAddressHelperHost

func SetAddressHelperHost(s string) func(*AddressHelper) error

SetAddressHelperHost sets the host of the addresshelper client's SAM bridge

func SetAddressHelperPort

func SetAddressHelperPort(s string) func(*AddressHelper) error

SetAddressHelperPort sets the port of the addresshelper client's SAM bridge

func SetAddressHelperPortInt

func SetAddressHelperPortInt(s int) func(*AddressHelper) error

SetAddressHelperPortInt sets the port of the addresshelper client's SAM bridge

Types

type AddressHelper

type AddressHelper struct {
	// contains filtered or unexported fields
}

AddressHelper prioritizes the address sources

func NewAddressHelper

func NewAddressHelper(AddressHelperURL, jumpHost, jumpPort string) (*AddressHelper, error)

NewAddressHelper creates a new address helper from string options

func NewAddressHelperFromOptions

func NewAddressHelperFromOptions(opts ...func(*AddressHelper) error) (*AddressHelper, error)

NewAddressHelperFromOptions creates a new address helper from functional arguments

func (*AddressHelper) CheckAddressHelper

func (addressBook *AddressHelper) CheckAddressHelper(req *http.Request) (*http.Request, bool)

CheckAddressHelper determines how the addresshelper will be used for an address

func (*AddressHelper) CheckAddressHelperString

func (addressBook *AddressHelper) CheckAddressHelperString(req string) (string, bool)

CheckAddressHelperString determines how the addresshelper will be used for an address

type AddressHelperConnectOption

type AddressHelperConnectOption func(*AddressHelper) error

AddressHelperConnectOption is a AddressHelper option

Jump to

Keyboard shortcuts

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