Home Download Docs Code Community
import "perkeep/pkg/blobserver/dir"
Overview
Index

Overview ▾

Package dir implements the blobserver Storage interface for a directory, detecting whether the directory is file-per-blob (localdisk) or diskpacked. If neither, it initializes diskpacked.

Index

func New(dir string) (blobserver.Storage, error)

Package files

dir.go

func New

func New(dir string) (blobserver.Storage, error)

New returns a new blobserver Storage implementation, storing blobs in the provided dir. If dir has an index.kv file, a diskpacked implementation is returned.

Website layout inspired by memcached.
Content by the authors.