cmd

package
v0.0.0-...-f061898 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2022 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

Types

type ArchiveDownload

type ArchiveDownload struct {
	Href string `json:"href"`
}

type ArchiveInfo

type ArchiveInfo struct {
	Links             *ArchiveLinks `json:"_links"`
	DurationFormatted string        `json:"duration_formatted"`
	End               time.Time     `json:"end"`
	Filename          string        `json:"filename"`
	Filesize          string        `json:"filesize"`

	Start          time.Time `json:"start"`
	StartFormatted string    `json:"start_formatted"`
	// contains filtered or unexported fields
}

func (*ArchiveInfo) Overlaps

func (ai *ArchiveInfo) Overlaps(start, end time.Time) bool

func (*ArchiveInfo) Size

func (ai *ArchiveInfo) Size() (int, error)

type ArchiveInfoMatchesFn

type ArchiveInfoMatchesFn func(*ArchiveInfo) bool

func ArchivesOverlap

func ArchivesOverlap(start, end time.Time) ArchiveInfoMatchesFn

type ArchiveInfos

type ArchiveInfos []*ArchiveInfo

func (ArchiveInfos) Len

func (a ArchiveInfos) Len() int

func (ArchiveInfos) Matches

func (ArchiveInfos) Size

func (a ArchiveInfos) Size() (int, error)
type ArchiveLinks struct {
	Download ArchiveDownload `json:"download"`
}

Jump to

Keyboard shortcuts

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