Documentation ¶
Index ¶
- Variables
- func Compare1DInt64(i1, i2 []int64) bool
- func Compare1DUInt64(i1, i2 []uint64) bool
- func Compare2DInt64(i1, i2 [][]int64) bool
- func Compare2DUInt64(i1, i2 [][]uint64) bool
- func Copy1DInt64(i []int64) []int64
- func Copy1DUInt64(i []uint64) []uint64
- func Copy2DInt64(i [][]int64) [][]int64
- func Copy2DUInt64(i [][]uint64) [][]uint64
- func FileExists(path string) bool
- func FormatDuration(d time.Duration) string
- func IndexOfInt(a []int, element int) int
- func IndexOfInt64(column []int64, element int64) int
- func InsertFileBlock(file *os.File, offset, length int64) error
- func IsSubset(a map[string]string, b map[string]string) bool
- func ParseDuration(s string) (time.Duration, error)
- func ReadBlock(r io.Reader) (bytes.Buffer, error)
- func RoundDown(value, modulo int64) int64
- func RoundUp(value, modulo int64) int64
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidDuration = errors.New("invalid duration")
Functions ¶
func Compare1DInt64 ¶
func Compare1DUInt64 ¶
func Compare2DInt64 ¶
func Compare2DUInt64 ¶
func Copy1DInt64 ¶
func Copy1DUInt64 ¶
func Copy2DInt64 ¶
func Copy2DUInt64 ¶
func FormatDuration ¶
FormatDuration formats a duration to a string.
func IndexOfInt ¶
IndexOfInt returns the index of the first element of 'column' that matches 'element' returns -1 if no element matches
func IndexOfInt64 ¶
IndexOfInt64 returns the index of the first element of 'column' that matches 'element' returns -1 if no element matches
func InsertFileBlock ¶
InsertFileBlock uses fallocate syscall to insert one or multiple empty blocks in the middle of a file, pushing back the contents that follow
func ParseDuration ¶
ParseDuration parses a time duration from a string. This is needed instead of time.ParseDuration because this will support the full syntax that InfluxQL supports for specifying durations including weeks and days.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.