functionFlags

package
v0.1.10 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Method = &cli.StringFlag{
		Name:     "method",
		Aliases:  []string{"m"},
		Category: CategoryHttp,
		Usage:    flags.UsageOneOfOption(common.HTTPMethodTypes),
	}

	Domains = &cli.StringSliceFlag{
		Name:     flags.Domains.Name,
		Aliases:  flags.Domains.Aliases,
		Category: CategoryHttp,
	}

	Paths = &cli.StringSliceFlag{
		Name:     flags.Paths.Name,
		Aliases:  flags.Paths.Aliases,
		Category: CategoryHttp,
	}

	Generate = &cli.BoolFlag{
		Name:     "generate-domain",
		Aliases:  []string{"g"},
		Usage:    "Generates a new domain if no domains found",
		Category: CategoryHttp,
	}
)
View Source
var (
	Protocol = &cli.StringFlag{
		Name:     "protocol",
		Aliases:  []string{"pr"},
		Category: CategoryP2P,
		Usage:    "Protocol to use for the endpoint, either service name or protocol",
	}

	Command = &cli.StringFlag{
		Name:     "command",
		Aliases:  []string{"cmd"},
		Category: CategoryP2P,
		Usage:    "Command to execute",
	}
)
View Source
var (
	CategoryHttp   = "HTTP(S)"
	CategoryP2P    = "P2P"
	CategoryPubSub = "PUBSUB"
)
View Source
var Channel = &cli.StringFlag{
	Name:     "channel",
	Aliases:  []string{"ch"},
	Category: CategoryPubSub,
	Usage:    "Channel to subscribe to",
}
View Source
var Type = &cli.StringFlag{
	Name:  "type",
	Usage: flags.UsageOneOfOption(common.FunctionTypes),
}

Functions

func Http

func Http() []cli.Flag

func P2P

func P2P() []cli.Flag

func PubSub

func PubSub() []cli.Flag

Types

This section is empty.

Jump to

Keyboard shortcuts

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