internal

package
v1.8.3 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package internal contains collection of unsorted utils.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBackOff

func NewBackOff() backoff.BackOff

NewBackOff returns backoff suitable for SharedLock/ExclusiveLock.

func NewTCPProxy

func NewTCPProxy(ctx Ctx, frontendAddr string, backendAddr string) (*proxy.TCPProxy, error)

NewTCPProxy creates, Run() and returns new TCP proxy.

func WaitTCPPort

func WaitTCPPort(ctx Ctx, addr fmt.Stringer) error

WaitTCPPort tries to connect to addr until success or ctx.Done.

func WaitTCPPortClosed

func WaitTCPPortClosed(ctx Ctx, addr fmt.Stringer) error

WaitTCPPortClosed tries to connect to addr until failed or ctx.Done.

Types

type Ctx

type Ctx = context.Context

Ctx is a synonym for convenience.

Jump to

Keyboard shortcuts

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