base

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cmd

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

func Init

func Init(cobraUtil *CobraUtil, opts ...Opts) *Cmd

func (*Cmd) GetPartition

func (b *Cmd) GetPartition() *model.Partition

func (*Cmd) GetTopic

func (b *Cmd) GetTopic() *model.Topic

type CobraUtil

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

func NewCobraUtil

func NewCobraUtil(cmd *cobra.Command) *CobraUtil

func (*CobraUtil) GetBoolArg

func (u *CobraUtil) GetBoolArg(argName string) bool

func (*CobraUtil) GetIntArg

func (u *CobraUtil) GetIntArg(argName string) int

func (*CobraUtil) GetStringArg

func (u *CobraUtil) GetStringArg(argName string) string

func (*CobraUtil) GetStringSliceArg

func (u *CobraUtil) GetStringSliceArg(argName string) []string

func (*CobraUtil) GetTopicNames

func (u *CobraUtil) GetTopicNames() []string

type Opts

type Opts func(cmd *Cmd)

func WithAddr

func WithAddr(brokerAddr string) Opts

func WithPartition

func WithPartition(zookeeper string) Opts

func WithSSH

func WithSSH() Opts

Jump to

Keyboard shortcuts

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