transformation

package
v0.9.3 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KeepAttendees

type KeepAttendees struct {
	UseEmailAsDisplayName bool
}

KeepAttendes allows to keep the attendees of an event. Actually to be safe that no email is going anywhere, we're using dummy addresses here. still RFC5322 compliant but updates are going to /dev/null Creating a copy of an event with the original email addresses is risky, so this transformer allows you configure:

  • UseEmailAsDisplayName to populate the email address as attendee display name in the sink, so you're seeing who is attending

func (*KeepAttendees) Name

func (t *KeepAttendees) Name() string

func (*KeepAttendees) Transform

func (t *KeepAttendees) Transform(source models.Event, sink models.Event) (models.Event, error)

type KeepDescription

type KeepDescription struct{}

KeepDescription allows to keep the description of an event.

func (*KeepDescription) Name

func (t *KeepDescription) Name() string

func (*KeepDescription) Transform

func (t *KeepDescription) Transform(source models.Event, sink models.Event) (models.Event, error)

type KeepLocation

type KeepLocation struct{}

KeepLocation allows to keep the location of an event.

func (*KeepLocation) Name

func (t *KeepLocation) Name() string

func (*KeepLocation) Transform

func (t *KeepLocation) Transform(source models.Event, sink models.Event) (models.Event, error)
type KeepMeetingLink struct{}

KeepMeetingLink allows to keep the meeting link of an event.

func (*KeepMeetingLink) Name

func (t *KeepMeetingLink) Name() string

func (*KeepMeetingLink) Transform

func (t *KeepMeetingLink) Transform(source models.Event, sink models.Event) (models.Event, error)

type KeepReminders

type KeepReminders struct{}

KeepReminders allows to keep the reminders of an event.

func (*KeepReminders) Name

func (t *KeepReminders) Name() string

func (*KeepReminders) Transform

func (t *KeepReminders) Transform(source models.Event, sink models.Event) (models.Event, error)

type KeepTitle

type KeepTitle struct{}

KeepTitle allows to keep the title of an event.

func (*KeepTitle) Name

func (t *KeepTitle) Name() string

func (*KeepTitle) Transform

func (t *KeepTitle) Transform(source models.Event, sink models.Event) (models.Event, error)

type PrefixTitle

type PrefixTitle struct {
	Prefix string
}

PrefixTitle allows to replace the title of an event.

func (*PrefixTitle) Name

func (t *PrefixTitle) Name() string

func (*PrefixTitle) Transform

func (t *PrefixTitle) Transform(_ models.Event, sink models.Event) (models.Event, error)

type ReplaceTitle

type ReplaceTitle struct {
	NewTitle string
}

ReplaceTitle allows to replace the title of an event.

func (*ReplaceTitle) Name

func (t *ReplaceTitle) Name() string

func (*ReplaceTitle) Transform

func (t *ReplaceTitle) Transform(_ models.Event, sink models.Event) (models.Event, error)

Jump to

Keyboard shortcuts

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