config

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package config provides configuration and path generation for shotty.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Hostname      string
	ScreenshotDir string
	RecordingDir  string
	StateFile     string
}

Config holds runtime configuration for shotty.

func New

func New() *Config

New creates a Config from environment defaults.

func (*Config) GenerateRecordingPath

func (c *Config) GenerateRecordingPath() string

GenerateRecordingPath returns a timestamped MP4 path under the recording directory.

func (*Config) GenerateScreenshotPath

func (c *Config) GenerateScreenshotPath() string

GenerateScreenshotPath returns a timestamped PNG path under the screenshot directory.

Jump to

Keyboard shortcuts

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