model

package
v0.0.0-...-177bf24 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2016 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloseDB

func CloseDB()

CloseDB is used to defer the closing of the db from outside the package

func InitializeDB

func InitializeDB()

InitializeDB initializes the database connection

Types

type Hardware

type Hardware struct {
	ObjectID    string `db:"naam"`
	Hostname    string `db:"hostnaam"`
	User        string `db:"ref_gebruiker"`
	Type        string `db:"objecttype"`
	Description string `db:"specificatie"`
	Location    string `db:"ref_lokatie"`
	IP          string `db:"ipadres"`
	MAC         string `db:"macadres"`
}

Hardware table contains the information for each Object

func FindHardware

func FindHardware(searchString string) []Hardware

FindHardware finds Hardware objects by ObjectID or Username and returns a slice of Hardware

Jump to

Keyboard shortcuts

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