data

package
v0.0.0-...-a9741ca Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

Functions

func NewMongo

func NewMongo(conf *conf.Data) *mongo.Database

func NewSceneRepo

func NewSceneRepo(data *Data, logger log.Logger) biz.SceneRepo

Types

type Data

type Data struct {
	// contains filtered or unexported fields
}

func NewData

func NewData(database *mongo.Database, logger log.Logger) (*Data, func(), error)

type Scene

type Scene struct {
	UserId int64 `bson:"user_id"`
	Items  []struct {
		ItemId int64   `bson:"role_id"`
		Blood  float64 `bson:"blood_val"`
	} `bson:"items"`
}

Jump to

Keyboard shortcuts

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