Documentation ¶
Index ¶
- type Addition
- type Node
- type Urls
- func (d *Urls) Config() driver.Config
- func (d *Urls) Drop(ctx context.Context) error
- func (d *Urls) Get(ctx context.Context, path string) (model.Obj, error)
- func (d *Urls) GetAddition() driver.Additional
- func (d *Urls) Init(ctx context.Context) error
- func (d *Urls) Link(ctx context.Context, file model.Obj, args model.LinkArgs) (*model.Link, error)
- func (d *Urls) List(ctx context.Context, dir model.Obj, args model.ListArgs) ([]model.Obj, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Node ¶
Node is a node in the folder tree
func BuildTree ¶
build tree from text, text structure definition: *
- FolderName:
- [FileName:][FileSize:][Modified:]Url
*
- For example:
- folder1:
- name1:url1
- url2
- folder2:
- url3
- url4
- url5
- folder3:
- url6
- url7
- url8
if there are no name, use the last segment of url as name
func GetNodeFromRootByPath ¶
type Urls ¶
func (*Urls) GetAddition ¶
func (d *Urls) GetAddition() driver.Additional
Click to show internal directories.
Click to hide internal directories.