pebblestorage

package module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2026 License: MIT Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Storage

type Storage struct {
	DB           *pebble.DB
	WriteOptions *pebble.WriteOptions
}

Implements the ghtransport.Storage interface using github.com/cockroachdb/pebble.

func MustOpen

func MustOpen(path string, opts *pebble.Options) *Storage

MustOpen is a wrapper around Open that panics if an error occurs.

func Open

func Open(path string, opts *pebble.Options) (*Storage, error)

Open is a wrapper around pebble.Open that returns an initialized Storage.

func (*Storage) Get

func (s *Storage) Get(ctx context.Context, req *http.Request) (_ *http.Response, rerr error)

func (*Storage) Put

func (s *Storage) Put(ctx context.Context, resp *http.Response) error

Jump to

Keyboard shortcuts

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