io

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: May 17, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseYaml

func ParseYaml(data string) (*mdl.Model, error)

ParseYaml parses an API model from a yaml string

Types

type Association

type Association struct {
	Source      string   `json:""`
	Destination string   `json:""`
	Tags        []string `json:"omitempty"`
}

Association holds a parsed Archie association

type Element

type Element struct {
	Name         string        `json:""`
	Kind         string        `json:"omitempty"`
	Tags         []string      `json:"omitempty"`
	Children     []interface{} `json:"omitempty"`
	Associations []Association `json:"omitempty"`
}

Element holds a parsed Archie element (actor or item)

type Model

type Model struct {
	Elements     []Element     `json:""`
	Associations []Association `json:""`
}

Model holds an entire parsed Archie model

Jump to

Keyboard shortcuts

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