Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Receive ¶
Receive executes the portal receive sequence. The payload is written to the provided writer. The provided config will be merged with the default config.
func Send ¶
func Send(ctx context.Context, payload io.Reader, payloadSize int64, config *Config) (string, error, chan error)
Send executes the portal send sequence. The intial connection with the Rendezous server is performed synchronously, after that the transfer sequence is performed asynchronously. The function returns a portal password, a error from the rendezvous intial rendezvous connection, and a channel on which errors from the transfer sequence can be listend to. The provided config will be merged with the default config.
Types ¶
type Config ¶
type Config struct {
RendezvousAddr string `json:"RendezvousAddr,omitempty"`
}
Config specifes a config for the portal module.
func MergeConfig ¶
MergeConfig merges the specified source config into the specified destination config. Values present in the source config will overide values in the destination config.