browser

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2026 License: Apache-2.0 Imports: 25 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

package browser implements an HTML UI for web browsers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Attrs

type Attrs map[string]string

Attributes for nodes and lines rendered by Graphviz.

func (Attrs) Attributes

func (a Attrs) Attributes() (enc []encoding.Attribute)

type Browser

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

Browser implements HTTP handlers for web browsers.

func New

func New(restClient *api.ClientWithResponses, router *gin.Engine) (*Browser, error)

func (*Browser) Close

func (b *Browser) Close()

Close should be called on shutdown to clean up external resources.

type Edge

type Edge struct {
	*api.Edge
	Attrs
	// contains filtered or unexported fields
}

func (*Edge) From added in v0.0.4

func (e *Edge) From() graph.Node

func (*Edge) ID added in v0.0.4

func (e *Edge) ID() int64

func (*Edge) ReversedEdge added in v0.0.4

func (e *Edge) ReversedEdge() graph.Edge

func (*Edge) To added in v0.0.4

func (e *Edge) To() graph.Node

type Graph

type Graph struct {
	Model                            *api.Graph
	GraphAttrs, NodeAttrs, EdgeAttrs Attrs

	*simple.DirectedGraph
	// contains filtered or unexported fields
}

func NewGraph

func NewGraph(mg *api.Graph) *Graph

func (*Graph) DOTAttributers

func (g *Graph) DOTAttributers() (graph, node, edge encoding.Attributer)

func (*Graph) DOTID

func (g *Graph) DOTID() string

func (*Graph) NodeFor

func (g *Graph) NodeFor(class string) *Node

type Node

type Node struct {
	Model *api.Node
	Attrs
}

func (*Node) ID

func (n *Node) ID() int64

Jump to

Keyboard shortcuts

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