Documentation ¶
Index ¶
- func Conn() *mongo.Client
- func Connect()
- type MongoBase
- func (mb *MongoBase) CreatePlayerStateWithWorkers(player interface{})
- func (mb *MongoBase) CreateUserWithWorkers(user interface{})
- func (mb *MongoBase) CreateVehicleStateWithWorkers(vehicle interface{})
- func (mb *MongoBase) GetPlayerState(player, filter interface{}, opts ...*options.FindOneOptions) error
- func (mb *MongoBase) GetVehicleState(vehicle, filter interface{}, opts ...*options.FindOneOptions) error
- func (mb *MongoBase) UseCollection(collection string) *MongoBase
- func (mb *MongoBase) UseDatabase(db string) *MongoBase
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MongoBase ¶
type MongoBase struct {
// contains filtered or unexported fields
}
func (*MongoBase) CreatePlayerStateWithWorkers ¶
func (mb *MongoBase) CreatePlayerStateWithWorkers(player interface{})
func (*MongoBase) CreateUserWithWorkers ¶
func (mb *MongoBase) CreateUserWithWorkers(user interface{})
func (*MongoBase) CreateVehicleStateWithWorkers ¶
func (mb *MongoBase) CreateVehicleStateWithWorkers(vehicle interface{})
func (*MongoBase) GetPlayerState ¶
func (mb *MongoBase) GetPlayerState(player, filter interface{}, opts ...*options.FindOneOptions) error
func (*MongoBase) GetVehicleState ¶
func (mb *MongoBase) GetVehicleState(vehicle, filter interface{}, opts ...*options.FindOneOptions) error
func (*MongoBase) UseCollection ¶
func (*MongoBase) UseDatabase ¶
Click to show internal directories.
Click to hide internal directories.