notification

package
v0.0.0-...-1d800d4 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2024 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Import

func Import(ctx context.Context, db *mongo.Database, _, tx pgx.Tx, limit int) error

Types

type ExpiresField

type ExpiresField struct {
	Expires time.Time `bson:"expires,omitempty"`
}

type ForPQ

type ForPQ struct {
	IdField          `bson:"inline"`
	UserIdField      `bson:"inline"`
	ExpiresField     `bson:"inline"`
	KeyField         `bson:"inline"`
	TemplateKeyField `bson:"inline"`
	MessageOptsField `bson:"inline"`
}

type IdField

type IdField struct {
	Id primitive.ObjectID `bson:"_id,omitempty"`
}

type KeyField

type KeyField struct {
	Key string `bson:"key"`
}

type MessageOptsField

type MessageOptsField struct {
	MessageOptions *bson.M `bson:"messageOpts,omitempty"`
}

type TemplateKeyField

type TemplateKeyField struct {
	TemplateKey string `bson:"templateKey,omitempty"`
}

type UserIdField

type UserIdField struct {
	UserId primitive.ObjectID `bson:"user_id"`
}

Jump to

Keyboard shortcuts

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