blueprint

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2025 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActionFunc

type ActionFunc func() error

type Blueprint

type Blueprint interface {
	Execute() Results
	Action(name string, details string, usertext string, fn ActionFunc)
	Add(blueprint Blueprint)
	PrettyPrint() string
}

type BlueprintFunc

type BlueprintFunc func() Trace

type Results

type Results struct {
	Traces         []Trace `json:"traces"`
	Success        bool    `json:"success"`
	ErrorCount     int     `json:"error_count"`
	TimeElapsedSec int     `json:"time_elapsed"`
}

type SerialBlueprint

type SerialBlueprint struct {
	Name       string      `json:"name"`
	Details    string      `json:"details"`
	Annotation string      `json:"annotation"`
	Children   []Blueprint `json:"children"`
	Function   BlueprintFunc
}

func NewSerialBlueprint

func NewSerialBlueprint(name string) *SerialBlueprint

func (*SerialBlueprint) Action

func (blueprint *SerialBlueprint) Action(name string, details string, usertext string, fn ActionFunc)

func (*SerialBlueprint) Add

func (blueprint *SerialBlueprint) Add(subBlueprint Blueprint)

func (*SerialBlueprint) Execute

func (blueprint *SerialBlueprint) Execute() Results

func (*SerialBlueprint) PrettyPrint

func (blueprint *SerialBlueprint) PrettyPrint() string

type Trace

type Trace struct {
	Name       string `json:"name"`
	Details    string `json:"details"`
	Error      error  `json:"error"`
	Annotation string `json:"annotation"`
}

Jump to

Keyboard shortcuts

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