types

package
v0.0.0-...-3ff2ba2 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Copyright (c) technicianted. All rights reserved. Licensed under the MIT License.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DialOption

type DialOption func(interface{})

DialOption represents a generic DialContext option. Implementations can provider their own.

type Dialer

type Dialer interface {
	// DialContext dials address with opts via whip service. It requests the establishment of a reverse
	// tcp connection to address.
	// Addresses DialContext calls are "resolved" against already registered remote clients based
	// on their host and domain as follows:
	// * If DialContext address matches exactly host.domain client then it is used.
	// * If not, if DialContext address matches exactly a domain of 1 or more clients, one is
	//   picked up at random.
	//
	// It returns net.DNSError if address does not resolve to any registered clients.
	DialContext(ctx context.Context, network, address string, logger logging.TraceLogger, opts ...DialOption) (net.Conn, error)
}

Dialer is an interface representing a whip dialer. In normal cases it is either server.Server or server.Service.

Jump to

Keyboard shortcuts

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