controller

package
v0.0.0-...-308dece Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ControllersInterface

type ControllersInterface interface {
	// Start starts all of the controllers.
	Start(ctx context.Context) error

	// Stop stops all of the controllers.
	Stop(ctx context.Context) error
}

ControllersInterface defines methods that controllers must implement.

func NewControllers

func NewControllers(ctx context.Context, op *Options) (ControllersInterface, error)

NewControllers inits controllers.

type Options

type Options struct {
	// Use stdout exporter.
	UseStdoutExporter bool

	// Use Collector.
	UseCollector bool
	OTLPEndpoint string
}

Options is the configuration of controllers.

func NewOptions

func NewOptions() *Options

NewOptions news configurations of controllers.

func (*Options) AddFlags

func (op *Options) AddFlags(fs *pflag.FlagSet)

AddFlags adds flag options.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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