models

package
v0.0.0-...-f9f63b7 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2015 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Overview

Package models implements the data structures used in Shelves, and other packages uses the structures defined in this package, such as loggers or Databases.

Index

Constants

This section is empty.

Variables

View Source
var (
	// MongoDB
	LogMongoDRV = log15.New(log15.Ctx{"Module": "Database/MongoDB/Driver"}) // MongoDB Driver Logger
	LogMongoTX  = log15.New(log15.Ctx{"Module": "Database/MongoDB/TX"})     // MongoDB Transactions Logger (TX)
)

Database Loggers

View Source
var (
	LogAuthFileConnect  = log15.New(log15.Ctx{"Module": "Auth/File/Connect"})
	LogAuthCryptGen     = log15.New(log15.Ctx{"Module": "Auth/Crypt/Gen"})
	LogAuthCryptCompare = log15.New(log15.Ctx{"Module": "Auth/Crypt/Compare"})
)

Auth package Loggers

View Source
var (
	LogDGUICore = log15.New(log15.Ctx{"Module": "DesktopGUI/Core"})
)

DesktopGUI Loggers

Functions

func ReturnAuthLoggers

func ReturnAuthLoggers() (log15.Logger, log15.Logger, log15.Logger)

ReturnAuthLoggers returns three loggers, all of which are of 'log15.Logger' type for the auth package for Shelves.

func ReturnDBLoggers

func ReturnDBLoggers() (log15.Logger, log15.Logger)

ReturnDBLoggers returns two loggers, both of which are of 'log15.Logger' type for the MongoDB module.

func ReturnDGUILoggers

func ReturnDGUILoggers() log15.Logger

ReturnDGUILoggers returns one logger, which is of 'log15.Logger' type for the DesktopGUI module.

Types

type Book

type Book struct {
	ID     int
	Title  string
	Author string
	ISBN   int
}

type ErrorHandlerResponse

type ErrorHandlerResponse struct {
	StatusCode             int    `json:"statusCode"`
	BriefStatusCodeDescrip string `json:"briefStatusCodeDescrip"`
	Doc                    string `json:"doc"`
}

type IndexHandlerResponse

type IndexHandlerResponse struct {
	StatusCode int    `json:"statusCode"`
	Output     string `json:"output"`
	Doc        string `json:"doc"`
}

Jump to

Keyboard shortcuts

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