db

package
v0.0.0-...-f34c3c0 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2017 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Open

func Open() (dbConn *gorm.DB, err error)

Open establishes a connection with the database server using the configured database driver

func Reset

func Reset(dbConn *gorm.DB)

func Seed

func Seed(dbConn *gorm.DB)

func TruncateTables

func TruncateTables(dbConn *gorm.DB)

Types

type BasicServer

type BasicServer struct {
	IP   string
	Port string
}

BasicServer represents a single game server by their IP address and Port

func GetFilteredGameServers

func GetFilteredGameServers(dbConn *gorm.DB, filter string) []BasicServer

GetFilteredGameServers returns a slice of servers using the BasicServer struct

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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