internal

package
v0.0.0-...-0eb02eb Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHTTPClient

func NewHTTPClient(idleTimeout time.Duration, useHTTP2 bool) *http.Client

func TruncateFile

func TruncateFile(f *os.File, size int64) error

Types

type Semaphore

type Semaphore struct {
	// contains filtered or unexported fields
}

func NewSemaphore

func NewSemaphore(n int) Semaphore

func (Semaphore) Acquire

func (s Semaphore) Acquire(ctx context.Context) error

func (Semaphore) Release

func (s Semaphore) Release()

type TimeoutConn

type TimeoutConn struct {
	net.Conn
	ReadTimeout, WriteTimeout time.Duration
}

func (*TimeoutConn) Read

func (c *TimeoutConn) Read(b []byte) (n int, err error)

func (*TimeoutConn) Write

func (c *TimeoutConn) Write(b []byte) (n int, err error)

Jump to

Keyboard shortcuts

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