common

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: May 26, 2023 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const ClientTorrentSortFieldEnumInvalidTip = `must be any of: name|size|speed|state|time|tracker|none`
View Source
const ClientTorrentSortFieldEnumTip = `any of: name|size|speed|state|time|tracker|none`
View Source
const OrderEnumInvalidTip = `must be any of: asc|desc`
View Source
const OrderEnumTip = `any of: asc|desc`
View Source
const SiteTorrentSortFieldEnumInvalidTip = `must be any of: size|time|name|seeders|leechers|snatched|none`
View Source
const SiteTorrentSortFieldEnumTip = `any of: size|time|name|seeders|leechers|snatched|none`

Variables

This section is empty.

Functions

func ClientTorrentSortFieldEnumCompletion

func ClientTorrentSortFieldEnumCompletion(cmd *cobra.Command, args []string, toComplete string) (
	[]string, cobra.ShellCompDirective)

func OrderEnumCompletion

func OrderEnumCompletion(cmd *cobra.Command, args []string, toComplete string) (
	[]string, cobra.ShellCompDirective)

func SiteTorrentSortFieldEnumCompletion

func SiteTorrentSortFieldEnumCompletion(cmd *cobra.Command, args []string, toComplete string) (
	[]string, cobra.ShellCompDirective)

Types

type ClientTorrentSortFieldEnum

type ClientTorrentSortFieldEnum string

func (*ClientTorrentSortFieldEnum) Set

Set must have pointer receiver so it doesn't change the value of a copy

func (*ClientTorrentSortFieldEnum) String

func (e *ClientTorrentSortFieldEnum) String() string

String is used both by fmt.Print and by Cobra in help text

func (*ClientTorrentSortFieldEnum) Type

Type is only used in help text

type OrderEnum

type OrderEnum string

func (*OrderEnum) Set

func (e *OrderEnum) Set(v string) error

Set must have pointer receiver so it doesn't change the value of a copy

func (*OrderEnum) String

func (e *OrderEnum) String() string

String is used both by fmt.Print and by Cobra in help text

func (*OrderEnum) Type

func (e *OrderEnum) Type() string

Type is only used in help text

type SiteTorrentSortFieldEnum

type SiteTorrentSortFieldEnum string

func (*SiteTorrentSortFieldEnum) Set

Set must have pointer receiver so it doesn't change the value of a copy

func (*SiteTorrentSortFieldEnum) String

func (e *SiteTorrentSortFieldEnum) String() string

String is used both by fmt.Print and by Cobra in help text

func (*SiteTorrentSortFieldEnum) Type

func (e *SiteTorrentSortFieldEnum) Type() string

Type is only used in help text

Jump to

Keyboard shortcuts

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