types

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2026 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const APrefix = "browser"
View Source
const RouteFoo = "/foo"

Variables

This section is empty.

Functions

func LogArgs

func LogArgs(args am.A) map[string]string

LogArgs is an args logger for A.

func ParseRpc

func ParseRpc(args am.A) am.A

ParseRpc parses am.A to *ARpc wrapped in am.A. Useful for REPLs.

func Pass

func Pass(args *A) am.A

Pass prepares am.A from A to pass to further mutations.

func PassRpc

func PassRpc(args *A) am.A

PassRpc prepares am.A from A to pass over RPC.

Types

type A

type A struct {
	Config *shared.Config
	// TODO log non empty fields with counters
	DataDash *DataDashboard
	// TODO log non empty fields with counters
	DataAgent   *DataAgent
	MachTimeSum uint64
}

A is a struct for node arguments. It's a typesafe alternative to am.A.

func ParseArgs

func ParseArgs(args am.A) *A

ParseArgs extracts A from am.Event.ArgsAPrefix.

type ARpc

type ARpc struct {
	Config *shared.Config
	// TODO log non empty fields with counters
	DataDash *DataDashboard
	// TODO log non empty fields with counters
	DataAgent   *DataAgent
	MachTimeSum uint64
}

ARpc is a subset of A that can be passed over RPC.

type DataAgent

type DataAgent struct {
	Msgs []*shared.Msg
	// Actions are a list of buttons to be displayed in the UI.
	Actions   []shared.ActionInfo
	Stories   []shared.StoryInfo
	ClockDiff [][]int
}

type DataBoostrap

type DataBoostrap struct {
	Config     *shared.Config
	MachSchema am.Schema
	MachStates am.S
}

type DataDashboard

type DataDashboard struct {
	Metrics *DataMetrics
	Splash  string
}

type DataMetrics

type DataMetrics struct {
	// active AI reqs
	ReqAIs int8
	// active tools reqs
	ReqTools int8
}

Jump to

Keyboard shortcuts

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