client

package
v3.26.0 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package client contains an http implementation of the WriteLogger client.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Snapshotter

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

Snapshotter is a client for the Snapshotter API methods.

func New

func New(address dax.Address) *Snapshotter

func (*Snapshotter) Read

func (s *Snapshotter) Read(bucket string, key string, version int) (io.ReadCloser, error)

func (*Snapshotter) Write

func (s *Snapshotter) Write(bucket string, key string, version int, rc io.ReadCloser) error

func (*Snapshotter) WriteTo

func (s *Snapshotter) WriteTo(bucket string, key string, version int, wrTo io.WriterTo) error

WriteTo is exactly the same as Write, except that it takes an io.WriteTo instead of an io.ReadCloser. This needs to be cleaned up so that we're only using one or the other.

Jump to

Keyboard shortcuts

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