Documentation ¶
Index ¶
- Constants
- Variables
- func AcquireWaveLock() (*filemutex.FileMutex, error)
- func CacheEnsureDir(dirName string, cacheKey string, perm os.FileMode, dirDesc string) error
- func ClientArch() string
- func DetermineLang() string
- func DetermineLocale() string
- func EnsureWaveConfigDir() error
- func EnsureWaveDBDir() error
- func EnsureWaveHomeDir() error
- func ExpandHomeDir(pathStr string) (string, error)
- func ExpandHomeDirSafe(pathStr string) string
- func GetDomainSocketName() string
- func GetHomeDir() string
- func GetWaveHomeDir() string
- func IsDevMode() bool
- func ReplaceHomeDir(pathStr string) string
- func TryMkdirs(dirName string, perm os.FileMode, dirDesc string) error
- func UnameKernelRelease() string
Constants ¶
View Source
const ConfigDir = "config"
View Source
const DefaultWaveHome = "~/.waveterm"
View Source
const DevWaveHome = "~/.waveterm-dev"
View Source
const DomainSocketBaseName = "wave.sock"
View Source
const JwtSecret = "waveterm" // TODO generate and store this
View Source
const WaveDBDir = "db"
View Source
const WaveDevVarName = "WAVETERM_DEV"
View Source
const WaveHomeVarName = "WAVETERM_HOME"
View Source
const WaveLockFile = "wave.lock"
Variables ¶
View Source
var BuildTime = "0"
View Source
var WaveVersion = "0.0.0"
set by main-server.go
Functions ¶
func AcquireWaveLock ¶
func AcquireWaveLock() (*filemutex.FileMutex, error)
func CacheEnsureDir ¶
func ClientArch ¶
func ClientArch() string
func DetermineLang ¶
func DetermineLang() string
func DetermineLocale ¶
func DetermineLocale() string
func EnsureWaveConfigDir ¶
func EnsureWaveConfigDir() error
func EnsureWaveDBDir ¶
func EnsureWaveDBDir() error
func EnsureWaveHomeDir ¶
func EnsureWaveHomeDir() error
func ExpandHomeDir ¶
func ExpandHomeDirSafe ¶ added in v0.8.3
func GetDomainSocketName ¶
func GetDomainSocketName() string
func GetHomeDir ¶
func GetHomeDir() string
func GetWaveHomeDir ¶
func GetWaveHomeDir() string
func ReplaceHomeDir ¶
func UnameKernelRelease ¶
func UnameKernelRelease() string
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.