Fixed replace directive
This commit is contained in:
12
vendor/github.com/samedi/caldav-go/README.md
generated
vendored
12
vendor/github.com/samedi/caldav-go/README.md
generated
vendored
@ -176,6 +176,18 @@ The default storage used (if none is explicitly set) is the `data.FileStorage` w
|
||||
|
||||
The resources can be of two types: collection and non-collection. A collection resource is basically a resource that has children resources, but does not have any data content. A non-collection resource is a resource that does not have children, but has data. In the case of a file storage, collections correspond to directories and non-collection to plain files. The data of a caldav resource is all the info that shows up in the calendar client, in the [iCalendar](https://en.wikipedia.org/wiki/ICalendar) format.
|
||||
|
||||
### Configuration
|
||||
|
||||
You can set the caldav types your storage engine supports like so:
|
||||
|
||||
```go
|
||||
caldav.SetupSupportedComponents([]string{lib.VCALENDAR, lib.VEVENT})
|
||||
```
|
||||
|
||||
The default is `lib.VCALENDAR` and `lib.VEVENT`.
|
||||
|
||||
`caldav-go` will report these supported types to the client.
|
||||
|
||||
### Features
|
||||
|
||||
Please check the **CHANGELOG** to see specific features that are currently implemented.
|
||||
|
2
vendor/github.com/samedi/caldav-go/config.go
generated
vendored
2
vendor/github.com/samedi/caldav-go/config.go
generated
vendored
@ -21,4 +21,4 @@ func SetupUser(username string) {
|
||||
// SetupSupportedComponents sets all components which are supported by this storage implementation.
|
||||
func SetupSupportedComponents(components []string) {
|
||||
global.SupportedComponents = components
|
||||
}
|
||||
}
|
||||
|
3
vendor/github.com/samedi/caldav-go/data/resource.go
generated
vendored
3
vendor/github.com/samedi/caldav-go/data/resource.go
generated
vendored
@ -2,7 +2,6 @@ package data
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"github.com/laurent22/ical-go/ical"
|
||||
"io/ioutil"
|
||||
"log"
|
||||
"os"
|
||||
@ -10,6 +9,8 @@ import (
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/laurent22/ical-go"
|
||||
|
||||
"github.com/samedi/caldav-go/files"
|
||||
"github.com/samedi/caldav-go/lib"
|
||||
)
|
||||
|
2
vendor/github.com/samedi/caldav-go/global/global.go
generated
vendored
2
vendor/github.com/samedi/caldav-go/global/global.go
generated
vendored
@ -14,4 +14,4 @@ var Storage data.Storage = new(data.FileStorage)
|
||||
var User *data.CalUser
|
||||
|
||||
// SupportedComponents contains all components which are supported by the current storage implementation
|
||||
var SupportedComponents = []string{lib.VCALENDAR, lib.VEVENT}
|
||||
var SupportedComponents = []string{lib.VCALENDAR, lib.VEVENT}
|
||||
|
8
vendor/github.com/samedi/caldav-go/go.mod
generated
vendored
8
vendor/github.com/samedi/caldav-go/go.mod
generated
vendored
@ -1,8 +0,0 @@
|
||||
module github.com/samedi/caldav-go
|
||||
|
||||
go 1.12
|
||||
|
||||
require (
|
||||
github.com/beevik/etree v0.0.0-20171015221209-af219c0c7ea1
|
||||
github.com/laurent22/ical-go v0.0.0-20170824131750-e4fec3492969
|
||||
)
|
4
vendor/github.com/samedi/caldav-go/handlers/report.go
generated
vendored
4
vendor/github.com/samedi/caldav-go/handlers/report.go
generated
vendored
@ -113,8 +113,8 @@ func (rh reportHandler) fetchResourcesByFilters(origin *data.Resource, filtersXM
|
||||
return reps, err
|
||||
}
|
||||
|
||||
for in, resource := range resources {
|
||||
reps = append(reps, reportRes{resource.Path, &resources[in], true})
|
||||
for _, resource := range resources {
|
||||
reps = append(reps, reportRes{resource.Path, &resource, true})
|
||||
}
|
||||
} else {
|
||||
// the origin resource is not a collection, so returns just that as the result
|
||||
|
4
vendor/modules.txt
vendored
4
vendor/modules.txt
vendored
@ -80,7 +80,7 @@ github.com/inconshreveable/mousetrap
|
||||
# github.com/jgautheron/goconst v0.0.0-20170703170152-9740945f5dcb
|
||||
github.com/jgautheron/goconst/cmd/goconst
|
||||
github.com/jgautheron/goconst
|
||||
# github.com/labstack/echo/v4 v4.1.5 => ../../github.com/labstack/echo
|
||||
# github.com/labstack/echo/v4 v4.1.5 => github.com/kolaente/echo/v4 v4.0.0-20190507190305-3725a216d803
|
||||
github.com/labstack/echo/v4
|
||||
github.com/labstack/echo/v4/middleware
|
||||
# github.com/labstack/gommon v0.2.8
|
||||
@ -134,7 +134,7 @@ github.com/prometheus/procfs
|
||||
github.com/prometheus/procfs/nfs
|
||||
github.com/prometheus/procfs/xfs
|
||||
github.com/prometheus/procfs/internal/util
|
||||
# github.com/samedi/caldav-go v3.0.0+incompatible => ../../github.com/samedi/caldav-go
|
||||
# github.com/samedi/caldav-go v3.0.0+incompatible => github.com/kolaente/caldav-go v3.0.1-0.20190515182556-0537fdbe9340+incompatible
|
||||
github.com/samedi/caldav-go
|
||||
github.com/samedi/caldav-go/data
|
||||
github.com/samedi/caldav-go/errs
|
||||
|
Reference in New Issue
Block a user