Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InviteCode ¶
type InviteCode struct { Id int64 `xorm:"pk autoincr notnull"` InviteCode string `xorm:"not null"` PackageLimit int `xorm:"not null"` Available bool `xorm:"not null default 1"` AvailableLimit int `xorm:"not null default 1"` //unit: month Created time.Time `xorm:"created"` Updated time.Time `xorm:"updated"` }
type Response ¶
type Response struct { Success bool `json:"success"` Message string `json:"message"` Data interface{} `json:"data"` }
Response struct for http response
type ServiceResult ¶
type ServiceResult struct { ID string `json:"serviceId"` Host string `json:"host"` Port int `json:"servicePort"` Password string `json:"servicePwd"` PackageLimit int `json:"packageLimit"` }
ServiceResult struct for new created SS service
type User ¶
type User struct { Id int64 `xorm:"pk autoincr notnull"` Username string HashedPwd []byte `xorm:"blob"` InviteCode string PackageLimit int `xorm:"not null"` //Package bandwidth limit, unit: GB PackageUsed float32 //Package bandwidth used, unit: GB Status int `xorm:"default 0"` // 0=>not created 1=>running 2=>stopped ServiceId string //SS container id ServiceType string //SS container type ServicePort int `xorm:"not null default 0"` //Docker service port for SS ServicePwd string //Password for SS ServiceMethod string //Encryption method for SS LastStatsResult uint64 //Last time stats result,unit: byte LastStatsTime *time.Time //Last time stats time Created time.Time `xorm:"created"` Updated time.Time `xorm:"updated"` Expired time.Time `xorm:"expired"` }
Click to show internal directories.
Click to hide internal directories.