google

package
v0.1.121 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CalendarChannelWatchComponent    = "google_calendar_channel_watch"
	CalendarChannelWatchRequestPort  = "request"
	CalendarChannelWatchResponsePort = "response"
	CalendarChannelWatchErrorPort    = "error"
)
View Source
const (
	CalendarGetEventsComponent    = "google_calendar_get_events"
	CalendarGetEventsRequestPort  = "request"
	CalendarGetEventsResponsePort = "response"
	CalendarGetEventsErrorPort    = "error"
)
View Source
const (
	ExchangeAutCodeComponent     = "google_exchange_auth_code"
	ExchangeAuthCodeRequestPort  = "request"
	ExchangeAuthCodeResponsePort = "response"
	ExchangeAuthCodeErrorPort    = "error"
)
View Source
const (
	GetAuthUrlComponent    = "google_get_auth_url"
	GetAuthUrlRequestPort  = "request"
	GetAuthUrlResponsePort = "response"
	GetAuthUrlErrorPort    = "error"
)
View Source
const (
	GetCalendarsComponent    = "google_get_calendars"
	GetCalendarsRequestPort  = "request"
	GetCalendarsResponsePort = "response"
	GetCalendarsErrorPort    = "error"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CalendarChannelWatch

type CalendarChannelWatch struct {
	// contains filtered or unexported fields
}

func (*CalendarChannelWatch) GetInfo

func (*CalendarChannelWatch) Handle

func (h *CalendarChannelWatch) Handle(ctx context.Context, handler module.Handler, port string, msg interface{}) error

func (*CalendarChannelWatch) Instance

func (h *CalendarChannelWatch) Instance() module.Component

func (*CalendarChannelWatch) Ports

func (h *CalendarChannelWatch) Ports() []module.Port

type CalendarChannelWatchChannel

type CalendarChannelWatchChannel struct {
	ID string `json:"id"`
}

type CalendarChannelWatchContext

type CalendarChannelWatchContext any

type CalendarChannelWatchError

type CalendarChannelWatchError struct {
	Request CalendarChannelWatchRequest `json:"request"`
	Error   string                      `json:"error"`
}

type CalendarChannelWatchRequest

type CalendarChannelWatchRequest struct {
	Context  CalendarChannelWatchContext         `json:"context" configurable:"true" title:"Context" description:"Arbitrary message to be send further"`
	Calendar CalendarChannelWatchRequestCalendar `json:"calendar" required:"true" title:"Calendar"`
	Channel  CalendarWatchChannel                `json:"channel" required:"true" title:"Channel"`
	Token    Token                               `json:"token" required:"true" title:"Token"`
	Config   ClientConfig                        `json:"config" required:"true" title:"Client credentials"`
}

type CalendarChannelWatchRequestCalendar

type CalendarChannelWatchRequestCalendar struct {
	ID string `json:"id" required:"true" title:"Calendar ID" description:"Google Calendar ID to be watched"`
}

type CalendarChannelWatchResponse

type CalendarChannelWatchResponse struct {
	Request CalendarChannelWatchRequest `json:"request"`
	Channel CalendarChannelWatchChannel `json:"channel"`
}

type CalendarChannelWatchSettings

type CalendarChannelWatchSettings struct {
	EnableErrorPort bool `` /* 137-byte string literal not displayed */
}

type CalendarGetEventResponse

type CalendarGetEventResponse struct {
	Request CalendarGetEventsRequest `json:"request"`
	Results calendar.Events          `json:"results"`
}

type CalendarGetEvents

type CalendarGetEvents struct {
	// contains filtered or unexported fields
}

func (*CalendarGetEvents) GetInfo

func (c *CalendarGetEvents) GetInfo() module.ComponentInfo

func (*CalendarGetEvents) Handle

func (c *CalendarGetEvents) Handle(ctx context.Context, handler module.Handler, port string, msg interface{}) error

func (*CalendarGetEvents) Instance

func (c *CalendarGetEvents) Instance() module.Component

func (*CalendarGetEvents) Ports

func (c *CalendarGetEvents) Ports() []module.Port

type CalendarGetEventsContext

type CalendarGetEventsContext any

type CalendarGetEventsError

type CalendarGetEventsError struct {
	Request CalendarGetEventsRequest `json:"request"`
	Error   string                   `json:"error"`
}

type CalendarGetEventsRequest

type CalendarGetEventsRequest struct {
	Context     CalendarGetEventsContext `json:"context" configurable:"true" title:"Context" description:"Arbitrary message to be send further"`
	CalendarId  string                   `json:"calendarId" required:"true" default:"primary" minLength:"1" title:"Calendar ID"`
	ShowDeleted bool                     `json:"showDeleted" required:"true" title:"Show deleted events" default:"true"`
	StartDate   time.Time                `json:"startDate" title:"Start date"`
	EndDate     time.Time                `json:"endDate" title:"End date"`
	SyncToken   string                   `json:"syncToken" title:"Sync Token"`
	PageToken   string                   `json:"pageToken" title:"Page Token"`
	Token       Token                    `json:"token" required:"true" title:"Auth Token"`
	Config      ClientConfig             `json:"config" required:"true" title:"Client credentials"`
}

type CalendarGetEventsSettings

type CalendarGetEventsSettings struct {
	EnableErrorPort bool `` /* 153-byte string literal not displayed */
}

type CalendarWatchChannel

type CalendarWatchChannel struct {
	ID          string `json:"id" required:"true" title:"ID" description:"A UUID or similar unique string that identifies this channel."`
	Type        string `` /* 274-byte string literal not displayed */
	Address     string `json:"address" required:"true" title:"Address" description:"The address where notifications are delivered for this channel."`
	Expiration  int64  `` /* 148-byte string literal not displayed */
	ResourceId  string `` /* 161-byte string literal not displayed */
	ResourceUri string `json:"resourceUri" title:"ResourceURI" description:"A version-specific identifier for the watched resource."`
	Token       string `` /* 149-byte string literal not displayed */
}

type ClientConfig

type ClientConfig struct {
	Credentials string   `` /* 130-byte string literal not displayed */
	Scopes      []string `json:"scopes" title:"Scopes" required:"true"`
}

type ExchangeAuthCode

type ExchangeAuthCode struct {
	// contains filtered or unexported fields
}

func (*ExchangeAuthCode) GetInfo

func (a *ExchangeAuthCode) GetInfo() module.ComponentInfo

func (*ExchangeAuthCode) Handle

func (a *ExchangeAuthCode) Handle(ctx context.Context, output module.Handler, port string, msg interface{}) error

func (*ExchangeAuthCode) Instance

func (a *ExchangeAuthCode) Instance() module.Component

func (*ExchangeAuthCode) Ports

func (a *ExchangeAuthCode) Ports() []module.Port

type ExchangeAuthCodeError

type ExchangeAuthCodeError struct {
	Request ExchangeAuthCodeInMessage `json:"request"`
	Error   string                    `json:"error"`
}

type ExchangeAuthCodeInContext

type ExchangeAuthCodeInContext any

type ExchangeAuthCodeInMessage

type ExchangeAuthCodeInMessage struct {
	Context     ExchangeAuthCodeInContext `json:"context" title:"Context" configurable:"true"`
	Config      ClientConfig              `json:"config" title:"Config"  required:"true" description:"Client Config"`
	AuthCode    string                    `json:"authCode" required:"true" title:"Authorisation code"`
	RedirectURL string                    `json:"redirectUrl" title:"Redirect URL" description:"Overrides redirect URL from config"`
}

type ExchangeAuthCodeOutMessage

type ExchangeAuthCodeOutMessage struct {
	Context ExchangeAuthCodeInContext `json:"context" title:"Context"`
	Token   Token                     `json:"token"`
}

type ExchangeAuthCodeSettings

type ExchangeAuthCodeSettings struct {
	EnableErrorPort bool `` /* 137-byte string literal not displayed */
}

type GetAuthUrl

type GetAuthUrl struct {
	// contains filtered or unexported fields
}

func (*GetAuthUrl) GetInfo

func (a *GetAuthUrl) GetInfo() module.ComponentInfo

func (*GetAuthUrl) Handle

func (a *GetAuthUrl) Handle(ctx context.Context, output module.Handler, port string, msg interface{}) error

func (*GetAuthUrl) Instance

func (a *GetAuthUrl) Instance() module.Component

func (*GetAuthUrl) Ports

func (a *GetAuthUrl) Ports() []module.Port

type GetAuthUrlErrorMessage

type GetAuthUrlErrorMessage struct {
	Request GetAuthUrlInMessage `json:"request"`
	Error   string              `json:"error"`
}

type GetAuthUrlInContext

type GetAuthUrlInContext any

type GetAuthUrlInMessage

type GetAuthUrlInMessage struct {
	Context       GetAuthUrlInContext `json:"context" title:"Context" configurable:"true"`
	Config        ClientConfig        `json:"config" required:"true" title:"Client credentials"`
	AccessType    string              `json:"accessType" title:"Type of access" enum:"offline,online" enumTitles:"Offline,Online" required:"true"`
	ApprovalForce bool                `json:"approvalForce" title:"ApprovalForce" required:"true"`
}

type GetAuthUrlOutMessage

type GetAuthUrlOutMessage struct {
	Request GetAuthUrlInMessage `json:"request"`
	AuthUrl string              `json:"authUrl" format:"uri"`
}

type GetAuthUrlSettings

type GetAuthUrlSettings struct {
	EnableErrorPort bool `` /* 137-byte string literal not displayed */
}

type GetCalendars

type GetCalendars struct {
	// contains filtered or unexported fields
}

func (*GetCalendars) GetInfo

func (g *GetCalendars) GetInfo() module.ComponentInfo

func (*GetCalendars) Handle

func (g *GetCalendars) Handle(ctx context.Context, output module.Handler, port string, msg interface{}) error

func (*GetCalendars) Instance

func (g *GetCalendars) Instance() module.Component

func (*GetCalendars) Ports

func (g *GetCalendars) Ports() []module.Port

type GetCalendarsContext

type GetCalendarsContext any

type GetCalendarsError

type GetCalendarsError struct {
	Request GetCalendarsRequest `json:"request"`
	Error   string              `json:"error"`
}

type GetCalendarsRequest

type GetCalendarsRequest struct {
	Context GetCalendarsContext `json:"context" title:"Context" configurable:"true"`
	Config  ClientConfig        `json:"config" title:"Config"  required:"true" description:"Client Config"`
	Token   Token               `json:"token" required:"true" title:"Auth Token"`
}

type GetCalendarsResponse

type GetCalendarsResponse struct {
	Request   GetCalendarsRequest           `json:"request"`
	Calendars []*calendar.CalendarListEntry `json:"calendars"`
}

type GetCalendarsSettings

type GetCalendarsSettings struct {
	EnableErrorPort bool `` /* 137-byte string literal not displayed */
}

type Token

type Token struct {
	AccessToken  string    `json:"access_token" required:"true" minLength:"1" title:"AccessToken" description:"Token that authorizes and authenticates"`
	TokenType    string    `` /* 142-byte string literal not displayed */
	RefreshToken string    `` /* 170-byte string literal not displayed */
	Expiry       time.Time `` /* 264-byte string literal not displayed */
}

Jump to

Keyboard shortcuts

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