dialer

package
v0.17.5 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder interface {
	fmt.Stringer
	Make(time.Duration) (transport.Dialer, error)
}

Builder is a dialer builder.

type DefaultDialerBuilder

type DefaultDialerBuilder struct{}

DefaultDialerBuilder create a builder to dialer over TCP and UDP.

func NewDefaultDialerBuilder

func NewDefaultDialerBuilder() *DefaultDialerBuilder

NewDefaultDialerBuilder creates a DefaultDialerBuilder.

func (*DefaultDialerBuilder) Make

Make creates a dialer.

func (*DefaultDialerBuilder) String

func (t *DefaultDialerBuilder) String() string

type NpipeDialerBuilder

type NpipeDialerBuilder struct {
	Path string
}

NpipeDialerBuilder creates a builder to dial over a named pipe.

func NewNpipeDialerBuilder

func NewNpipeDialerBuilder(path string) *NpipeDialerBuilder

NewNpipeDialerBuilder creates a NpipeDialerBuilder.

func (*NpipeDialerBuilder) Make

Make creates a dialer.

func (*NpipeDialerBuilder) String

func (t *NpipeDialerBuilder) String() string

type UnixDialerBuilder

type UnixDialerBuilder struct {
	Path string
}

UnixDialerBuilder creates a builder to dial over unix domain socket.

func NewUnixDialerBuilder

func NewUnixDialerBuilder(path string) *UnixDialerBuilder

NewUnixDialerBuilder returns a new TransportUnix instance that will allow the HTTP client to communicate over a unix domain socket it require a valid path to the socket on the filesystem.

func (*UnixDialerBuilder) Make

func (t *UnixDialerBuilder) Make(timeout time.Duration) (transport.Dialer, error)

Make creates a dialer.

func (*UnixDialerBuilder) String

func (t *UnixDialerBuilder) String() string

Jump to

Keyboard shortcuts

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