MCPcopy Create free account
hub / github.com/DEROFDN/Engram / setAuthMode

Function setAuthMode

functions.go:694–700  ·  view source on GitHub ↗

* func getAuthMode() (result string, err error) { r, err := GetValue("settings", []byte("auth_mode")) if err != nil { StoreValue("settings", []byte("auth_mode"), []byte("true")) cyberdeck.mode = 1 result = "true" } else { result = string(r) if string(result) == "true" { cyb

(s string)

Source from the content-addressed store, hash-verified

692
693// Get the auth_mode settings from local Graviton tree
694func setAuthMode(s string) {
695 if s == "true" {
696 StoreValue("settings", []byte("auth_mode"), []byte("true"))
697 } else {
698 StoreValue("settings", []byte("auth_mode"), []byte("false"))
699 }
700}
701
702// Check if a URL exists in the string
703func getTextURL(s string) (result []string) {

Callers 1

layoutSettingsFunction · 0.85

Calls 1

StoreValueFunction · 0.85

Tested by

no test coverage detected