Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddObjectRequest ¶
type AddObjectRequest struct { Length uint64 ExpectedHash *hash.Hash } // Object data are streamed afterwards.
The AddObjects() RPC requires the client to send a stream of AddObjectRequest objects in Gob format. To signify the end of the stream, the client should send an AddObjectRequest object with .Length == 0. The server will send one AddObjectResponse for each AddObjectRequest, but it will not flush the connection until the client signals the end of the stream.
type AddObjectResponse ¶
type CheckObjectsRequest ¶
type CheckObjectsResponse ¶
type CheckObjectsResponse struct {
ObjectSizes []uint64 // size == 0: object not found.
}
type GetObjectsRequest ¶
type GetObjectsRequest struct { Exclusive bool // For initial performance benchmarking only. Hashes []hash.Hash }
This is used in the special GetObjects streaming HTTP/RPC protocol.
type GetObjectsResponse ¶
type TestBandwidthRequest ¶
type TestBandwidthResponse ¶
Click to show internal directories.
Click to hide internal directories.