Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func OpenFilter ¶ added in v1.4.0
func OpenFilter(filter string, proto bool) (*bloomfilter.Filter, error)
Types ¶
type Bloom ¶
type Bloom struct {
Create CreateFilter `cmd:"" help:"create bloom filter based on a list of piece IDs"`
Generate Generate `cmd:"" help:"generate bloom filter with all one"`
Check Check `cmd:"" help:"checks piece ids (from file) against a bloom filter"`
MultiCheck MultiCheck `cmd:"" help:"check pieces in multiple bloom filters"`
Info Info `cmd:"" help:"print out bloom filter metadata"`
Send Send `cmd:"" help:"send bloom filter to a storagenode, with raw RPC call"`
SendClient SendClient `cmd:"" help:"send bloom filter to a storagenode, with piecestore client"`
Find Find `cmd:"" help:"Find BF for specific nodes in the generated ZIP files"`
Unwrap Unwrap `cmd:"" help:"unwrap a bloom filter (form pb representation to raw filter)"`
Parameters Parameters `cmd:"" help:"Show optimal size parameters"`
}
type Check ¶
type ChunkReader ¶
type CreateFilter ¶
type CreateFilter struct {
PiecesFile string `default:"pieces.txt"`
FalsePositiveRate float64 `default:"0.01"`
ExpectedElement int64 `default:"10000000"`
MaxMemory memory.Size `default:"2000000"`
Output string `default:"bloom.filter"`
}
func (CreateFilter) Run ¶
func (c CreateFilter) Run() error
type Generate ¶
type Info ¶
type MultiCheck ¶ added in v1.4.0
type MultiCheck struct {
Filters []string `default:""`
Pieces string `default:"" required:"true"`
Proto bool `help:"force protobuf based deserialization" default:"false"`
}
func (MultiCheck) Run ¶ added in v1.4.0
func (c MultiCheck) Run() error
type Parameters ¶ added in v1.5.0
type Parameters struct {
}
func (Parameters) Run ¶ added in v1.5.0
func (r Parameters) Run() error
type Retain ¶ added in v1.4.0
type SendClient ¶
type SendClient struct {
util.DialerHelper
URL storj.NodeURL
Filter string `arg:""`
}
func (SendClient) Run ¶
func (s SendClient) Run() error
Click to show internal directories.
Click to hide internal directories.