Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OauthCalendarService ¶
type OauthCalendarService interface { GetAuthURL(ctx context.Context) (url string, state string, err error) ExchangeToken(ctx context.Context, code string) (*oauth2.Token, error) GetOrCreateUserByCode(ctx context.Context, code string, user *entity.User) (*entity.User, error) GetPrimaryCalendar(ctx context.Context, oui entity.OauthUserInfo, timeMin *time.Time, timeMax *time.Time) (entity.Calendar, error) }
func NewGoogleService ¶
func NewGoogleService(cfg *config.Config, oar repository.OauthRepository, ur repository.UserRepository) OauthCalendarService
func NewMicrosoftService ¶
func NewMicrosoftService(cfg *config.Config, oar repository.OauthRepository, ur repository.UserRepository) OauthCalendarService
Click to show internal directories.
Click to hide internal directories.