ams

package
v0.0.0-...-00cfc7d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 3, 2026 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

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

func WithClient(client *ent.Client) Option

type Service

type Service struct {
	// contains filtered or unexported fields
}

func NewService

func NewService(opt ...Option) *Service

func (*Service) FormatMsgAlertMore

func (s *Service) FormatMsgAlertMore(ctx context.Context, msgAlertID int) ([]*model.FormatMsgAlert, error)

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)

func (*Service) RenderMsgAlert

func (s *Service) RenderMsgAlert(ctx context.Context, msgAlertID int, receiver string) (*string, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL