Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChangeEmailForm ¶ added in v0.0.8
type ChangeEmailForm struct { UserID string `json:"userid"` Email string `json:"email"` CurrentPassword string `json:"currentPassword"` }
ChangeEmail reset password
type Directory ¶
type Directory struct { ID string `json:"id"` Name string `json:"name"` Entries []Entry `json:"children"` LastModified time.Time `json:"lastModified"` IsFolder bool `json:"isFolder"` }
Directory entry
type Document ¶
type Document struct { ID string `json:"id"` Name string `json:"name"` DocumentType string `json:"type"` //notebook, pdf, epub LastModified time.Time `json:"lastModified"` Size int64 `json:"size"` }
Document is a single document
type DocumentList ¶
type DocumentList struct {
Documents []Document `json:"entries"`
}
DocumentList is a list of documents
type DocumentTree ¶
DocumentTree a tree of documents
func DocTreeFromHashTree ¶ added in v0.0.5
func DocTreeFromHashTree(tree *models.HashTree) *DocumentTree
DocTreeFromHashTree from hash tree
func DocTreeFromRawMetadata ¶ added in v0.0.5
func DocTreeFromRawMetadata(documents []*InternalDoc) *DocumentTree
DocTreeFromRawMetadata from raw metadata
type InternalDoc ¶ added in v0.0.12
type NewUser ¶ added in v0.0.8
type NewUser struct { ID string `json:"userid" binding:"required"` Email string `json:"email" binding:"email"` NewPassword string `json:"newpassword" binding:"required"` }
NewUser new user creation
type ResetPasswordForm ¶
type ResetPasswordForm struct { UserID string `json:"userid"` CurrentPassword string `json:"currentPassword"` NewPassword string `json:"newPassword"` }
ResetPasswordForm reset password
Click to show internal directories.
Click to hide internal directories.