scbase

package
v0.7.6 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2024 License: Apache-2.0 Imports: 19 Imported by: 1

Documentation

Index

Constants

View Source
const HomeVarName = "HOME"
View Source
const ScreensDirBaseName = "screens"
View Source
const SessionsDirBaseName = "sessions"
View Source
const WaveAppPathVarName = "WAVETERM_APP_PATH"
View Source
const WaveAuthKeyFileName = "waveterm.authkey"
View Source
const WaveDevDirName = ".waveterm-dev" // must match emain.ts
View Source
const WaveDevVarName = "WAVETERM_DEV"
View Source
const WaveDirName = ".waveterm" // must match emain.ts
View Source
const WaveHomeVarName = "WAVETERM_HOME"
View Source
const WaveLockFile = "waveterm.lock"
View Source
const WaveshellVersion = "v0.7.0" // must match base.WaveshellVersion

Variables

View Source
var BaseLock = &sync.Mutex{}
View Source
var BuildTime = "-"

these are set by the main-server using build-time variables

View Source
var ScreenDirCache = make(map[string]string)
View Source
var SessionDirCache = make(map[string]string)
View Source
var WaveAuthKey string

initialized by InitialzeWaveAuthKey (called by main-server)

View Source
var WaveVersion = "-"

Functions

func AcquireWaveLock

func AcquireWaveLock() (*os.File, error)

func ClientArch

func ClientArch() string

func DetermineLang

func DetermineLang() string

func EnsureConfigDirs

func EnsureConfigDirs() (string, error)

func EnsureScreenDir

func EnsureScreenDir(screenId string) (string, error)

func EnsureSessionDir

func EnsureSessionDir(sessionId string) (string, error)

deprecated (v0.1.8)

func GenWaveUUID

func GenWaveUUID() string

func GetScreensDir

func GetScreensDir() string

func GetSessionsDir

func GetSessionsDir() string

deprecated (v0.1.8)

func GetWaveHomeDir

func GetWaveHomeDir() string

must match js

func InitializeWaveAuthKey

func InitializeWaveAuthKey() error

sets WaveAuthKey

func IsDevMode

func IsDevMode() bool

func LocalWaveshellBinaryPath

func LocalWaveshellBinaryPath() (string, error)

func NumFormatB2

func NumFormatB2(num int64) string

func NumFormatDec

func NumFormatDec(num int64) string

func PtyOutFile

func PtyOutFile(screenId string, lineId string) (string, error)

func PtyOutFile_Sessions

func PtyOutFile_Sessions(sessionId string, cmdId string) (string, error)

deprecated (v0.1.8)

func UnameKernelRelease

func UnameKernelRelease() string

func WaveshellBinaryDir

func WaveshellBinaryDir() string

func WaveshellBinaryPath

func WaveshellBinaryPath(version string, goos string, goarch string) (string, error)

func WaveshellBinaryReader

func WaveshellBinaryReader(version string, goos string, goarch string) (io.ReadCloser, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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