depidx

package
v0.8.3 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2022 License: LGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Deps

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

func NewDeps

func NewDeps(cfg gocfg.ICfg) *Deps

func (*Deps) BoltStore added in v0.6.0

func (deps *Deps) BoltStore() *boltstore.BoltStore

func (*Deps) FS

func (deps *Deps) FS() fs.ISimpleFS

func (*Deps) FileInfos

func (deps *Deps) FileInfos() fileinfostore.IFileInfoStore

func (*Deps) ID

func (deps *Deps) ID() idgen.IIDGen

func (*Deps) KV

func (deps *Deps) KV() kvstore.IKVStore

func (*Deps) Limiter

func (deps *Deps) Limiter() iolimiter.ILimiter

func (*Deps) Log

func (deps *Deps) Log() *zap.SugaredLogger

func (*Deps) SetBoltStore added in v0.6.0

func (deps *Deps) SetBoltStore(boltStore *boltstore.BoltStore)

func (*Deps) SetFS

func (deps *Deps) SetFS(filesystem fs.ISimpleFS)

func (*Deps) SetFileInfos

func (deps *Deps) SetFileInfos(fileInfos fileinfostore.IFileInfoStore)

func (*Deps) SetID

func (deps *Deps) SetID(ider idgen.IIDGen)

func (*Deps) SetKV

func (deps *Deps) SetKV(kvstore kvstore.IKVStore)

func (*Deps) SetLimiter

func (deps *Deps) SetLimiter(limiter iolimiter.ILimiter)

func (*Deps) SetLog

func (deps *Deps) SetLog(logger *zap.SugaredLogger)

func (*Deps) SetSiteStore added in v0.4.11

func (deps *Deps) SetSiteStore(siteStore sitestore.ISiteStore)

func (*Deps) SetToken

func (deps *Deps) SetToken(tokenMaker cryptoutil.ITokenEncDec)

func (*Deps) SetUsers

func (deps *Deps) SetUsers(users userstore.IUserStore)

func (*Deps) SetWorkers

func (deps *Deps) SetWorkers(workers worker.IWorkerPool)

func (*Deps) SiteStore added in v0.4.11

func (deps *Deps) SiteStore() sitestore.ISiteStore

func (*Deps) Token

func (deps *Deps) Token() cryptoutil.ITokenEncDec

func (*Deps) Users

func (deps *Deps) Users() userstore.IUserStore

func (*Deps) Workers

func (deps *Deps) Workers() worker.IWorkerPool

type IUploader

type IUploader interface {
	Create(filePath string, size int64) error
	WriteChunk(filePath string, chunk []byte, off int64) (int, error)
	Status(filePath string) (int64, bool, error)
	Close() error
	Sync() error
}

Jump to

Keyboard shortcuts

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