forked from lestrrat-go/ical
-
Notifications
You must be signed in to change notification settings - Fork 0
/
interface.go
56 lines (43 loc) · 787 Bytes
/
interface.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
package ical
import (
"io"
"sync"
)
type Option interface {
configure(*Calendar)
}
type optionFunc func(*Calendar)
type PropertyOption interface {
Name() string
Get() interface{}
}
type propOptionValue struct {
name string
value interface{}
}
type Entry interface {
AddEntry(Entry) error
AddProperty(string, string, ...PropertyOption) error
GetProperty(string) (*Property, bool)
Entries() <-chan Entry
Properties() <-chan *Property
Type() string
//UID() string
}
type EntryList []Entry
type PropertySet struct {
mu sync.RWMutex
data map[string][]*Property
}
type Property struct {
vcal10 bool
name string
value string
params Parameters
}
type Parameters map[string][]string
type Parser struct{}
type Encoder struct {
crlf string
dst io.Writer
}