response_event

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ComponentName = "response_event"
	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 (g *Component) GetInfo() module.ComponentInfo

func (*Component) Handle

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

func (*Component) Instance

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

func (*Component) Ports

func (g *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" title:"Context" configurable:"true"`
	Config             etc.ClientConfig `json:"config" title:"Config"  required:"true" description:"Client Config"`
	Token              etc.Token        `json:"token" required:"true" title:"Auth Token"`
	CalendarID         string           `json:"calendarID" title:"Calendar ID" required:"true"`
	EventID            string           `json:"eventID" title:"Event ID" required:"true"`
	EventAttendeeEmail string           `json:"eventAttendeeEmail" title:"Event Attendee Email" required:"true"`
	ResponseStatus     string           `json:"responseStatus" title:"Response Status" required:"true" enum:"accepted,declined,tentative"`
}

type Response

type Response struct {
	Context Context `json:"context"`
}

type Settings

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

Jump to

Keyboard shortcuts

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