Documentation
¶
Index ¶
- func CreateDirForUser(ctx context.Context, userID uint, storageName, path string) error
- func CreateRule(ctx context.Context, rule *Rule) error
- func CreateUser(ctx context.Context, chatID int64) error
- func DeleteDirByID(ctx context.Context, id uint) error
- func DeleteDirForUser(ctx context.Context, userID uint, storageName, path string) error
- func DeleteRule(ctx context.Context, ruleID uint) error
- func DeleteUser(ctx context.Context, user *User) error
- func Init(ctx context.Context)
- func UpdateUser(ctx context.Context, user *User) error
- func UpdateUserApplyRule(ctx context.Context, chatID int64, applyRule bool) error
- type Dir
- func GetDirByID(ctx context.Context, id uint) (*Dir, error)
- func GetDirsByUserChatIDAndStorageName(ctx context.Context, chatID int64, storageName string) ([]Dir, error)
- func GetDirsByUserIDAndStorageName(ctx context.Context, userID uint, storageName string) ([]Dir, error)
- func GetUserDirs(ctx context.Context, userID uint) ([]Dir, error)
- func GetUserDirsByChatID(ctx context.Context, chatID int64) ([]Dir, error)
- type Rule
- type User
- type WatchChat
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateDirForUser ¶
func DeleteDirForUser ¶
Types ¶
type Rule ¶
Click to show internal directories.
Click to hide internal directories.