package calendarperiod
Import Path
google.golang.org/genproto/googleapis/type/calendarperiod (on go.dev)
Dependency Relation
imports 5 packages, and imported by one package
Involved Source Files
calendar_period.pb.go
Package-Level Type Names (only one, which is exported)
A `CalendarPeriod` represents the abstract concept of a time period that has
a canonical start. Grammatically, "the start of the current
`CalendarPeriod`." All calendar times begin at midnight UTC.
( T) Descriptor() protoreflect.EnumDescriptor
( T) Enum() *CalendarPeriod
Deprecated: Use CalendarPeriod.Descriptor instead.
( T) Number() protoreflect.EnumNumber
( T) String() string
( T) Type() protoreflect.EnumType
T : google.golang.org/protobuf/reflect/protoreflect.Enum
T : expvar.Var
T : fmt.Stringer
T : google.golang.org/protobuf/internal/impl.enumV1
T : context.stringer
T : runtime.stringer
func CalendarPeriod.Enum() *CalendarPeriod
func google.golang.org/genproto/googleapis/monitoring/v3.(*ServiceLevelObjective).GetCalendarPeriod() CalendarPeriod
const CalendarPeriod_CALENDAR_PERIOD_UNSPECIFIED
const CalendarPeriod_DAY
const CalendarPeriod_FORTNIGHT
const CalendarPeriod_HALF
const CalendarPeriod_MONTH
const CalendarPeriod_QUARTER
const CalendarPeriod_WEEK
const CalendarPeriod_YEAR
Package-Level Functions (total 3, none are exported)
Package-Level Variables (total 9, in which 3 are exported)
Enum value maps for CalendarPeriod.
Enum value maps for CalendarPeriod.
Package-Level Constants (total 8, all are exported)
Undefined period, raises an error.
A day.
A fortnight. The first calendar fortnight of the year begins at the start
of week 1 according to
[ISO 8601](https://en.wikipedia.org/wiki/ISO_week_date).
A half-year. Half-years start on dates 1-Jan and 1-Jul.
A month.
A quarter. Quarters start on dates 1-Jan, 1-Apr, 1-Jul, and 1-Oct of each
year.
A week. Weeks begin on Monday, following
[ISO 8601](https://en.wikipedia.org/wiki/ISO_week_date).
A year.
![]() |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |