Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Golang *Golang
}
Config provides list of singleflight's vendor that can be used. It will prioritize from top to bottom and only choose one.
type Golang ¶
type Golang struct {
// contains filtered or unexported fields
}
Golang is config for golang's singleflight.
type Singleflight ¶
type Singleflight interface { // Do runs the workFn with singleflight. Do(key string, workFn func() (interface{}, error)) (interface{}, error) }
Singleflight provides list of standard's singleflight functions.
Click to show internal directories.
Click to hide internal directories.