app

package
v1.6.3 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// NameDefault a name for application on default
	NameDefault string = "app"

	// MaxProcFieldName ENV name for value of maximum number process in goroutine manager pool
	MaxProcFieldName = "GOMAXPROC"

	// MaxProcDefault maximum number process in goroutine manager pool on default
	MaxProcDefault uint32 = 2
)

Variables

This section is empty.

Functions

func Configuration

func Configuration(config *Config, configurator configurator.Configurator, options ...Option)

Configuration set maximum number process in goroutine manager pool

Types

type Config

type Config struct {
	// Name this is a name for application
	Name string

	PID int
}

func NewConfig

func NewConfig() *Config

type Option

type Option func(config *Config) *Config

func WithAppName

func WithAppName(name string) Option

Jump to

Keyboard shortcuts

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