types

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidHash = errors.New("invalid hash")
)

Functions

This section is empty.

Types

type File

type File struct {
	Name string
	Data io.Reader
	Size int64
	Hash string
}

type State

type State struct {
	Files iter.Seq[*File]
}

func NewState

func NewState() *State

type SyncError

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

func (*SyncError) Join

func (e *SyncError) Join(err error) error

Jump to

Keyboard shortcuts

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