Documentation
¶
Index ¶
- type Option
- type Service
- func (s *Service) FormatMsgAlertMore(ctx context.Context, msgAlertID int) ([]*model.FormatMsgAlert, error)
- func (s *Service) FormatMsgAlerts(ctx context.Context, after *entgql.Cursor[int], first *int, ...) (*model.FormatMsgAlertConnection, error)
- func (s *Service) RenderMsgAlert(ctx context.Context, msgAlertID int, receiver string) (*string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(*Service)
func WithAlertManager ¶
func WithAlertManager(am *service.AlertManager) Option
func WithClient ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func (*Service) FormatMsgAlertMore ¶
func (*Service) FormatMsgAlerts ¶
func (s *Service) FormatMsgAlerts(ctx context.Context, after *entgql.Cursor[int], first *int, before *entgql.Cursor[int], last *int, alertName *string, userID *string, receiverType *profile.ReceiverType, orderBy *ent.MsgAlertOrder, where *ent.MsgAlertWhereInput) (*model.FormatMsgAlertConnection, error)
Click to show internal directories.
Click to hide internal directories.