Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Choose ¶
func Choose( ctx context.Context, conn daemon.Connector, remote addr.IA, opts ...Option, ) (snet.Path, error)
Choose selects a path to the remote.
Types ¶
type ColorScheme ¶
type ColorScheme struct { Header *color.Color Keys *color.Color Values *color.Color Link *color.Color Intf *color.Color Good *color.Color Bad *color.Color }
ColorScheme allows customizing the path coloring.
func DefaultColorScheme ¶
func DefaultColorScheme(disable bool) ColorScheme
func (ColorScheme) KeyValue ¶
func (cs ColorScheme) KeyValue(k, v string) string
func (ColorScheme) KeyValues ¶
func (cs ColorScheme) KeyValues(kv ...string) []string
type Option ¶
type Option func(o *options)
func WithColorScheme ¶
func WithColorScheme(cs ColorScheme) Option
func WithInteractive ¶
func WithProbing ¶
func WithProbing(cfg *ProbeConfig) Option
func WithRefresh ¶
func WithSequence ¶
type ProbeConfig ¶
Click to show internal directories.
Click to hide internal directories.