cas

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Storage

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

Storage is a cached content addressable storage handler.

func NewStorage

func NewStorage(ctx context.Context, logger *zap.Logger, cacheDir string, cacheMaxBytes int64, secureHashSecret []byte, baseURL string, ups upstream.Upstream) (*Storage, error)

func (*Storage) Get

func (s *Storage) Get(c echo.Context) error

func (*Storage) Put

func (s *Storage) Put(c echo.Context) error

Jump to

Keyboard shortcuts

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