storage

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package storage implements storage interface.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Storager

type Storager interface {
	Save(item entities.CacheItem) (bool, error)
	Load(hash string) (entities.CacheItem, error)
	Delete(item entities.CacheItem) error
	Close() error
	IsItemExist(hash string) (bool, string)
}

Storager is the main interface for storage logic.

Jump to

Keyboard shortcuts

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