locations

package
v0.0.0-...-3f8eaf4 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Overview

Package locations determines a cache item's location (either in memory or on disc)

Index

Constants

View Source
const FS_PERMISSIONS = 0755

Variables

View Source
var ErrNotFound = errors.New("not found")

Functions

func FileSystem

func FileSystem() (*fileSystem, error)

FileSystem returns an instance of fileSystem Storer, ready to be used

func Memory

func Memory() (*memory, error)

Memory returns an instance of memory Storer, ready to be used

Types

type ItemInfo

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

func (*ItemInfo) Name

func (s *ItemInfo) Name() string

func (*ItemInfo) Size

func (s *ItemInfo) Size() int

Jump to

Keyboard shortcuts

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