payload

package
v0.0.0-...-5f02759 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2023 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Reader

type Reader struct {
	WorkPath string
	Path     string
	// contains filtered or unexported fields
}

func NewReader

func NewReader(workPath string, path string, offset int64) *Reader

func (*Reader) Close

func (r *Reader) Close()

func (*Reader) Get

func (r *Reader) Get(path string, offset int64, size int64) (string, error)

func (*Reader) Offset

func (r *Reader) Offset() int64

func (*Reader) Verify

func (r *Reader) Verify(offset int64, size int64) (string, error)

type Writer

type Writer struct {
	WorkPath string
	// contains filtered or unexported fields
}

func NewWriter

func NewWriter(workPath string, offset int64) *Writer

func (*Writer) Close

func (w *Writer) Close()

func (*Writer) HasContents

func (w *Writer) HasContents() bool

func (*Writer) Name

func (w *Writer) Name() string

func (*Writer) Put

func (w *Writer) Put(path string) (int, int, string, error)

Jump to

Keyboard shortcuts

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