notifications

package
v0.0.0-...-b84af7b Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeBroadcaster

type FakeBroadcaster struct {
}

func (FakeBroadcaster) Send

func (broadcaster FakeBroadcaster) Send(message *model.UserFirebaseNotification)

type Mention

type Mention struct {
	Id        bson.ObjectId `bson:"_id,omitempty" json:"id,omitempty"`
	UserId    bson.ObjectId `bson:"user_id" json:"user_id"` // Mentioned
	FromId    bson.ObjectId `bson:"from_id" json:"from_id"`
	Related   string        `bson:"related" json:"related"`
	RelatedId bson.ObjectId `bson:"related_id" json:"related_id"`
	Created   time.Time     `bson:"created_at" json:"created_at"`
	Updated   time.Time     `bson:"updated_at" json:"updated_at"`
}

type MentionParseObject

type MentionParseObject struct {
	Type          string
	RelatedNested string
	Content       string
	Title         string
	Author        bson.ObjectId
	Post          model.Post
}

type NotificationsModule

type NotificationsModule struct {
	Errors *exceptions.ExceptionsModule `inject:""`
	User   *user.Module                 `inject:""`
}

func (*NotificationsModule) Mention

func (self *NotificationsModule) Mention(parseableMeta map[string]interface{}, user_id, target_user bson.ObjectId)

Jump to

Keyboard shortcuts

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