doc

package
v1.4.5 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2023 License: Unlicense Imports: 14 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Dir *string
View Source
var Scene *string
View Source
var Url *string
View Source
var Worker *int

Functions

func GetDir added in v1.4.3

func GetDir(dir string) []string

func NewLeveldbStore added in v1.4.1

func NewLeveldbStore(path string) (tus.Store, error)

func StartServer added in v1.4.3

func StartServer()

func StartWorker added in v1.4.3

func StartWorker()

Types

type FileInfo

type FileInfo struct {
	Name      string   `json:"name"`
	ReName    string   `json:"rename"`
	Path      string   `json:"path"`
	Md5       string   `json:"md5"`
	Size      int64    `json:"size"`
	Peers     []string `json:"peers"`
	Scene     string   `json:"scene"`
	TimeStamp int64    `json:"timeStamp"`
	OffSet    int64    `json:"offset"`
	// contains filtered or unexported fields
}

type LeveldbStore added in v1.4.1

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

func (*LeveldbStore) Close added in v1.4.1

func (s *LeveldbStore) Close()

func (*LeveldbStore) Delete added in v1.4.1

func (s *LeveldbStore) Delete(fingerprint string)

func (*LeveldbStore) Get added in v1.4.1

func (s *LeveldbStore) Get(fingerprint string) (string, bool)

func (*LeveldbStore) Set added in v1.4.1

func (s *LeveldbStore) Set(fingerprint, url string)

Jump to

Keyboard shortcuts

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