simple

package
v0.0.0-...-ebe581b Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SimpleSlicer

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

SimpleSlicer cuts a file to several slices by blockSize

func New

New create a SimpleSlicer instance by configuration

func (*SimpleSlicer) GetBlockSize

func (ss *SimpleSlicer) GetBlockSize() int

GetBlockSize returns size of slice

func (*SimpleSlicer) Slice

func (ss *SimpleSlicer) Slice(ctx context.Context, r io.Reader, opt *slicer.SliceOptions,
	onErr func(err error)) chan slicer.Slice

Slice reads from IO and cut the data into slices by blockSize, and digests every slice by sha256

Jump to

Keyboard shortcuts

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