Documentation ¶
Index ¶
- func DeleteNotifies(user string, notifyIDs []string, log *zap.SugaredLogger) error
- func ListSubscriptions(user string, log *zap.SugaredLogger) ([]*commonmodels.Subscription, error)
- func PullNotify(user string, log *zap.SugaredLogger) ([]*commonmodels.Notify, error)
- func ReadNotify(user string, notifyIDs []string, log *zap.SugaredLogger) error
- func Unsubscribe(user string, notifyType int, log *zap.SugaredLogger) error
- func UpdateSubscribe(user string, notifyType int, subscription *commonmodels.Subscription, ...) error
- func UpsertSubscription(user string, subscription *commonmodels.Subscription, log *zap.SugaredLogger) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteNotifies ¶
func DeleteNotifies(user string, notifyIDs []string, log *zap.SugaredLogger) error
func ListSubscriptions ¶
func ListSubscriptions(user string, log *zap.SugaredLogger) ([]*commonmodels.Subscription, error)
func PullNotify ¶
func PullNotify(user string, log *zap.SugaredLogger) ([]*commonmodels.Notify, error)
func ReadNotify ¶
func ReadNotify(user string, notifyIDs []string, log *zap.SugaredLogger) error
func Unsubscribe ¶
func Unsubscribe(user string, notifyType int, log *zap.SugaredLogger) error
func UpdateSubscribe ¶
func UpdateSubscribe(user string, notifyType int, subscription *commonmodels.Subscription, log *zap.SugaredLogger) error
func UpsertSubscription ¶
func UpsertSubscription(user string, subscription *commonmodels.Subscription, log *zap.SugaredLogger) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.