GO-2024-3036: cortex establishes TLS connections with `InsecureSkipVerify` set to `true` in github.com/cortexproject/cortex
package
Version:
v1.13.1
Opens a new window with list of versions in this module.
Published: Oct 4, 2022
License: Apache-2.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 18
Opens a new window with list of known importers.
Documentation
¶
Max returns the maximum of two ints
func Max64(a, b int64) int64
Max64 returns the maximum of two int64s
Min returns the minimum of two ints
func Min64(a, b int64) int64
Min64 returns the minimum of two int64s
EwmaRate tracks an exponentially weighted moving average of a per-second rate.
func NewEWMARate(alpha float64, interval time.Duration) *EwmaRate
func (r *EwmaRate) Add(delta int64)
func (r *EwmaRate) Rate() float64
Rate returns the per-second rate.
func (r *EwmaRate) Tick()
Tick assumes to be called every r.interval.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.