Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewLimitWriteCloser ¶
func NewLimitWriteCloser(w io.WriteCloser, c int64) io.WriteCloser
NewLimitWriteCloser creates a new LimitWriteCloser.
func NopWriteCloser ¶
func NopWriteCloser(w io.Writer) io.WriteCloser
NopWriteCloser returns a new io.WriteCloser with the given writer as io.Writer.
Types ¶
type ApiStore ¶
ApiStore provies a storage.Putter that adds chunks to swarm through the HTTP chunk API.
type FsStore ¶
type FsStore struct {
// contains filtered or unexported fields
}
FsStore provides a storage.Putter that writes chunks directly to the filesystem. Each chunk is a separate file, where the hex address of the chunk is the file name.
type LimitWriteCloser ¶
type LimitWriteCloser struct { io.WriteCloser // contains filtered or unexported fields }
LimitWriteCloser limits the output from the application.
type PutGetter ¶
PutGetter wraps both storage.Putter and storage.Getter interfaces
func NewApiStore ¶
NewApiStore creates a new ApiStore.
Click to show internal directories.
Click to hide internal directories.