marshal

package
v0.0.0-...-c7fa441 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

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

Builder is builds in-memory API graph.

func NewBuilder

func NewBuilder() (*Builder, error)

NewBuilder creates a new builder and returns it.

func (*Builder) Build

func (b *Builder) Build(ctx context.Context, g graph.Adder, dataChan <-chan interface{}) error

Build builds a graph by adding nodes and edges from the data received on the given channel

type Graph

type Graph struct {
	Graph api.Graph  `json:"graph"`
	Nodes []api.Node `json:"nodes"`
	Edges []api.Edge `json:"edges"`
}

Graph stores graph.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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