imagemodel

package
v0.0.0-...-a953039 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteMany

func DeleteMany(filter bson.M) error

Types

type Image

type Image struct {
	ID    primitive.ObjectID `json:"id" bson:"_id,omitempty"`
	Owner primitive.ObjectID `json:"owner" bson:"owner,required"`
	Data  []byte             `json:"data" bson:"data,required"`
}

func FindOne

func FindOne(filter bson.M) (*Image, error)

func (*Image) Save

func (img *Image) Save() (primitive.ObjectID, error)

Jump to

Keyboard shortcuts

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