db

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Connect

func Connect()

func Disconnect

func Disconnect()

func GetServerCollection

func GetServerCollection() *mongo.Collection

func UpdateServer

func UpdateServer(server *Server) error

Types

type Server

type Server struct {
	Name         string    `bson:"name"`
	PlayerRecord int32     `bson:"player_record"`
	Timestamp    time.Time `bson:"timestamp"`
}

func GetServer

func GetServer(name string) (*Server, error)

Jump to

Keyboard shortcuts

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