Documentation ¶
Index ¶
- func ExpandContentNode(db *dgo.Dgraph, uid string) (resp models.ContentNode, err error)
- func GetInvite(db *dgo.Dgraph, inviteCode string) (resp models.Invite, err error)
- func GetRole(db *dgo.Dgraph, uid string) (resp models.Role, err error)
- func GetUser(db *dgo.Dgraph, uid string) (resp models.User, err error)
- func Mutator(db *dgo.Dgraph, structToMutate interface{}) (uid string, err error)
- func NewContentNode(db *dgo.Dgraph, node models.NewContentNodeNode) (uid string, err error)
- func NewInvite(db *dgo.Dgraph, invite models.Invite, currentUser models.User) (uid string, err error)
- func NewRole(db *dgo.Dgraph, role models.Role) (uid string, err error)
- func NewUser(db *dgo.Dgraph, user models.User, inviteCode string) (uid string, err error)
- func SimpleQuery(db *dgo.Dgraph, q string, match string) (resp []byte, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExpandContentNode ¶
ExpandContentNode is a function to get the data for a node and its children
func GetInvite ¶
GetInvite will return the struct representing a particular invite matching the given code
func NewContentNode ¶
NewContentNode creates a new ContentNode based on the provided struct
func NewInvite ¶
func NewInvite(db *dgo.Dgraph, invite models.Invite, currentUser models.User) (uid string, err error)
NewInvite creates a new invite owned by the current user
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.