utils

package
v0.15.2 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Once

type Once[Out any] interface {
	Do(f func() (Out, error)) (Out, error)
	Done() bool
	Result() (bool, Out, error)
}

func NewOnce

func NewOnce[Out any]() Once[Out]

type OnceWithInit

type OnceWithInit[Out any] interface {
	Once[Out]
	DoWithInit() (Out, error)
}

func NewOnceWithInit

func NewOnceWithInit[Out any](f func() (Out, error)) OnceWithInit[Out]

type Transporter added in v0.12.0

type Transporter struct {
	Http *http.Client
}

func (Transporter) Do added in v0.12.0

func (t Transporter) Do(req *http.Request) (*http.Response, error)

Jump to

Keyboard shortcuts

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