notifications_user_id

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Body added in v0.2.7

type Body struct {
	DeviceToken string `json:"device_token"`
	Title       string `json:"title"`
	Description string `json:"description"`
}

func (*Body) String added in v0.2.7

func (b *Body) String() string

type BodyPicle added in v0.2.11

type BodyPicle struct {
	RecipientID string `json:"recipient_id"`
	Title       string `json:"title"`
	Body        string `json:"body"`
	Type        string `json:"type"`
	IsRead      bool   `json:"is_read"`
	Token       string `json:"token,omitempty"`
	Args        []any  `json:"args,omitempty"`
}

type NotificationsUserId

type NotificationsUserId struct {
	RabbitMQ rabbitmq.RabbitInterface
}

NotificationsUserId struct

func NewNotificationsUserId

func NewNotificationsUserId(url string) *NotificationsUserId

NewNotificationsUserId creates a new NotificationsUserId instance

func (*NotificationsUserId) Close added in v0.3.1

func (n *NotificationsUserId) Close() error

Close closes the RabbitMQ connection

func (*NotificationsUserId) NotifyApp added in v0.2.19

func (n *NotificationsUserId) NotifyApp(ctx context.Context, routingKey, userID string, body []byte, typeMessage string, args ...any)

func (*NotificationsUserId) NotifyPicle added in v0.2.11

func (n *NotificationsUserId) NotifyPicle(ctx context.Context, userID string, body []byte, typeMessage entity.NotifyTypeMessage, args ...any)

NotifyPicle notifies the user ID

Jump to

Keyboard shortcuts

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