Documentation
¶
Index ¶
- Constants
- Variables
- func EnsureDataDir() error
- func EnsureHomeDir() error
- func EnsureOutrigId(shouldCreate bool) (string, bool, error)
- func GetDomainSocketName() string
- func GetOutrigDataDir() string
- func GetOutrigHome() string
- func GetTEventsFilePath() string
- func GetWebServerPort() int
- func IsDev() bool
- type FDLock
Constants ¶
const AppcastURL = "https://updates.outrig.run/appcast.xml"
const DevWebServerPort = 6005
Development port for server
const OutrigDataDir = "data"
const OutrigDevEnvName = "OUTRIG_DEV"
const OutrigIdFile = "outrig.id"
const OutrigLockFile = "outrig.lock"
const OutrigTEventsFile = "tevents.jsonl"
const ProdWebServerPort = 5005
Default production port for server
Variables ¶
var OutrigBuildTime = ""
OutrigBuildTime is the build timestamp of Outrig This gets set from main-server.go during initialization
var OutrigCommit = ""
OutrigCommit is the git commit hash of this build This gets set from main-server.go during initialization
var OutrigFirstRun bool
OutrigFirstRun indicates if this is the first run of this Outrig server instance
var OutrigId string
OutrigId is the unique identifier for this Outrig server instance
var OutrigServerVersion = "v0.7.4"
OutrigServerVersion is the current version of Outrig This gets set from main-server.go during initialization
Functions ¶
func EnsureDataDir ¶
func EnsureDataDir() error
func EnsureHomeDir ¶
func EnsureHomeDir() error
func EnsureOutrigId ¶
EnsureOutrigId ensures that the outrig.id file exists and contains a valid UUID. If the file doesn't exist and shouldCreate is true, it creates it with a new UUID. If the file exists but contains an invalid UUID and shouldCreate is true, it overwrites it with a new UUID. If shouldCreate is false and no valid UUID exists, it returns "", false, nil. Returns: - The UUID (either read from the file or newly generated) - A boolean indicating if a new UUID was generated (true) or read from an existing file (false) - An error if one occurred during the process
func GetDomainSocketName ¶
func GetDomainSocketName() string
GetDomainSocketName returns the full domain socket path
func GetOutrigDataDir ¶
func GetOutrigDataDir() string
GetOutrigDataDir returns the path to the data directory
func GetOutrigHome ¶
func GetOutrigHome() string
GetOutrigHome returns the appropriate home directory based on mode
func GetTEventsFilePath ¶
func GetTEventsFilePath() string
GetTEventsFilePath returns the full path to the tevents.jsonl file
func GetWebServerPort ¶
func GetWebServerPort() int
GetWebServerPort returns the appropriate web server port based on mode