options

package
v0.0.0-...-d691e2b Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package options

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ControllerOptions

type ControllerOptions struct {
	RecommendedOptions           *genericoptions.RecommendedOptions
	FuncletClientOptions         *client.FuncletClientOptions
	DispatcherV2Options          *rtctrl.DispatcherV2Options
	RepositoryOptions            *registry.Options
	HttpTriggerRepositoryOptions *registry.Options
	RuntimeConfigOptions         *rtctrl.RuntimeConfigOptions
	AliasCacheOptions            *function.StorageCacheOptions
	// Task cycle interval
	// Units: seconds
	TaskInterval int

	// Task cycle interval
	// Units: seconds
	MetricsTaskInterval int

	// Runtime maximum idle time
	// Units: seconds
	MaxRuntimeIdle int

	// The longest expire time after runner disconnect
	// Units: seconds
	MaxRunnerDefunct int

	// The longest expire time after runner last reset
	// Units: seconds
	MaxRunnerResetTimeout int

	// Runtime concurrent mode switch
	ConcurrentMode bool
	// HTTP trigger feature switch
	HTTPEnhanced bool

	// Setting the proper go process for the best performance
	GoMaxProcs int

	EnableCanary bool

	SimpleAuth bool
}

ControllerOptions: options of the controller app

func NewOptions

func NewOptions() *ControllerOptions

func (*ControllerOptions) AddFlags

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

Jump to

Keyboard shortcuts

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