segment

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: AGPL-3.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrintBusFactor

func PrintBusFactor(nodes []*nodeselection.SelectedNode, selector nodeselection.NodeAttribute, threshold int)

Types

type Availability

type Availability struct {
	StreamID string `arg:""`
	util.DialerHelper
	Keys string `required:""`
}

Availability reports the status / availability of one single segment.

func (*Availability) Run

func (s *Availability) Run() error

type Classify

type Classify struct {
	StreamID              string `arg:""`
	PlacementFile         string
	UseParticipatingNodes bool
}

func (*Classify) Run

func (s *Classify) Run() error

type Download

type Download struct {
	StreamID string `arg:""`
	util.DialerHelper
	Keys string `required:""`
}

func (*Download) Run

func (s *Download) Run() error

type ECDecode

type ECDecode struct {
	StreamID string `arg:""`
}

func (*ECDecode) Run

func (s *ECDecode) Run() error

type Histogram

type Histogram struct {
	Selector string
	StreamID string `arg:""`
}

func (Histogram) Run

func (h Histogram) Run() error

type Nodes

type Nodes struct {
	NodeIDs string `arg:""`
	Verbose bool   `default:"true"`
}

func (Nodes) Run

func (h Nodes) Run() error

type PieceList

type PieceList struct {
	StreamID string `arg:""`
	util.DialerHelper
	Keys string
}

PieceList reports the status / availability of one single segment.

func (*PieceList) Run

func (s *PieceList) Run() error

type Segment

type Segment struct {
	Histogram    Histogram    `cmd:"" help:"diversity histogram of a segment"`
	List         PieceList    `cmd:"" help:"list piece locations in a csv for one single segment"`
	Availability Availability `cmd:"" help:"test availability of the segment with calling exists endpoints"`
	Classify     Classify     `cmd:"" help:"execute piece classification on segment"`
	Download     Download     `cmd:"" help:"download all the available pieces ASAP"`
	Ecdecode     ECDecode     `cmd:"" help:"decode original segment from downloaded pieces"`
	Show         Show         `cmd:"" help:"show information about the segment"`
	Nodes        Nodes        `cmd:"" help:"print details of nodes"`
}

Segment contains command which uses direct database connection.

type Show

type Show struct {
	StreamID string `arg:""`
}

func (*Show) Run

func (s *Show) Run() error

Jump to

Keyboard shortcuts

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