graph

package
v0.0.0-...-2ec072f Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Edge

type Edge struct {
	Src   int                    `json:"src"`
	Dst   int                    `json:"dst"`
	Attrs map[string]interface{} `json:"attrs"`
}
type Gallery struct {
	GraphList []*GraphData `json:"graph_list"`
	EdgeList  []*Edge      `json:"edge_list"`
}

func ParseJSON

func ParseJSON(jsonData string) (*Gallery, error)

func (*Gallery) ToAllASTNode

func (g *Gallery) ToAllASTNode() ([]lubanAST.INode, error)

type GraphData

type GraphData struct {
	GraphType GraphType `json:"graph_type"`
	JSONData  string    `json:"json_data"`
}

type GraphType

type GraphType string
const (
	GraphProgram GraphType = "program"
	GraphSQL     GraphType = "sql"
)

type GraphWrap

type GraphWrap struct {
	Graph *GraphData
	Prev  *GraphWrap
	Next  *GraphWrap
}

type IGraph

type IGraph interface {
	ToAllASTNode() ([]lubanAST.INode, error)
}

Directories

Path Synopsis
sql

Jump to

Keyboard shortcuts

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