Versions in this module Expand all Collapse all v1 v1.6.3 Jan 15, 2024 Changes in this version + func IsConnCanceled(err error) bool + func LabelsToMetric(ls labels.Labels) model.Metric + func LogConfig(cfg interface{}) error + func LogError(message string, f func() error) + func LogErrorWithContext(ctx context.Context, message string, f func() error) + func MapToModelLabelSet(m map[string]string) model.LabelSet + func MergeStringLists(ss ...[]string) []string + func MergeStringPair(s1, s2 []string) []string + func MinUint32(a, b uint32) uint32 + func ModelLabelSetToMap(m model.LabelSet) map[string]string + func ParseRequest(logger log.Logger, userID string, r *http.Request) (*logproto.PushRequest, error) + func PrintConfig(w io.Writer, config interface{}) error + func RoundToMilliseconds(from, through time.Time) (model.Time, model.Time) + func SnakeCase(s string) string + func StringRef(value string) *string + func StringSliceContains(slice []string, value string) bool + func TokenFor(userID, labels string) uint32 + type ExtendedMock struct + func (m *ExtendedMock) GetMockedCallsByMethod(method string) []mock.Call + type LogAdapter struct + func NewLogAdapter(l log.Logger) LogAdapter + func (l LogAdapter) Fatal(v ...interface{}) + func (l LogAdapter) Fatalf(format string, v ...interface{}) + func (l LogAdapter) Fatalln(v ...interface{}) + func (l LogAdapter) Panic(v ...interface{}) + func (l LogAdapter) Panicf(format string, v ...interface{}) + func (l LogAdapter) Panicln(v ...interface{}) + func (l LogAdapter) Print(v ...interface{}) + func (l LogAdapter) Printf(format string, v ...interface{}) + func (l LogAdapter) Println(v ...interface{}) + type MultiError []error + func (es *MultiError) Add(err error) + func (es MultiError) Err() error + func (es MultiError) Error() string + func (es MultiError) Is(target error) bool + type QueryStringBuilder struct + func NewQueryStringBuilder() *QueryStringBuilder + func (b *QueryStringBuilder) Encode() string + func (b *QueryStringBuilder) SetFloat(name string, value float64) + func (b *QueryStringBuilder) SetFloat32(name string, value float32) + func (b *QueryStringBuilder) SetInt(name string, value int64) + func (b *QueryStringBuilder) SetInt32(name string, value int) + func (b *QueryStringBuilder) SetString(name, value string) + func (b *QueryStringBuilder) SetStringArray(name string, values []string) + type SizeReader interface + Size func() int64 + func NewSizeReader(r io.Reader) SizeReader