Documentation ¶
Index ¶
- func SinkClientFactory(typ Type) (sync.Sink, error)
- func SourceClientFactory(typ Type) (sync.Source, error)
- type ConfigReader
- type SinkAdapter
- func (a SinkAdapter) CalendarID() string
- func (a SinkAdapter) CreateEvent(ctx context.Context, e models.Event) error
- func (a SinkAdapter) DeleteEvent(ctx context.Context, e models.Event) error
- func (a SinkAdapter) EventsInTimeframe(ctx context.Context, start time.Time, end time.Time) ([]models.Event, error)
- func (a SinkAdapter) GetCalendarID() string
- func (a SinkAdapter) Name() string
- func (a SinkAdapter) UpdateEvent(ctx context.Context, e models.Event) error
- type SourceAdapter
- type Type
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SinkClientFactory ¶
SinkClientFactory is a convenience factory. It is needed to retrieve new - default - client implementations.
Types ¶
type ConfigReader ¶
ConfigReader provides an interface for adapters to load their own configuration map. It's the adapter's responsibility to validate that the map is valid.
type SinkAdapter ¶
type SinkAdapter struct {
// contains filtered or unexported fields
}
func (SinkAdapter) CalendarID ¶
func (a SinkAdapter) CalendarID() string
func (SinkAdapter) CreateEvent ¶
func (SinkAdapter) DeleteEvent ¶
func (SinkAdapter) EventsInTimeframe ¶
func (SinkAdapter) GetCalendarID ¶ added in v0.8.0
func (a SinkAdapter) GetCalendarID() string
func (SinkAdapter) Name ¶
func (a SinkAdapter) Name() string
func (SinkAdapter) UpdateEvent ¶
type SourceAdapter ¶
type SourceAdapter struct {
// contains filtered or unexported fields
}
func (SourceAdapter) CalendarID ¶
func (a SourceAdapter) CalendarID() string
func (SourceAdapter) EventsInTimeframe ¶
func (SourceAdapter) GetCalendarID ¶ added in v0.8.0
func (a SourceAdapter) GetCalendarID() string
func (SourceAdapter) Name ¶
func (a SourceAdapter) Name() string
Click to show internal directories.
Click to hide internal directories.