types

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2025 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseByteUnit

func ParseByteUnit(memSize string) (int64, error)

Types

type ByteSize

type ByteSize string

func (ByteSize) Check

func (bs ByteSize) Check() error

func (ByteSize) Int

func (bs ByteSize) Int() int64

func (ByteSize) ToInt

func (bs ByteSize) ToInt() (int64, error)

type ConfigMap

type ConfigMap[T any] map[string]*T

func (ConfigMap[T]) Default

func (c ConfigMap[T]) Default() *T

func (ConfigMap[T]) Get

func (c ConfigMap[T]) Get(key string) *T

type Duration

type Duration string

func (Duration) Check

func (d Duration) Check() error

func (Duration) TimeDuration

func (d Duration) TimeDuration() time.Duration

func (Duration) ToTimeDuration

func (d Duration) ToTimeDuration() time.Duration

Jump to

Keyboard shortcuts

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