filegenerator

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: Apache-2.0 Imports: 2 Imported by: 16

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientRequest

type ClientRequest struct {
	GetObjectRequest *GetObjectRequest
	YieldRequest     *YieldRequest
}

type FileInfo

type FileInfo struct {
	Pathname string
	Hash     hash.Hash
	Length   uint64
}

type GetObjectRequest

type GetObjectRequest struct {
	Hash hash.Hash
}

type GetObjectResponse

type GetObjectResponse struct {
	Hash hash.Hash
	Data []byte
}

type ServerMessage

type ServerMessage struct {
	GetObjectResponse *GetObjectResponse
	YieldResponse     *YieldResponse
}

ServerMessage types are sent in response to requests from the client and also due to internal state changes in the server.

type YieldRequest

type YieldRequest struct {
	Machine   mdb.Machine
	Pathnames []string
}

type YieldResponse

type YieldResponse struct {
	Hostname string
	Files    []FileInfo
}

Jump to

Keyboard shortcuts

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