byterange

package
v0.0.0-...-1059341 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JobQueue

type JobQueue struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func (*JobQueue) Len

func (q *JobQueue) Len() int

func (*JobQueue) Less

func (q *JobQueue) Less(i, j int) bool

func (*JobQueue) Pop

func (q *JobQueue) Pop() (*job, bool)

func (*JobQueue) Push

func (q *JobQueue) Push(item *job)

func (*JobQueue) PushFront

func (q *JobQueue) PushFront(item *job)

func (*JobQueue) Swap

func (q *JobQueue) Swap(i, j int)

type Range

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

func New

func New(service *titan.Service, size int64) *Range

func (*Range) GetFile

func (r *Range) GetFile(ctx context.Context, cid cid.Cid) (int64, io.ReadCloser, error)

Jump to

Keyboard shortcuts

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