shared

package
v0.0.0-...-733d78f Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BytesToReadableText

func BytesToReadableText(b int64) string

func ChunkSlice

func ChunkSlice[T any](items []T, chunkSize int) [][]T

func Int64ToPtr

func Int64ToPtr(val int64) *int64

Types

type MeasurementMetric

type MeasurementMetric struct {
	Used      int64
	UsedText  string
	Total     int64
	TotalText string
	CreatedAt time.Time
}

type MeasurementMetricBuffer

type MeasurementMetricBuffer struct {
	// contains filtered or unexported fields
}

func NewMetricBuffer

func NewMetricBuffer(maxLength int, unique bool) *MeasurementMetricBuffer

func (*MeasurementMetricBuffer) All

func (*MeasurementMetricBuffer) Push

Jump to

Keyboard shortcuts

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