process

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func For

func For(id uint8, name, configDir string) (*instance, error)

func FromConfig

func FromConfig(directory string) (*instance, error)

FromConfig instantiates a new instance of the process from the given configuration directory.

func GetHttpdConfig

func GetHttpdConfig(path string) ([]string, error)

func GetLog4j2Config

func GetLog4j2Config(path string) (map[string]string, error)

func GetLog4jConfig

func GetLog4jConfig(path string) ([]string, error)

Types

type Error

type Error string
const (
	ErrConfigDirNotFound  Error = "config directory not found"
	ErrConfigFileNotFound Error = "config file not found"
	ErrInvalidConfigFile  Error = "invalid config file"
)

func (Error) Error

func (e Error) Error() string

type Instance

type Instance interface {
	ID() int
	Process() *Process
	Config() *viper.Viper
}

type Process

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

func (Process) Instances

func (p Process) Instances() []*instance

func (Process) Name

func (p Process) Name() string

Jump to

Keyboard shortcuts

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