Documentation ¶
Index ¶
- func SinkClientFactory(typ Type) (sync.Sink, error)
- func SourceClientFactory(typ Type) (sync.Source, error)
- type ConfigReader
- type Configurable
- type LogSetter
- type OAuth2Adapter
- 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 Configurable ¶
type Configurable interface {
Initialize(ctx context.Context, config map[string]interface{}) error
}
Configurable is an interface which defines how arbitrary configuration data can be passed to a struct which implements this interface. Clients should be configurable.
type OAuth2Adapter ¶
type SinkAdapter ¶
type SinkAdapter struct {
// contains filtered or unexported fields
}
func NewSinkAdapterFromConfig ¶
func NewSinkAdapterFromConfig(ctx context.Context, bindPort uint, config ConfigReader, storage auth.Storage, logger *log.Logger) (*SinkAdapter, error)
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 NewSourceAdapterFromConfig ¶
func NewSourceAdapterFromConfig(ctx context.Context, bindPort uint, config ConfigReader, storage auth.Storage, logger *log.Logger) (*SourceAdapter, error)
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.