beats: github.com/elastic/beats/libbeat/common/cfgtype Index | Files

package cfgtype

import "github.com/elastic/beats/libbeat/common/cfgtype"

Index

Package Files

byte_size.go

type ByteSize Uses

type ByteSize int64

ByteSize defines a new configuration option that will parse `go-humanize` compatible values into a int64 when the suffix is valid or will fallback to bytes.

func (*ByteSize) Unpack Uses

func (s *ByteSize) Unpack(v string) error

Unpack converts a size defined from a human readable format into bytes.

Package cfgtype imports 3 packages (graph) and is imported by 36 packages. Updated 2018-06-25. Refresh now. Tools for package owners.