moonrockz/diagrams/architecture
Types
Alignment
pub struct Alignment {
axis : Axis
members : ReadOnlyArray[String]
} derive(Eq, @moonbitlang/core/debug.Debug)Alignment::equal
fn Alignment::equal(Alignment, Alignment) -> BoolAlignment::new
fn Alignment::new(axis : Axis, members : ArrayView[String]) -> AlignmentAlignment::not_equal
fn Alignment::not_equal(x : Alignment, y : Alignment) -> BoolAlignment::to_repr
fn Alignment::to_repr(Alignment) -> @moonbitlang/core/debug.ReprArchitecture
pub struct Architecture {
id : String
groups : ReadOnlyArray[Group]
services : ReadOnlyArray[Service]
junctions : ReadOnlyArray[Junction]
connections : ReadOnlyArray[Connection]
alignments : ReadOnlyArray[Alignment]
title : String?
accessibility_title : String?
accessibility_description : String?
} derive(Eq, @moonbitlang/core/debug.Debug)Architecture::equal
fn Architecture::equal(Architecture, Architecture) -> BoolArchitecture::new
fn Architecture::new(id : String, services : ArrayView[Service], connections : ArrayView[Connection], groups? : ArrayView[Group], junctions? : ArrayView[Junction], alignments? : ArrayView[Alignment], title? : String, accessibility_title? : String, accessibility_description? : String) -> ArchitectureArchitecture::not_equal
fn Architecture::not_equal(x : Architecture, y : Architecture) -> BoolArchitecture::to_repr
fn Architecture::to_repr(Architecture) -> @moonbitlang/core/debug.ReprAxis
pub(all) enum Axis {
Row
Column
} derive(Eq, @moonbitlang/core/debug.Debug)Axis::equal
fn Axis::equal(Axis, Axis) -> BoolAxis::not_equal
fn Axis::not_equal(x : Axis, y : Axis) -> BoolAxis::to_repr
fn Axis::to_repr(Axis) -> @moonbitlang/core/debug.ReprConnection
pub struct Connection {
id : String
source : Endpoint
target : Endpoint
label : String?
source_head : Bool
target_head : Bool
} derive(Eq, @moonbitlang/core/debug.Debug)Connection::equal
fn Connection::equal(Connection, Connection) -> BoolConnection::new
fn Connection::new(id : String, source : Endpoint, target : Endpoint, label? : String, source_head? : Bool, target_head? : Bool) -> ConnectionConnection::not_equal
fn Connection::not_equal(x : Connection, y : Connection) -> BoolConnection::to_repr
fn Connection::to_repr(Connection) -> @moonbitlang/core/debug.ReprEndpoint
pub struct Endpoint {
id : String
side : Side
group : Bool
} derive(Eq, @moonbitlang/core/debug.Debug)Endpoint::equal
fn Endpoint::equal(Endpoint, Endpoint) -> BoolEndpoint::new
fn Endpoint::new(id : String, side : Side, group? : Bool) -> EndpointEndpoint::not_equal
fn Endpoint::not_equal(x : Endpoint, y : Endpoint) -> BoolEndpoint::to_repr
fn Endpoint::to_repr(Endpoint) -> @moonbitlang/core/debug.ReprGroup
pub struct Group {
id : String
label : String
parent : String?
icon : @moonrockz/diagrams/icons.Reference?
} derive(Eq, @moonbitlang/core/debug.Debug)Group::equal
fn Group::equal(Group, Group) -> BoolGroup::new
fn Group::new(id : String, label? : String, parent? : String, icon? : @moonrockz/diagrams/icons.Reference) -> GroupGroup::not_equal
fn Group::not_equal(x : Group, y : Group) -> BoolGroup::to_repr
fn Group::to_repr(Group) -> @moonbitlang/core/debug.ReprJunction
pub struct Junction {
id : String
parent : String?
} derive(Eq, @moonbitlang/core/debug.Debug)Junction::equal
fn Junction::equal(Junction, Junction) -> BoolJunction::new
fn Junction::new(id : String, parent? : String) -> JunctionJunction::not_equal
fn Junction::not_equal(x : Junction, y : Junction) -> BoolJunction::to_repr
fn Junction::to_repr(Junction) -> @moonbitlang/core/debug.ReprService
pub struct Service {
id : String
label : String
parent : String?
icon : @moonrockz/diagrams/icons.Reference?
icon_text : String?
} derive(Eq, @moonbitlang/core/debug.Debug)Service::equal
fn Service::equal(Service, Service) -> BoolService::new
fn Service::new(id : String, label? : String, parent? : String, icon? : @moonrockz/diagrams/icons.Reference, icon_text? : String) -> ServiceService::not_equal
fn Service::not_equal(x : Service, y : Service) -> BoolService::to_repr
fn Service::to_repr(Service) -> @moonbitlang/core/debug.ReprSide
pub(all) enum Side {
Left
Right
Top
Bottom
} derive(Eq, @moonbitlang/core/debug.Debug)Side::equal
fn Side::equal(Side, Side) -> BoolSide::not_equal
fn Side::not_equal(x : Side, y : Side) -> BoolSide::to_repr
fn Side::to_repr(Side) -> @moonbitlang/core/debug.ReprSide::to_string
fn Side::to_string(self : Side) -> StringValues
validate
fn validate(model : Architecture, nodes_limit? : Int, edges_limit? : Int, depth_limit? : Int, work_limit? : Int) -> ReadOnlyArray[@moonrockz/diagrams.Diagnostic]