mocks

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2023 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeCalendar

type FakeCalendar struct {
	mock.Mock
}
func (gc *FakeCalendar) GetAuthLink(state string) string

func (*FakeCalendar) GetCalendarEvents

func (gc *FakeCalendar) GetCalendarEvents(token *oauth2.Token,
	calendarID string,
	args *hitrixcalendar.GetCalendarEventsArgs) ([]*calendar.Event, error)

func (*FakeCalendar) GetCalendars

func (gc *FakeCalendar) GetCalendars(token *oauth2.Token) ([]*calendar.CalendarListEntry, error)

func (*FakeCalendar) GetStateCodeFromGin

func (gc *FakeCalendar) GetStateCodeFromGin(c *gin.Context) (string, string, error)

func (*FakeCalendar) GetTokenFromCode

func (gc *FakeCalendar) GetTokenFromCode(code string) (*oauth2.Token, error)

func (*FakeCalendar) RefreshToken

func (gc *FakeCalendar) RefreshToken(token *oauth2.Token) (bool, *oauth2.Token, error)

func (*FakeCalendar) UpsertEvent

func (gc *FakeCalendar) UpsertEvent(token *oauth2.Token, calendarID string, event *calendar.Event) (*calendar.Event, error)

Jump to

Keyboard shortcuts

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