Documentation ¶
Index ¶
- Constants
- func NewAssociation(from, to *obj, relationship arch.RelationType) arch.Relation
- func NewComposition(from, to *obj) arch.Relation
- func NewDependence(from, to *obj) arch.Relation
- func NewEmbedding(from, to *obj) arch.Relation
- func NewEmptyRelationPos() arch.RelationPos
- func NewImplementation(from, to *obj) arch.Relation
- func NewObj(o arch.Object) *obj
- func NewRelationMeta(t arch.RelationType, fp, tp arch.Position) arch.RelationMeta
- func NewRelationPos(f, t arch.Position) arch.RelationPos
- type Aggregate
- type AggregateGroup
- func (agg *AggregateGroup) Aggregate() (*Aggregate, error)
- func (dg AggregateGroup) Domain() string
- func (dg AggregateGroup) DomainClasses() []*DomainClass
- func (dg AggregateGroup) DomainFunctions() []*DomainFunction
- func (dg AggregateGroup) DomainGenerals() []*DomainGeneral
- func (dg AggregateGroup) DomainInterfaces() []*DomainInterface
- func (agg *AggregateGroup) DomainName() string
- func (agg *AggregateGroup) IsValid() bool
- type Association
- type Attr
- type Class
- type CodeHandler
- type ComponentType
- type Composition
- type Dependence
- type DomainAttr
- type DomainClass
- type DomainFunction
- type DomainGeneral
- type DomainGroup
- type DomainInterface
- type Embedding
- type Entities
- type Entity
- type EntityGroup
- func (dg EntityGroup) Domain() string
- func (dg EntityGroup) DomainClasses() []*DomainClass
- func (dg EntityGroup) DomainFunctions() []*DomainFunction
- func (dg EntityGroup) DomainGenerals() []*DomainGeneral
- func (dg EntityGroup) DomainInterfaces() []*DomainInterface
- func (eg *EntityGroup) Entities() Entities
- type Function
- type General
- type Group
- type Implementation
- type Interface
- type InterfaceMethod
- type MissingReceiver
- type StringObj
- type VOGroup
- type ValueObject
- type ValueObjects
Constants ¶
View Source
const (
DotJoiner = "."
)
Variables ¶
This section is empty.
Functions ¶
func NewAssociation ¶
func NewAssociation(from, to *obj, relationship arch.RelationType) arch.Relation
func NewComposition ¶
func NewDependence ¶
func NewEmbedding ¶
func NewEmptyRelationPos ¶
func NewEmptyRelationPos() arch.RelationPos
func NewImplementation ¶
func NewRelationMeta ¶
func NewRelationMeta(t arch.RelationType, fp, tp arch.Position) arch.RelationMeta
func NewRelationPos ¶
func NewRelationPos(f, t arch.Position) arch.RelationPos
Types ¶
type Aggregate ¶
func NewAggregate ¶
func (Aggregate) Identifier ¶
func (do Aggregate) Identifier() arch.ObjIdentifier
func (Aggregate) OriginIdentifier ¶
func (do Aggregate) OriginIdentifier() arch.ObjIdentifier
type AggregateGroup ¶
type AggregateGroup struct {
// contains filtered or unexported fields
}
func NewAggregateGroup ¶
func NewAggregateGroup(a *Aggregate, domain string) *AggregateGroup
func (*AggregateGroup) Aggregate ¶
func (agg *AggregateGroup) Aggregate() (*Aggregate, error)
func (AggregateGroup) DomainClasses ¶
func (dg AggregateGroup) DomainClasses() []*DomainClass
func (AggregateGroup) DomainFunctions ¶
func (dg AggregateGroup) DomainFunctions() []*DomainFunction
func (AggregateGroup) DomainGenerals ¶
func (dg AggregateGroup) DomainGenerals() []*DomainGeneral
func (AggregateGroup) DomainInterfaces ¶
func (dg AggregateGroup) DomainInterfaces() []*DomainInterface
func (*AggregateGroup) DomainName ¶
func (agg *AggregateGroup) DomainName() string
func (*AggregateGroup) IsValid ¶
func (agg *AggregateGroup) IsValid() bool
type Association ¶
type Association struct {
// contains filtered or unexported fields
}
func (*Association) AssociationType ¶
func (a *Association) AssociationType() arch.RelationType
func (*Association) Refer ¶
func (a *Association) Refer() arch.Object
func (Association) Type ¶
func (r Association) Type() arch.RelationType
type Attr ¶
type Attr struct {
// contains filtered or unexported fields
}
func (Attr) Identifier ¶
func (o Attr) Identifier() arch.ObjIdentifier
type Class ¶
type Class struct {
// contains filtered or unexported fields
}
func NewClass ¶
func NewClass(o arch.Object, as []arch.ObjIdentifier, ms []arch.ObjIdentifier) *Class
func (*Class) AppendAttribute ¶
func (k *Class) AppendAttribute(id *ident)
func (*Class) AppendMethod ¶
func (k *Class) AppendMethod(id *ident)
func (*Class) Attributes ¶
func (k *Class) Attributes() []*ident
func (Class) Identifier ¶
func (o Class) Identifier() arch.ObjIdentifier
type CodeHandler ¶
type CodeHandler struct { Scope string ObjRepo repository.ObjectRepository RelRepo repository.RelationRepository // contains filtered or unexported fields }
func (*CodeHandler) LinkHandler ¶
func (ch *CodeHandler) LinkHandler(link *code.Link)
func (*CodeHandler) NodeHandler ¶
func (ch *CodeHandler) NodeHandler(node *code.Node)
type ComponentType ¶
type ComponentType string
const ( GeneralComponent ComponentType = "general" FunctionComponent ComponentType = "function" ClassComponent ComponentType = "class" InterfaceComponent ComponentType = "interface" EntityComponent ComponentType = "entity" VOComponent ComponentType = "valueobject" RepositoryComponent ComponentType = "repository" FactoryComponent ComponentType = "factory" )
type Composition ¶
type Composition struct {
// contains filtered or unexported fields
}
func (*Composition) Child ¶
func (c *Composition) Child() arch.Object
func (Composition) Type ¶
func (r Composition) Type() arch.RelationType
type Dependence ¶
type Dependence struct {
// contains filtered or unexported fields
}
func (*Dependence) DependsOn ¶
func (d *Dependence) DependsOn() arch.Object
func (Dependence) Type ¶
func (r Dependence) Type() arch.RelationType
type DomainAttr ¶
type DomainAttr struct {
// contains filtered or unexported fields
}
func NewDomainAttr ¶
func NewDomainAttr(attr *Attr, d string) *DomainAttr
func (DomainAttr) Identifier ¶
func (do DomainAttr) Identifier() arch.ObjIdentifier
func (DomainAttr) OriginIdentifier ¶
func (do DomainAttr) OriginIdentifier() arch.ObjIdentifier
type DomainClass ¶
type DomainClass struct { Attributes []*DomainAttr Methods []*DomainFunction // contains filtered or unexported fields }
func NewDomainClass ¶
func NewDomainClass(cla *Class, d string, attrs []*DomainAttr, methods []*DomainFunction) *DomainClass
func (DomainClass) Identifier ¶
func (do DomainClass) Identifier() arch.ObjIdentifier
func (DomainClass) OriginIdentifier ¶
func (do DomainClass) OriginIdentifier() arch.ObjIdentifier
type DomainFunction ¶
type DomainFunction struct {
// contains filtered or unexported fields
}
func NewDomainFunction ¶
func NewDomainFunction(f *Function, d string) *DomainFunction
func (DomainFunction) Identifier ¶
func (do DomainFunction) Identifier() arch.ObjIdentifier
func (DomainFunction) OriginIdentifier ¶
func (do DomainFunction) OriginIdentifier() arch.ObjIdentifier
type DomainGeneral ¶
type DomainGeneral struct {
// contains filtered or unexported fields
}
func NewDomainGeneral ¶
func NewDomainGeneral(g *General, d string) *DomainGeneral
func (DomainGeneral) Identifier ¶
func (do DomainGeneral) Identifier() arch.ObjIdentifier
func (DomainGeneral) OriginIdentifier ¶
func (do DomainGeneral) OriginIdentifier() arch.ObjIdentifier
type DomainGroup ¶
type DomainGroup interface { Group Domain() string DomainGenerals() []*DomainGeneral DomainFunctions() []*DomainFunction DomainClasses() []*DomainClass DomainInterfaces() []*DomainInterface }
type DomainInterface ¶
type DomainInterface struct { Methods []*DomainFunction // contains filtered or unexported fields }
func NewDomainInterface ¶
func NewDomainInterface(i *Interface, d string, methods []*DomainFunction) *DomainInterface
func (DomainInterface) Identifier ¶
func (do DomainInterface) Identifier() arch.ObjIdentifier
func (DomainInterface) OriginIdentifier ¶
func (do DomainInterface) OriginIdentifier() arch.ObjIdentifier
type Embedding ¶
type Embedding struct {
// contains filtered or unexported fields
}
func (Embedding) Type ¶
func (r Embedding) Type() arch.RelationType
type Entity ¶
type Entity struct {
*DomainClass
}
func NewEntity ¶
func NewEntity(cla *DomainClass) *Entity
func (Entity) Identifier ¶
func (do Entity) Identifier() arch.ObjIdentifier
func (Entity) OriginIdentifier ¶
func (do Entity) OriginIdentifier() arch.ObjIdentifier
type EntityGroup ¶
type EntityGroup struct {
// contains filtered or unexported fields
}
func NewEntityGroup ¶
func NewEntityGroup(domain string, classes ...arch.Object) *EntityGroup
func (EntityGroup) DomainClasses ¶
func (dg EntityGroup) DomainClasses() []*DomainClass
func (EntityGroup) DomainFunctions ¶
func (dg EntityGroup) DomainFunctions() []*DomainFunction
func (EntityGroup) DomainGenerals ¶
func (dg EntityGroup) DomainGenerals() []*DomainGeneral
func (EntityGroup) DomainInterfaces ¶
func (dg EntityGroup) DomainInterfaces() []*DomainInterface
func (*EntityGroup) Entities ¶
func (eg *EntityGroup) Entities() Entities
type Function ¶
type Function struct { Receiver *ident // contains filtered or unexported fields }
func NewFunction ¶
func NewFunction(o arch.Object, r arch.ObjIdentifier) *Function
func (Function) Identifier ¶
func (o Function) Identifier() arch.ObjIdentifier
type General ¶
type General struct {
// contains filtered or unexported fields
}
func NewGeneral ¶
func (General) Identifier ¶
func (o General) Identifier() arch.ObjIdentifier
type Group ¶
type Implementation ¶
type Implementation struct {
// contains filtered or unexported fields
}
func (*Implementation) Implemented ¶
func (i *Implementation) Implemented(ifc arch.Object)
func (*Implementation) Implements ¶
func (i *Implementation) Implements() []arch.Object
func (Implementation) Type ¶
func (r Implementation) Type() arch.RelationType
type Interface ¶
type Interface struct {
// contains filtered or unexported fields
}
func (*Interface) Append ¶
func (i *Interface) Append(m *InterfaceMethod)
func (Interface) Identifier ¶
func (o Interface) Identifier() arch.ObjIdentifier
type InterfaceMethod ¶
type InterfaceMethod struct {
// contains filtered or unexported fields
}
func (InterfaceMethod) Identifier ¶
func (o InterfaceMethod) Identifier() arch.ObjIdentifier
type MissingReceiver ¶ added in v0.2.0
type MissingReceiver struct {
// contains filtered or unexported fields
}
func (*MissingReceiver) AppendMethod ¶ added in v0.2.0
func (k *MissingReceiver) AppendMethod(id *ident)
func (MissingReceiver) Identifier ¶ added in v0.2.0
func (o MissingReceiver) Identifier() arch.ObjIdentifier
type StringObj ¶
type StringObj struct {
// contains filtered or unexported fields
}
func NewStringObj ¶
func (StringObj) Identifier ¶
func (o StringObj) Identifier() arch.ObjIdentifier
type VOGroup ¶
type VOGroup struct {
// contains filtered or unexported fields
}
func (VOGroup) DomainClasses ¶
func (dg VOGroup) DomainClasses() []*DomainClass
func (VOGroup) DomainFunctions ¶
func (dg VOGroup) DomainFunctions() []*DomainFunction
func (VOGroup) DomainGenerals ¶
func (dg VOGroup) DomainGenerals() []*DomainGeneral
func (VOGroup) DomainInterfaces ¶
func (dg VOGroup) DomainInterfaces() []*DomainInterface
func (*VOGroup) ValueObjects ¶
func (eg *VOGroup) ValueObjects() ValueObjects
type ValueObject ¶
type ValueObject struct {
*DomainClass
}
func NewValueObject ¶
func NewValueObject(cla *DomainClass) *ValueObject
func (ValueObject) Identifier ¶
func (do ValueObject) Identifier() arch.ObjIdentifier
func (ValueObject) OriginIdentifier ¶
func (do ValueObject) OriginIdentifier() arch.ObjIdentifier
type ValueObjects ¶
type ValueObjects []*ValueObject
func (ValueObjects) Objects ¶
func (vos ValueObjects) Objects() []arch.Object
Click to show internal directories.
Click to hide internal directories.