localcache

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2026 License: Apache-2.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 Config

type Config struct {
	Path string
	Open bool
}

type FileResponseWriteCloser

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

func (*FileResponseWriteCloser) Close

func (w *FileResponseWriteCloser) Close() error

func (*FileResponseWriteCloser) Write

func (w *FileResponseWriteCloser) Write(p []byte) (n int, err error)

type LocalCache

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

func (*LocalCache) GetFile

func (l *LocalCache) GetFile(f func(value ...any) ([]byte, error), value ...any) (*web.File, error)

func (*LocalCache) GetFileForSuffix

func (l *LocalCache) GetFileForSuffix(suffix string, f func(value ...any) ([]byte, error), value ...any) (*web.File, error)

func (*LocalCache) GetFileResponseWrite

func (l *LocalCache) GetFileResponseWrite(response web.Response, f func(fileResponseWriteCloser *FileResponseWriteCloser, value ...any) error, value ...any) error

func (*LocalCache) GetPath

func (l *LocalCache) GetPath(value ...any) string

func (*LocalCache) HasFile

func (l *LocalCache) HasFile(value ...any) bool

func (*LocalCache) Init

func (l *LocalCache) Init(context context.Context, cfg config2.IConfig) error

func (*LocalCache) SaveBase64File

func (l *LocalCache) SaveBase64File(base64file string) (string, error)

func (*LocalCache) SaveBase64FileForPath

func (l *LocalCache) SaveBase64FileForPath(base64file string, savePath string, suffix string) (string, error)

Jump to

Keyboard shortcuts

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