server

package
v0.0.0-...-cdcf638 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2018 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExtraOptions

type ExtraOptions struct {
	MaxNumRequeues     int
	NumThreads         int
	QPS                float64
	Burst              int
	ResyncPeriod       time.Duration
	GarbageCollectTime time.Duration
}

func NewExtraOptions

func NewExtraOptions() *ExtraOptions

func (*ExtraOptions) AddFlags

func (s *ExtraOptions) AddFlags(fs *pflag.FlagSet)

func (*ExtraOptions) AddGoFlags

func (s *ExtraOptions) AddGoFlags(fs *flag.FlagSet)

func (*ExtraOptions) ApplyTo

func (s *ExtraOptions) ApplyTo(cfg *controller.Config) error

type MessengerOptions

type MessengerOptions struct {
	RecommendedOptions *genericoptions.RecommendedOptions
	ExtraOptions       *ExtraOptions

	StdOut io.Writer
	StdErr io.Writer
}

func NewMessengerOptions

func NewMessengerOptions(out, errOut io.Writer) *MessengerOptions

func (MessengerOptions) AddFlags

func (o MessengerOptions) AddFlags(fs *pflag.FlagSet)

func (*MessengerOptions) Complete

func (o *MessengerOptions) Complete() error

func (MessengerOptions) Config

func (MessengerOptions) Run

func (o MessengerOptions) Run(stopCh <-chan struct{}) error

func (MessengerOptions) Validate

func (o MessengerOptions) Validate(args []string) error

Jump to

Keyboard shortcuts

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