Documentation
¶
Index ¶
- Constants
- type Attendee
- type Body
- type CalendarAPI
- func (c *CalendarAPI) CreateEvent(ctx context.Context, e models.Event) error
- func (c *CalendarAPI) DeleteEvent(ctx context.Context, e models.Event) error
- func (c *CalendarAPI) EventsInTimeframe(ctx context.Context, start time.Time, end time.Time) ([]models.Event, error)
- func (c *CalendarAPI) GetCalendarID() string
- func (c *CalendarAPI) Initialize(ctx context.Context, openBrowser bool, config map[string]interface{}) error
- func (c *CalendarAPI) Name() string
- func (c *CalendarAPI) SetLogger(logger *log.Logger)
- func (c *CalendarAPI) SetupOauth2(ctx context.Context, credentials auth.Credentials, storage auth.Storage, ...) error
- func (c *CalendarAPI) UpdateEvent(ctx context.Context, e models.Event) error
- type EmailAddress
- type Event
- type EventList
- type Extensions
- type Location
- type OutlookCalendarClient
- type OutlookClient
- func (o *OutlookClient) CreateEvent(ctx context.Context, event models.Event) error
- func (o *OutlookClient) DeleteEvent(ctx context.Context, event models.Event) error
- func (o OutlookClient) GetCalendarID() string
- func (o *OutlookClient) ListEvents(ctx context.Context, start time.Time, end time.Time) ([]models.Event, error)
- func (o *OutlookClient) UpdateEvent(ctx context.Context, event models.Event) error
- type ResponseStatus
- type Time
Constants ¶
View Source
const ( ExtensionOdataType = "microsoft.graph.openTypeExtension" ExtensionName = "inovex.calendarsync.meta" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Attendee ¶
type Attendee struct {
EmailAdress EmailAddress `json:"emailAddress,omitempty"`
}
type CalendarAPI ¶
type CalendarAPI struct {
// contains filtered or unexported fields
}
func (*CalendarAPI) CreateEvent ¶
func (*CalendarAPI) DeleteEvent ¶
func (*CalendarAPI) EventsInTimeframe ¶
func (*CalendarAPI) GetCalendarID ¶ added in v0.8.0
func (c *CalendarAPI) GetCalendarID() string
func (*CalendarAPI) Initialize ¶
func (*CalendarAPI) Name ¶
func (c *CalendarAPI) Name() string
func (*CalendarAPI) SetLogger ¶
func (c *CalendarAPI) SetLogger(logger *log.Logger)
func (*CalendarAPI) SetupOauth2 ¶
func (c *CalendarAPI) SetupOauth2(ctx context.Context, credentials auth.Credentials, storage auth.Storage, bindPort uint) error
func (*CalendarAPI) UpdateEvent ¶
type EmailAddress ¶
type Event ¶
type Event struct { ID string `json:"id"` UID string `json:"iCalUId"` ChangeKey string `json:"changeKey"` HtmlLink string `json:"webLink"` Subject string `json:"subject"` Start Time `json:"start"` End Time `json:"end"` Body Body `json:"body,omitempty"` Attendees []Attendee `json:"attendees,omitempty"` Location Location `json:"location"` IsReminderOn bool `json:"isReminderOn"` ReminderMinutesBeforeStart int `json:"reminderMinutesBeforeStart"` Extensions []Extensions `json:"extensions"` IsAllDay bool `json:"isAllDay"` OnlineMeetingUrl string `json:"onlineMeetingUrl"` ResponseStatus ResponseStatus `json:"responseStatus,omitempty"` }
type Extensions ¶
type OutlookCalendarClient ¶
type OutlookCalendarClient interface { ListEvents(ctx context.Context, starttime time.Time, endtime time.Time) ([]models.Event, error) CreateEvent(ctx context.Context, event models.Event) error UpdateEvent(ctx context.Context, event models.Event) error DeleteEvent(ctx context.Context, event models.Event) error GetCalendarID() string }
type OutlookClient ¶
OutlookClient implements the OutlookCalendarClient interface
func (*OutlookClient) CreateEvent ¶
CreateEvent creates an event in the outlook sink When an event is sent, the server sends invitations to all the attendees. https://learn.microsoft.com/en-us/graph/api/user-post-events?view=graph-rest-1.0&tabs=http
func (*OutlookClient) DeleteEvent ¶
func (OutlookClient) GetCalendarID ¶ added in v0.8.0
func (o OutlookClient) GetCalendarID() string
func (*OutlookClient) ListEvents ¶
func (*OutlookClient) UpdateEvent ¶
UpdateEvent updates the event when used as a sink
type ResponseStatus ¶ added in v0.8.0
type ResponseStatus struct {
Response string `json:"response,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.