admin

package
v0.0.0-...-f97894e Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2016 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HttpServer

func HttpServer()

*

  • 建立web server

func SearchLog

func SearchLog(collectionName string, query bson.M, sort string, fields bson.M, skip int, limit int) (results []interface{}, err error)

*

  • 执行查询,此方法可拆分做为公共方法
  • [Search description]
  • @param {[type]} collectionName string [description]
  • @param {[type]} query bson.M [description]
  • @param {[type]} sort bson.M [description]
  • @param {[type]} fields bson.M [description]
  • @param {[type]} skip int [description]
  • @param {[type]} limit int) (results []interface{}, err error [description]

Types

type Logs

type Logs struct {
	All []MongoLog
}

type MongoLog

type MongoLog struct {
	Id_     bson.ObjectId `bson:"_id"`
	Name    string
	Level   string
	File    string
	Line    int
	Message string
	Time    int
}

Jump to

Keyboard shortcuts

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