mirror of
https://github.com/1f349/jasmine.git
synced 2024-09-19 10:56:25 +01:00
56 lines
1.5 KiB
Go
56 lines
1.5 KiB
Go
|
package jasmine
|
||
|
|
||
|
import (
|
||
|
"context"
|
||
|
"github.com/emersion/go-ical"
|
||
|
"github.com/emersion/go-webdav/caldav"
|
||
|
)
|
||
|
|
||
|
type Backend struct {
|
||
|
}
|
||
|
|
||
|
func (b *Backend) CalendarHomeSetPath(ctx context.Context) (string, error) {
|
||
|
//TODO implement me
|
||
|
panic("implement me")
|
||
|
}
|
||
|
|
||
|
func (b *Backend) ListCalendars(ctx context.Context) ([]caldav.Calendar, error) {
|
||
|
//TODO implement me
|
||
|
panic("implement me")
|
||
|
}
|
||
|
|
||
|
func (b *Backend) GetCalendar(ctx context.Context, path string) (*caldav.Calendar, error) {
|
||
|
//TODO implement me
|
||
|
panic("implement me")
|
||
|
}
|
||
|
|
||
|
func (b *Backend) GetCalendarObject(ctx context.Context, path string, req *caldav.CalendarCompRequest) (*caldav.CalendarObject, error) {
|
||
|
//TODO implement me
|
||
|
panic("implement me")
|
||
|
}
|
||
|
|
||
|
func (b *Backend) ListCalendarObjects(ctx context.Context, path string, req *caldav.CalendarCompRequest) ([]caldav.CalendarObject, error) {
|
||
|
//TODO implement me
|
||
|
panic("implement me")
|
||
|
}
|
||
|
|
||
|
func (b *Backend) QueryCalendarObjects(ctx context.Context, query *caldav.CalendarQuery) ([]caldav.CalendarObject, error) {
|
||
|
//TODO implement me
|
||
|
panic("implement me")
|
||
|
}
|
||
|
|
||
|
func (b *Backend) PutCalendarObject(ctx context.Context, path string, calendar *ical.Calendar, opts *caldav.PutCalendarObjectOptions) (loc string, err error) {
|
||
|
//TODO implement me
|
||
|
panic("implement me")
|
||
|
}
|
||
|
|
||
|
func (b *Backend) DeleteCalendarObject(ctx context.Context, path string) error {
|
||
|
//TODO implement me
|
||
|
panic("implement me")
|
||
|
}
|
||
|
|
||
|
func (b *Backend) CurrentUserPrincipal(ctx context.Context) (string, error) {
|
||
|
//TODO implement me
|
||
|
panic("implement me")
|
||
|
}
|