config

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsWALEnabled

func IsWALEnabled() bool

IsWALEnabled checks if WAL is enabled for the system

func ShouldUseWALForBranch

func ShouldUseWALForBranch(projectUseWAL bool, isNew bool, explicitWAL bool) bool

ShouldUseWALForBranch determines if a branch should use WAL

func ShouldUseWALForProject

func ShouldUseWALForProject(isNew bool, explicitWAL bool) bool

ShouldUseWALForProject determines if a project should use WAL

Types

type Features

type Features struct {
	// WAL-related features
	EnableWAL           bool // Master switch for WAL functionality
	WALForNewProjects   bool // Use WAL for new projects
	WALForNewBranches   bool // Use WAL for new branches
	WALMigrationEnabled bool // Allow migration of existing branches to WAL
}

Features represents feature flags for the application

func GetFeatures

func GetFeatures() *Features

GetFeatures returns the current feature configuration

Jump to

Keyboard shortcuts

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