cli

package
v0.0.0-...-703b195 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CLI

type CLI struct {
	// contains filtered or unexported fields
}

func NewCLI

func NewCLI() *CLI

func (*CLI) Run

func (c *CLI) Run() error

type Command

type Command interface {
	Run() error
	CobraCommand() *cobra.Command
}

type FiggCommand

type FiggCommand struct {
	Config *FiggConfig
	// contains filtered or unexported fields
}

func NewFiggCommand

func NewFiggCommand() *FiggCommand

func (*FiggCommand) AddCommand

func (c *FiggCommand) AddCommand(command Command)

func (*FiggCommand) CobraCommand

func (c *FiggCommand) CobraCommand() *cobra.Command

func (*FiggCommand) Run

func (c *FiggCommand) Run() error

type FiggConfig

type FiggConfig struct {
	Addr    string
	Verbose bool
}

type PublishCommand

type PublishCommand struct {
	Config *FiggConfig
	// contains filtered or unexported fields
}

func NewPublishCommand

func NewPublishCommand(config *FiggConfig) *PublishCommand

func (*PublishCommand) CobraCommand

func (c *PublishCommand) CobraCommand() *cobra.Command

func (*PublishCommand) Run

func (c *PublishCommand) Run() error

type StreamCommand

type StreamCommand struct {
	Config  *FiggConfig
	PubAddr string
	SubAddr string
	// contains filtered or unexported fields
}

func NewStreamCommand

func NewStreamCommand(config *FiggConfig) *StreamCommand

func (*StreamCommand) CobraCommand

func (c *StreamCommand) CobraCommand() *cobra.Command

func (*StreamCommand) Run

func (c *StreamCommand) Run() error

type SubscribeCommand

type SubscribeCommand struct {
	Config *FiggConfig
	// contains filtered or unexported fields
}

func NewSubscribeCommand

func NewSubscribeCommand(config *FiggConfig) *SubscribeCommand

func (*SubscribeCommand) CobraCommand

func (c *SubscribeCommand) CobraCommand() *cobra.Command

func (*SubscribeCommand) Run

func (c *SubscribeCommand) Run() error

Jump to

Keyboard shortcuts

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