gofmt common

pull/3/head
Simon Let 7 years ago
parent ad5fe3c0c0
commit cbdc2cb6c7
  1. 112
      common/resh-common.go

@ -1,63 +1,63 @@
package common package common
type Record struct { type Record struct {
// core // core
CmdLine string `json:"cmdLine"` CmdLine string `json:"cmdLine"`
ExitCode int `json:"exitCode"` ExitCode int `json:"exitCode"`
Shell string `json:"shell"` Shell string `json:"shell"`
// posix // posix
Cols int `json:"cols"` Cols int `json:"cols"`
Lines int `json:"lines"` Lines int `json:"lines"`
Home string `json:"home"` Home string `json:"home"`
Lang string `json:"lang"` Lang string `json:"lang"`
LcAll string `json:"lcAll"` LcAll string `json:"lcAll"`
Login string `json:"login"` Login string `json:"login"`
Path string `json:"path"` Path string `json:"path"`
Pwd string `json:"pwd"` Pwd string `json:"pwd"`
PwdAfter string `json:"pwdAfter"` PwdAfter string `json:"pwdAfter"`
ShellEnv string `json:"shellEnv"` ShellEnv string `json:"shellEnv"`
Term string `json:"term"` Term string `json:"term"`
// non-posix"` // non-posix"`
RealPwd string `json:"realPwd"` RealPwd string `json:"realPwd"`
RealPwdAfter string `json:"realPwdAfter"` RealPwdAfter string `json:"realPwdAfter"`
Pid int `json:"pid"` Pid int `json:"pid"`
ShellPid int `json:"shellPid"` ShellPid int `json:"shellPid"`
WindowId int `json:"windowId"` WindowId int `json:"windowId"`
Host string `json:"host"` Host string `json:"host"`
Hosttype string `json:"hosttype"` Hosttype string `json:"hosttype"`
Ostype string `json:"ostype"` Ostype string `json:"ostype"`
Machtype string `json:"machtype"` Machtype string `json:"machtype"`
Shlvl int `json:"shlvl"` Shlvl int `json:"shlvl"`
// before after // before after
TimezoneBefore string `json:"timezoneBefore"` TimezoneBefore string `json:"timezoneBefore"`
TimezoneAfter string `json:"timezoneAfter"` TimezoneAfter string `json:"timezoneAfter"`
RealtimeBefore float64 `json:"realtimeBefore"` RealtimeBefore float64 `json:"realtimeBefore"`
RealtimeAfter float64 `json:"realtimeAfter"` RealtimeAfter float64 `json:"realtimeAfter"`
RealtimeBeforeLocal float64 `json:"realtimeBeforeLocal"` RealtimeBeforeLocal float64 `json:"realtimeBeforeLocal"`
RealtimeAfterLocal float64 `json:"realtimeAfterLocal"` RealtimeAfterLocal float64 `json:"realtimeAfterLocal"`
RealtimeDuration float64 `json:"realtimeDuration"` RealtimeDuration float64 `json:"realtimeDuration"`
RealtimeSinceSessionStart float64 `json:"realtimeSinceSessionStart"` RealtimeSinceSessionStart float64 `json:"realtimeSinceSessionStart"`
RealtimeSinceBoot float64 `json:"realtimeSinceBoot"` RealtimeSinceBoot float64 `json:"realtimeSinceBoot"`
//Logs []string `json: "logs"` //Logs []string `json: "logs"`
GitDir string `json:"gitDir"` GitDir string `json:"gitDir"`
GitRealDir string `json:"gitRealDir"` GitRealDir string `json:"gitRealDir"`
GitOriginRemote string `json:"gitOriginRemote"` GitOriginRemote string `json:"gitOriginRemote"`
MachineId string `json:"machineId"` MachineId string `json:"machineId"`
ReshUuid string `json:"reshUuid"` ReshUuid string `json:"reshUuid"`
OsReleaseId string `json:"osReleaseId"` OsReleaseId string `json:"osReleaseId"`
OsReleaseVersionId string `json:"osReleaseVersionId"` OsReleaseVersionId string `json:"osReleaseVersionId"`
OsReleaseIdLike string `json:"osReleaseIdLike"` OsReleaseIdLike string `json:"osReleaseIdLike"`
OsReleaseName string `json:"osReleaseName"` OsReleaseName string `json:"osReleaseName"`
OsReleasePrettyName string `json:"osReleasePrettyName"` OsReleasePrettyName string `json:"osReleasePrettyName"`
} }
type Config struct { type Config struct {
Port int Port int
} }

Loading…
Cancel
Save