Documentation
¶
Index ¶
- type NoteRoot
- func (nr *NoteRoot) ChangeOwnPassword(id, oldPassword, newPassword string) error
- func (nr *NoteRoot) Close() error
- func (nr *NoteRoot) CreatePage(parentID *string, title string, slug string) (*tree.Page, error)
- func (nr *NoteRoot) CreateUser(username, email, password, role string) (*auth.PublicUser, error)
- func (nr *NoteRoot) DeleteAsset(pageID string, filename string) error
- func (nr *NoteRoot) DeletePage(id string, recursive bool) error
- func (nr *NoteRoot) DeleteUser(id string) error
- func (nr *NoteRoot) EnsureWelcomePage() error
- func (nr *NoteRoot) FindByPath(route string) (*tree.Page, error)
- func (nr *NoteRoot) GetAssetService() *assets.AssetService
- func (nr *NoteRoot) GetAuthService() *auth.AuthService
- func (nr *NoteRoot) GetPage(id string) (*tree.Page, error)
- func (nr *NoteRoot) GetStorageDir() string
- func (nr *NoteRoot) GetTree() *tree.PageNode
- func (nr *NoteRoot) GetUserByID(id string) (*auth.PublicUser, error)
- func (nr *NoteRoot) GetUserService() *auth.UserService
- func (nr *NoteRoot) GetUsers() ([]*auth.PublicUser, error)
- func (nr *NoteRoot) ListAssets(pageID string) ([]string, error)
- func (nr *NoteRoot) Login(identifier, password string) (*auth.AuthToken, error)
- func (nr *NoteRoot) MovePage(id, parentID string) error
- func (nr *NoteRoot) RefreshToken(token string) (*auth.AuthToken, error)
- func (nr *NoteRoot) ResetAdminUserPassword() (*auth.User, error)
- func (nr *NoteRoot) SortPages(parentID string, orderedIDs []string) error
- func (nr *NoteRoot) SuggestSlug(parentID string, title string) (string, error)
- func (nr *NoteRoot) UpdatePage(id, title, slug, content string) (*tree.Page, error)
- func (nr *NoteRoot) UpdatePassword(id, password string) error
- func (nr *NoteRoot) UpdateUser(id, username, email, password, role string) (*auth.PublicUser, error)
- func (nr *NoteRoot) UploadAsset(pageID string, file multipart.File, filename string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NoteRoot ¶
type NoteRoot struct {
// contains filtered or unexported fields
}
func NewNoteRoot ¶
func (*NoteRoot) ChangeOwnPassword ¶
func (*NoteRoot) CreatePage ¶
func (*NoteRoot) CreateUser ¶
func (nr *NoteRoot) CreateUser(username, email, password, role string) (*auth.PublicUser, error)
func (*NoteRoot) DeleteAsset ¶
func (*NoteRoot) DeleteUser ¶
func (*NoteRoot) EnsureWelcomePage ¶
func (*NoteRoot) GetAssetService ¶
func (nr *NoteRoot) GetAssetService() *assets.AssetService
func (*NoteRoot) GetAuthService ¶
func (nr *NoteRoot) GetAuthService() *auth.AuthService
func (*NoteRoot) GetStorageDir ¶
func (*NoteRoot) GetUserByID ¶
func (nr *NoteRoot) GetUserByID(id string) (*auth.PublicUser, error)
func (*NoteRoot) GetUserService ¶
func (nr *NoteRoot) GetUserService() *auth.UserService
func (*NoteRoot) RefreshToken ¶
func (*NoteRoot) ResetAdminUserPassword ¶
func (*NoteRoot) SuggestSlug ¶
func (*NoteRoot) UpdatePage ¶
func (*NoteRoot) UpdatePassword ¶
func (*NoteRoot) UpdateUser ¶
func (nr *NoteRoot) UpdateUser(id, username, email, password, role string) (*auth.PublicUser, error)
Click to show internal directories.
Click to hide internal directories.