helper

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCfgPath

func GetCfgPath(filename string) string

GetCfgPath returns the path to the configuration file.

Priority: 1. If filename is an absolute path, return it directly. 2. Check ./{filename} and ./configs/{filename} 3. Otherwise, fallback to /etc/unla/{filename}

func GetPIDPath

func GetPIDPath(filename string) string

GetPIDPath returns the path to the PID file.

Priority: 1. If filename is an absolute path, return it directly. 2. Check ./{filename} and ./configs/{filename} 3. Otherwise, fallback to /var/run/mcp-gateway.pid

Types

This section is empty.

Jump to

Keyboard shortcuts

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