cache

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2023 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache added in v1.3.1

type Cache interface {
	Read(data interface{}) error
	Write(data interface{}) error
}

Cache is an interface to handle cache.

type FileSystem

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

FileSystem is a wrapper to handle realm specific file system operations.

func NewFileSystem

func NewFileSystem(realm string, init interface{}) *FileSystem

NewFileSystem creates a new FileSystem with realm scope.

func (*FileSystem) Read

func (fs *FileSystem) Read(data interface{}) error

func (*FileSystem) Write

func (fs *FileSystem) Write(data interface{}) error

type FileSystemError

type FileSystemError struct {
	Message string
}

FileSystemError is an error about filesystem operations.

func (FileSystemError) Error

func (e FileSystemError) Error() string

Jump to

Keyboard shortcuts

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