aggiunto il campo "Read" per tenere traccia della lettura del documento.

This commit is contained in:
miki 2015-09-22 16:50:44 +02:00
parent 59e3c609d2
commit b2ae33be3b
2 changed files with 3 additions and 1 deletions

1
dbs.go
View file

@ -29,6 +29,7 @@ type MongoLogin struct {
Protocol string `json:"protocol"`
Ip string `json:"ip"`
Date time.Time `json:"date"`
Read bool `json:"read"`
}
type Index struct {

View file

@ -22,7 +22,7 @@ type Options struct {
}
const (
_VERSION = "v1.1.3"
_VERSION = "v1.1.4"
)
var (
@ -139,6 +139,7 @@ func main() {
Protocol: sval[0],
Ip: sval[2],
Date: time.Unix(date, 0),
Read: false,
}
ind := Index{
User: user,