projectInvite

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 CreatedAtField

type CreatedAtField struct {
	CreatedAt time.Time `bson:"createdAt"`
}

type EmailField

type EmailField struct {
	Email sharedTypes.Email `bson:"email"`
}

type ExpiresAtField

type ExpiresAtField struct {
	Expires time.Time `bson:"expires"`
}

type ForPQ

type ForPQ struct {
	CreatedAtField      `bson:"inline"`
	EmailField          `bson:"inline"`
	ExpiresAtField      `bson:"inline"`
	IdField             `bson:"inline"`
	PrivilegeLevelField `bson:"inline"`
	ProjectIdField      `bson:"inline"`
	SendingUserIdField  `bson:"inline"`
	TokenField          `bson:"inline"`
}

type IdField

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

type PrivilegeLevelField

type PrivilegeLevelField struct {
	PrivilegeLevel sharedTypes.PrivilegeLevel `bson:"privileges"`
}

type ProjectIdField

type ProjectIdField struct {
	ProjectId primitive.ObjectID `bson:"projectId"`
}

type SendingUserIdField

type SendingUserIdField struct {
	SendingUserId primitive.ObjectID `bson:"sendingUserId"`
}

type Token

type Token string

type TokenField

type TokenField struct {
	Token Token `bson:"token"`
}

Jump to

Keyboard shortcuts

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