service

package
v0.0.0-...-e5954dd Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2021 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetGoogleCalendarConfig

func GetGoogleCalendarConfig(ctx context.Context, callbackURL string) *oauth2.Config

Types

type LineWorksEvent

type LineWorksEvent struct {
	UID          string
	Source       string
	Location     string
	Created      time.Time
	LastModified time.Time
	StartDate    time.Time
	EndDate      time.Time
	RuleDates    []time.Time
	SummaryDate  string
	Summary      string
	Description  string
	Organizer    string
	ViewURL      string
	Raw          string
}

func SearchLineWorksEvents

func SearchLineWorksEvents(listReq *LineWorksScheduleListReq) ([]*LineWorksEvent, error)

type LineWorksSchedule

type LineWorksSchedule struct {
	UserID     string `json:"userId"`
	CalendarID string `json:"calendarId"`
	Ical       string `json:"ical"`
	ViewURL    string `json:"viewUrl"`
}

type LineWorksScheduleListReq

type LineWorksScheduleListReq struct {
	From  time.Time
	To    time.Time
	Token string
}

type LineWorksScheduleListResp

type LineWorksScheduleListResp struct {
	Result      string              `json:"result"`
	ReturnValue []LineWorksSchedule `json:"returnValue"`
}

Jump to

Keyboard shortcuts

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