get_events

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ComponentName = "calendar_get_events"
	RequestPort   = "request"
	ResponsePort  = "response"
	ErrorPort     = "error"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Component

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

func (*Component) GetInfo

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

func (*Component) Handle

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

func (*Component) Instance

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

func (*Component) Ports

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

type Context

type Context any

type Error

type Error struct {
	Context Context `json:"context"`
	Error   string  `json:"error"`
}

type Request

type Request struct {
	Context      Context          `json:"context,omitempty" configurable:"true" title:"Context" description:"Arbitrary message to be send further"`
	Config       etc.ClientConfig `json:"config" required:"true" title:"Client credentials"`
	CalendarId   string           `json:"calendarId" required:"true" default:"primary" minLength:"1" title:"Calendar ID"`
	StartDate    time.Time        `json:"startDate" title:"Start date"`
	EndDate      time.Time        `json:"endDate" title:"End date"`
	Token        etc.Token        `json:"token" required:"true" title:"Auth Token"`
	SyncToken    string           `json:"syncToken,omitempty" title:"Sync Token" description:"To proceed syncing from previous position"`
	PageToken    string           `json:"pageToken,omitempty" title:"Page Token" description:"Token used to retrieve the page."`
	ShowDeleted  bool             `json:"showDeleted,omitempty" title:"Show deleted events" default:"true"`
	SingleEvents bool             `` /* 177-byte string literal not displayed */
	MaxResults   int64            `` /* 130-byte string literal not displayed */
}

type Response

type Response struct {
	Context Context         `json:"context"`
	Results calendar.Events `json:"results"`
}

type Settings

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

Jump to

Keyboard shortcuts

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