Affected by GO-2022-0915
and 1 other vulnerabilities
GO-2022-0915 : Improper input validation in CNCF Cortex in github.com/cortexproject/cortex
GO-2024-3036 : cortex establishes TLS connections with `InsecureSkipVerify` set to `true` in github.com/cortexproject/cortex
Discover Packages
github.com/cortexproject/cortex
pkg
util
concurrency
package
Version:
v1.7.0
Opens a new window with list of versions in this module.
Published: Feb 23, 2021
License: Apache-2.0
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 1
Opens a new window with list of known importers.
Documentation Source Files Index Constants Variables Functions Types ForEachUser(ctx, userIDs, concurrency, userFunc) type SyncBuffer (sb) String() (sb) Write(p)
Documentation
¶
func ForEachUser (ctx context.Context, userIDs []string , concurrency int , userFunc func (ctx context.Context, userID string ) error ) error
ForEachUser runs the provided userFunc for each userIDs up to concurrency concurrent workers.
In case userFunc returns error, it will continue to process remaining users but returns an
error with all errors userFunc has returned.
type SyncBuffer struct {
}
func (sb *SyncBuffer) String() string
func (sb *SyncBuffer) Write(p []byte ) (n int , err error )
Source Files
¶
Click to show internal directories.
Click to hide internal directories.