Add mongo labels to types
This commit is contained in:
@@ -2,7 +2,7 @@ package types
|
|||||||
|
|
||||||
type Client struct {
|
type Client struct {
|
||||||
Id string `json:"id" bson:"id"`
|
Id string `json:"id" bson:"id"`
|
||||||
SessionId string `json:"session_id"`
|
SessionId string `json:"session_id" bson:"session_id"`
|
||||||
ViewPort ViewPort `json:"viewport"`
|
ViewPort ViewPort `json:"viewport"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -7,14 +7,14 @@ import (
|
|||||||
|
|
||||||
type Session struct {
|
type Session struct {
|
||||||
Id string `json:"id" bson:"id"`
|
Id string `json:"id" bson:"id"`
|
||||||
CreatedAt time.Time `json:"created_at"`
|
CreatedAt time.Time `json:"created_at" bson:"created_at"`
|
||||||
ExpiresAt time.Time `json:"expires_at"`
|
ExpiresAt time.Time `json:"expires_at" bson:"expires_at"`
|
||||||
PwdIpAddress string `json:"pwd_ip_address"`
|
PwdIpAddress string `json:"pwd_ip_address" bson:"pwd_ip_address"`
|
||||||
Ready bool `json:"ready"`
|
Ready bool `json:"ready" bson:"ready"`
|
||||||
Stack string `json:"stack"`
|
Stack string `json:"stack" bson:"stack"`
|
||||||
StackName string `json:"stack_name"`
|
StackName string `json:"stack_name" bson:"stack_name"`
|
||||||
ImageName string `json:"image_name"`
|
ImageName string `json:"image_name" bson:"image_name"`
|
||||||
Host string `json:"host"`
|
Host string `json:"host" bson:"host"`
|
||||||
rw sync.Mutex `json:"-"`
|
rw sync.Mutex `json:"-"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user