storage

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlgoStorage

type AlgoStorage struct {
	Storage
}

func New

func New(cfg config.Config) *AlgoStorage

type Storage

type Storage interface {
	// Get - returns the same slice headers as stored in origin *model.Response! Don't mutate it, just copy if you need some more than read.
	Get(ctx context.Context, req *model.Request, fn model.ResponseCreator) (resp *model.Response, isHit bool, err error)
	Del(req *model.Request)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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