Documentation ¶
Overview ¶
Package protocol defines types for the storage protocol.
Index ¶
Constants ¶
View Source
const ChunkSize = 1024
ChunkSize size of a chunk of data
Variables ¶
View Source
var ( // is not allowed to get. ErrUnauthorized = errors.New("peer not authorized for requested file") )
Functions ¶
This section is empty.
Types ¶
type Storage ¶
Storage implements the storage protocol.
func NewStorage ¶
NewStorage creates a new storage server.
Directories ¶
Path | Synopsis |
---|---|
mockhandler
Package mockhandler is a generated GoMock package.
|
Package mockhandler is a generated GoMock package. |
mockencoder
Package mockencoder is a generated GoMock package.
|
Package mockencoder is a generated GoMock package. |
Click to show internal directories.
Click to hide internal directories.