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.
Click to show internal directories.
Click to hide internal directories.