Documentation
¶
Index ¶
- Variables
- func Close() error
- func ExistsPost(p *model.Post) bool
- func GetJobsByID(uid string, id []string) (jobs []model.Job)
- func GetPosts(begin, end string) (posts []model.Post)
- func GetUsers(conds ...any) (users []model.User, err error)
- func NewUser(uid string, p model.Permission) (u *model.User)
- func Open(postPath, userPath string) error
- func QueryUserByAuth(auth string) *model.User
- func QueryUserByUID(uid string) *model.User
- func RemoveJobs(u *model.User, jobs []string) error
- func SavePost(p *model.Post) error
- func UpdatePermission(uid string, p model.Permission) error
- func UpdateUser(u *model.User) error
- func Webhook(p *model.Post)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoOwner = errors.New("owner permissions cannot be revoked")
Functions ¶
func UpdateUser ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.