dircache

package
v2.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 26, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DirCache

type DirCache struct {
	// contains filtered or unexported fields
}

DirCache holds a map for accessing IDs by path.

func New

func New(client *putio.Client, requestTimeout time.Duration, remoteFolderID int64) *DirCache

func (*DirCache) Clear

func (c *DirCache) Clear()

func (*DirCache) Debug

func (c *DirCache) Debug()

func (*DirCache) Mkdirp

func (c *DirCache) Mkdirp(ctx context.Context, relpath string) (int64, error)

func (*DirCache) Set

func (c *DirCache) Set(relpath string, id int64)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL