Documentation ¶
Index ¶
- Constants
- func NewKey() string
- type Clout
- type Edge
- func (self *Edge) GetMetadata() ard.StringMap
- func (self *Edge) GetProperties() ard.StringMap
- func (self *Edge) MarshalCBOR() ([]byte, error)
- func (self *Edge) MarshalJSON() ([]byte, error)
- func (self *Edge) MarshalMsgpack() ([]byte, error)
- func (self *Edge) MarshalYAML() (any, error)
- func (self *Edge) Marshalable(stringMaps bool) any
- func (self *Edge) Remove()
- func (self *Edge) ToARD(reflector *ard.Reflector) (any, error)
- func (self *Edge) Unmarshal(f func(m *MarshalableEdge) error) error
- func (self *Edge) UnmarshalCBOR(data []byte) error
- func (self *Edge) UnmarshalJSON(data []byte) error
- func (self *Edge) UnmarshalMsgpack(data []byte) error
- func (self *Edge) UnmarshalYAML(unmarshal func(any) error) error
- type Edges
- type Entity
- type MarshalableCloutStringMaps
- type MarshalableEdge
- type MarshalableEdgeStringMaps
- type MarshalableVertexStringMaps
- type Vertex
- func (self *Vertex) GetMetadata() ard.StringMap
- func (self *Vertex) GetProperties() ard.StringMap
- func (self *Vertex) MarshalJSON() ([]byte, error)
- func (self *Vertex) MarshalableStringMaps() any
- func (self *Vertex) NewEdgeTo(target *Vertex) *Edge
- func (self *Vertex) NewEdgeToID(targetId string) *Edge
- func (self *Vertex) Remove()
- type Vertexes
Constants ¶
View Source
const Version = "1.0"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Clout ¶
type Clout struct { Version string `json:"version" yaml:"version" ard:"version"` Metadata ard.StringMap `json:"metadata" yaml:"metadata" ard:"metadata"` Properties ard.StringMap `json:"properties" yaml:"properties" ard:"properties"` Vertexes Vertexes `json:"vertexes" yaml:"vertexes" ard:"vertexes"` }
func (*Clout) Copy ¶ added in v0.21.0
Creates a copy of the Clout in which ARD is used for all data.
func (*Clout) CopyAsIs ¶ added in v0.22.4
Creates a copy of the Clout in which non-ARD data is left as is.
func (*Clout) MarshalJSON ¶
(json.Marshaler interface)
func (*Clout) MarshalableStringMaps ¶
func (*Clout) ResolveEdges ¶ added in v0.22.4
type Edge ¶
type Edge struct { Metadata ard.StringMap Properties ard.StringMap Source *Vertex TargetID string Target *Vertex }
func (*Edge) MarshalCBOR ¶ added in v0.18.0
(cbor.Marshaler interface)
func (*Edge) MarshalJSON ¶
(json.Marshaler interface)
func (*Edge) MarshalMsgpack ¶ added in v0.21.0
(msgpack.Marshaler interface)
func (*Edge) MarshalYAML ¶
([yaml.Marshaler] interface)
func (*Edge) Marshalable ¶
func (*Edge) UnmarshalCBOR ¶ added in v0.18.0
cbor.Unmarshaler interface
func (*Edge) UnmarshalJSON ¶
json.Unmarshaler interface
func (*Edge) UnmarshalMsgpack ¶ added in v0.21.0
msgpack.Unmarshaler interface
type MarshalableCloutStringMaps ¶
type MarshalableCloutStringMaps Clout
type MarshalableEdge ¶
type MarshalableEdge struct { Metadata ard.StringMap `json:"metadata" yaml:"metadata" ard:"metadata"` Properties ard.StringMap `json:"properties" yaml:"properties" ard:"properties"` TargetID string `json:"targetID" yaml:"targetID" ard:"targetID"` }
type MarshalableEdgeStringMaps ¶
type MarshalableEdgeStringMaps struct { Metadata ard.StringMap `json:"metadata"` Properties ard.StringMap `json:"properties"` TargetID string `json:"targetID"` }
type MarshalableVertexStringMaps ¶
type MarshalableVertexStringMaps struct { Metadata ard.StringMap `json:"metadata"` Properties ard.StringMap `json:"properties"` EdgesOut Edges `json:"edgesOut"` }
type Vertex ¶
type Vertex struct { Clout *Clout `json:"-" yaml:"-"` ID string `json:"-" yaml:"-"` Metadata ard.StringMap `json:"metadata" yaml:"metadata"` Properties ard.StringMap `json:"properties" yaml:"properties"` EdgesOut Edges `json:"edgesOut" yaml:"edgesOut"` EdgesIn Edges `json:"-" yaml:"-"` }
func (*Vertex) MarshalJSON ¶
(json.Marshaler interface)
func (*Vertex) MarshalableStringMaps ¶
func (*Vertex) NewEdgeToID ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.