Documentation
¶
Index ¶
- type NodeType
- type Operations
- type OperationsConfig
- type Tree
- type VNode
- func (n *VNode) AddChild(child *VNode)
- func (n *VNode) Children() []*VNode
- func (n *VNode) ClearChildren()
- func (n *VNode) GetChild(name string) *VNode
- func (n *VNode) IsDir() bool
- func (n *VNode) NeedsRefresh(ttl time.Duration) bool
- func (n *VNode) Parent() *VNode
- func (n *VNode) Path() string
- func (n *VNode) SetPopulated()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Operations ¶
type Operations struct {
// contains filtered or unexported fields
}
func NewOperations ¶
func NewOperations(cfg OperationsConfig) *Operations
func (*Operations) Tree ¶
func (o *Operations) Tree() *Tree
type OperationsConfig ¶
type OperationsConfig struct {
Tree *Tree
Drive *adapter.DriveAdapter
Wiki *adapter.WikiAdapter
Calendar *adapter.CalendarAdapter
Task *adapter.TaskAdapter
IM *adapter.IMAdapter
Mail *adapter.MailAdapter
Meeting *adapter.MeetingAdapter
ReadOnly bool
TTL time.Duration
}
type Tree ¶
type Tree struct {
// contains filtered or unexported fields
}
func (*Tree) DomainNode ¶
type VNode ¶
type VNode struct {
Name string
Token string
DocType doctype.DocType
NodeType NodeType
Domain string
Size int64
ModTime time.Time
// contains filtered or unexported fields
}
func NewRootNode ¶
func NewRootNode() *VNode
func (*VNode) ClearChildren ¶
func (n *VNode) ClearChildren()
func (*VNode) SetPopulated ¶
func (n *VNode) SetPopulated()
Click to show internal directories.
Click to hide internal directories.