bridge

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2026 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Overview

AGPL v3 License Copyright (c) 2026 Project Backplane

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Expose

func Expose(label string, ptr interface{})

Expose registers a variable to be editable/viewable in the admin panel. label: Display name in the TUI ptr: Pointer to the variable

func GetBindings

func GetBindings() map[string]interface{}

GetBindings returns a snapshot of the current bindings. It returns map[label]value (interface{})

func GetInfo

func GetInfo(label string) string

GetInfo returns metadata about the variable (Type as string)

func SetAuditLogger

func SetAuditLogger(w io.Writer)

SetAuditLogger configures where audit logs are written

func SetValue

func SetValue(label string, newVal interface{}, operator string) error

SetValue sets the value of a bound variable and logs the action. It performs basic type assertions.

Types

type Bridge

type Bridge struct {
	// contains filtered or unexported fields
}

Bridge handles the connection between the app's runtime state and the admin panel.

Jump to

Keyboard shortcuts

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