mongo

package
v0.0.0-...-6346ec2 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2021 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMongoRepo

func NewMongoRepo(mongoURL, mongoDB, collection string) (service.ServiceResository, error)

Types

type GameItem

type GameItem struct {
	Id                  primitive.ObjectID `bson:"_id,omitempty"`
	Category            string             `bson:"category,omitempty"`
	Title               string             `bson:"title,omitempty"`
	Subtitle            string             `bson:"subtitle,omitempty"`
	Description         string             `bson:"description,omitempty"`
	Images              []*apiv1.Images    `bson:"images,omitempty"`
	Type                int32              `bson:"type,omitempty"`
	Tags                []string           `bson:"tags,omitempty"`
	Author              string             `bson:"author,omitempty"`
	ReplayBundleUrlJson string             `bson:"replayBundleUrlJson,omitempty"`
	Duration            float64            `bson:"duration,omitempty"`
	IsDownloadable      bool               `bson:"isDownloadable,omitempty"`
	IsStreamable        bool               `bson:"isStreamable,omitempty"`
	Version             string             `bson:"version,omitempty"`
}

Jump to

Keyboard shortcuts

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