Versions in this module Expand all Collapse all v1 v1.1.0 Mar 20, 2021 v1.0.0 Dec 9, 2020 Changes in this version + const EB + const EiB + const Exa + const Exabyte + const Exbibyte + const GB + const GiB + const Gibibyte + const Giga + const Gigabyte + const Infinity + const KB + const KiB + const Kibibyte + const Kilo + const Kilobyte + const MB + const Mebibyte + const Mega + const Megabyte + const MiB + const PB + const Pebibyte + const Peta + const Petabyte + const PiB + const TB + const Tebibyte + const Tera + const Terabyte + const TiB + func Trace(ctx context.Context, t Tracer, opts ...ContextOpt) + type Context interface + String func() string + func NewContext(parent context.Context, opts ...ContextOpt) Context + type ContextLimitsExceeded struct + Context Context + func (err ContextLimitsExceeded) Error() string + type ContextOpt func(*gotchactx) + func ContextWithLimitBytes(lbytes int64) ContextOpt + func ContextWithLimitCalls(lcalls int64) ContextOpt + func ContextWithLimitObjects(lobjects int64) ContextOpt + type Tracer func(Context) + type Tracker interface + Add func(bytes, objects, calls int64) + Exceeded func() bool + Limits func() (lbytes, lobjects, lcalls int64) + Remains func() (rbytes, robjects, rcalls int64) + Reset func() + Used func() (bytes, objects, calls int64)