follow_relationship

package
v0.0.0-...-2f69930 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Model

type Model struct {
	*database.Database `json:"-" bson:"-" map:"-"`
}

func NewModel

func NewModel(mgo mongodb.Mongoer) *Model

func (*Model) CreateRelationship

func (self *Model) CreateRelationship(ctx context.Context, typ int, userID, objectID, ObjectOwnerUserID primitive.ObjectID, stealth bool, extensionID primitive.ObjectID) (primitive.ObjectID, error)

func (*Model) DeleteRelationship

func (self *Model) DeleteRelationship(ctx context.Context, typ int, userID, objectID primitive.ObjectID) error

func (*Model) DeleteRelationshipByID

func (self *Model) DeleteRelationshipByID(ctx context.Context, id primitive.ObjectID) error

func (*Model) FilterByExtensionID

func (self *Model) FilterByExtensionID(extensionID primitive.ObjectID) bson.D

func (*Model) FilterByExtensionIDs

func (self *Model) FilterByExtensionIDs(extensionIDs []primitive.ObjectID) bson.D

func (*Model) FilterByObjectID

func (self *Model) FilterByObjectID(objectID primitive.ObjectID) bson.D

func (*Model) FilterByObjectOwnerUserID

func (self *Model) FilterByObjectOwnerUserID(objectOwnerUserID primitive.ObjectID) bson.D

func (*Model) FilterByRelationship

func (self *Model) FilterByRelationship(typ int, userID, objectID primitive.ObjectID) bson.D

func (*Model) FilterByType

func (self *Model) FilterByType(typ int) bson.D

func (*Model) FilterByTypes

func (self *Model) FilterByTypes(types []int) bson.D

func (*Model) FilterByUser

func (self *Model) FilterByUser(userID primitive.ObjectID) bson.D

Jump to

Keyboard shortcuts

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