recurrence

package
v0.0.0-...-c47df03 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Recurrence

type Recurrence struct {
	Pattern RecurrencePattern `json:"pattern"`
	Range   RecurrenceRange   `json:"range"`
}

func Generate

func Generate(ctx context.Context, description string) (Recurrence, error)

func (Recurrence) ConvertForGraphAPI

func (r Recurrence) ConvertForGraphAPI() (models.PatternedRecurrenceable, error)

type RecurrencePattern

type RecurrencePattern struct {
	DayOfMonth     int      `json:"dayOfMonth"`
	DaysOfWeek     []string `json:"daysOfWeek"`
	FirstDayOfWeek string   `json:"firstDayOfWeek"`
	Index          string   `json:"index"`
	Interval       int      `json:"interval"`
	Month          int      `json:"month"`
	RecurrenceType string   `json:"type"`
}

type RecurrenceRange

type RecurrenceRange struct {
	EndDate             string `json:"endDate"`
	StartDate           string `json:"startDate"`
	NumberOfOccurrences int    `json:"numberOfOccurrences"`
	RecurrenceType      string `json:"type"`
}

Jump to

Keyboard shortcuts

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