timeunit

package
v8.17.0 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: Apache-2.0 Imports: 1 Imported by: 38

Documentation

Overview

Package timeunit

Index

Constants

This section is empty.

Variables

View Source
var (
	Nanoseconds = TimeUnit{"nanos"}

	Microseconds = TimeUnit{"micros"}

	Milliseconds = TimeUnit{"ms"}

	Seconds = TimeUnit{"s"}

	Minutes = TimeUnit{"m"}

	Hours = TimeUnit{"h"}

	Days = TimeUnit{"d"}
)

Functions

This section is empty.

Types

type TimeUnit

type TimeUnit struct {
	Name string
}

https://github.com/elastic/elasticsearch-specification/blob/2f823ff6fcaa7f3f0f9b990dc90512d8901e5d64/specification/_types/Time.ts#L69-L77

func (TimeUnit) MarshalText

func (t TimeUnit) MarshalText() (text []byte, err error)

func (TimeUnit) String

func (t TimeUnit) String() string

func (*TimeUnit) UnmarshalText

func (t *TimeUnit) UnmarshalText(text []byte) error

Jump to

Keyboard shortcuts

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