Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EventsBsonToJson ¶
func EventsBsonToJson(input []bsoncore.Document) ([]json.RawMessage, error)
func NotificationDocToJson ¶
func NotificationDocToJson(document *NotificationDocument) ([]byte, error)
func NotificationTopicName ¶
Types ¶
type NotificationDocument ¶
type NotificationDocument struct { Id primitive.ObjectID `bson:"_id,omitempty"` TenantId string `bson:"tenantId"` AccountId string `bson:"accountId"` Subject string `bson:"subject"` Step internal_bson.Step `bson:"step"` ReadMarked bool `bson:"readMarked"` Deleted bool `bson:"deleted"` }
func (*NotificationDocument) GetId ¶
func (d *NotificationDocument) GetId() string
type NotificationFilter ¶
type NotificationService ¶
type NotificationService interface { Start(appCtx context.Context, mongoDatabase *mongo.Database) error CreateNotification(document *NotificationDocument) error GetNotifications(tenantId string, accountId string, filter *NotificationFilter) ([]*NotificationDocument, error) MarkNotifications(tenantId string, accountId string, params *api_proto.MarkNotificationsRequest) error }
func New ¶
func New(pubSubService pubsub_service.PubSubService) NotificationService
Click to show internal directories.
Click to hide internal directories.