Documentation ¶
Index ¶
Constants ¶
View Source
const (
OBJECTID = "object_id"
)
Variables ¶
View Source
var DB *orm.CreateDBFactory
Functions ¶
This section is empty.
Types ¶
type Identity ¶
type Identity struct { ID string `json:"id,omitempty"` PublicKey []byte `json:"publicKey,omitempty"` Signatures *IdentitySignature `json:"signatures,omitempty"` Type string `json:"type,omitempty"` }
type IdentitySignature ¶
type LinkFactory ¶
type LinkFactory struct { }
func (*LinkFactory) DeleteLink ¶
func (link *LinkFactory) DeleteLink(linkId string) error
func (*LinkFactory) InsertLink ¶
func (link *LinkFactory) InsertLink(linkId string, nodeId string, lastNodeIds []string) (bool, error)
*
- Insert link into the database
- creates a new link with the given all of lastNodeIds and nodeId
- returns linkId if successful, error otherwise *
type NodeFactory ¶
type NodeFactory struct { }
Click to show internal directories.
Click to hide internal directories.