mongomodels

package
v2.4.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2017 License: MIT Imports: 2 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MongoCustomLog

type MongoCustomLog struct {
	ID             bson.ObjectId `bson:"_id,omitempty" json:"_id"`
	Level          string        `json:"level"`
	Message        string        `json:"message"`
	Timestamp      int64         `json:"timestamp"`
	ExpiresAt      time.Time     `bson:"expiresAt"  json:"-"`
	ExpiresAtShow  int64         `bson:"expiresAtIntJustToShow"  json:"expiresAt"`
	Tags           []string      `json:"tags,omitempty"`
	AdditionalData interface{}   `bson:"additionalData" json:"additionalData,omitempty"`
}

MongoCustomLog Struc for custom log

type MongoLog

type MongoLog struct {
	ID            bson.ObjectId `bson:"_id,omitempty" json:"_id"`
	Level         string        `json:"level"`
	Message       string        `json:"message"`
	Timestamp     int64         `json:"timestamp"`
	ExpiresAt     time.Time     `bson:"expiresAt"  json:"-"`
	ExpiresAtShow int64         `bson:"expiresAtIntJustToShow"  json:"expiresAt"`
}

MongoLog Struc for common log

Jump to

Keyboard shortcuts

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