From 6a8c3df9f673e531484c505392c64badf15fb74c Mon Sep 17 00:00:00 2001 From: "Jonathan Leibiusky @xetorthio" Date: Mon, 4 Sep 2017 17:17:28 -0300 Subject: [PATCH] Add mongo labels to types --- pwd/types/client.go | 2 +- pwd/types/session.go | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/pwd/types/client.go b/pwd/types/client.go index e6a798c..11dcfec 100644 --- a/pwd/types/client.go +++ b/pwd/types/client.go @@ -2,7 +2,7 @@ package types type Client struct { Id string `json:"id" bson:"id"` - SessionId string `json:"session_id"` + SessionId string `json:"session_id" bson:"session_id"` ViewPort ViewPort `json:"viewport"` } diff --git a/pwd/types/session.go b/pwd/types/session.go index 1347751..eeb0563 100644 --- a/pwd/types/session.go +++ b/pwd/types/session.go @@ -7,14 +7,14 @@ import ( type Session struct { Id string `json:"id" bson:"id"` - CreatedAt time.Time `json:"created_at"` - ExpiresAt time.Time `json:"expires_at"` - PwdIpAddress string `json:"pwd_ip_address"` - Ready bool `json:"ready"` - Stack string `json:"stack"` - StackName string `json:"stack_name"` - ImageName string `json:"image_name"` - Host string `json:"host"` + CreatedAt time.Time `json:"created_at" bson:"created_at"` + ExpiresAt time.Time `json:"expires_at" bson:"expires_at"` + PwdIpAddress string `json:"pwd_ip_address" bson:"pwd_ip_address"` + Ready bool `json:"ready" bson:"ready"` + Stack string `json:"stack" bson:"stack"` + StackName string `json:"stack_name" bson:"stack_name"` + ImageName string `json:"image_name" bson:"image_name"` + Host string `json:"host" bson:"host"` rw sync.Mutex `json:"-"` }