Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArrayString ¶
type ArrayString []string
func (*ArrayString) Scan ¶
func (g *ArrayString) Scan(src interface{}) error
Scan implements the sql.Scanner interface
type Certificate ¶
type ServerMonitoring ¶
type ServerMonitoring struct { TotalMemoryBytes uint64 FreeMemoryBytes uint64 TotalCPUSeconds uint64 FreeCPUPercentage uint64 // base 10 000 not 100!!! TotalDiskBytes uint64 FreeDiskBytes uint64 ToasterStartupLatencyNanoseconds uint64 }
func UnmarshalServerMonitoring ¶
func UnmarshalServerMonitoring(b []byte) (*ServerMonitoring, error)
func (*ServerMonitoring) Marshal ¶
func (sm *ServerMonitoring) Marshal() []byte
type Toaster ¶
type Toaster struct { ID string `json:"id,omitempty" db:"id"` Cursor int `json:"-" db:"cursor"` CodeID string `json:"code_id,omitempty" db:"code_id"` OwnerID string `json:"owner_id,omitempty" db:"owner_id"` BuildCmd ArrayString `json:"build_command,omitempty" db:"build_command"` ExeCmd ArrayString `json:"execution_command,omitempty" db:"execution_command"` Env ArrayString `json:"environment_variables,omitempty" db:"environment_variables"` Image string `json:"image,omitempty" db:"image"` JoinableForSec int `json:"joinable_for_seconds,omitempty" db:"joinable_for_seconds"` MaxConcurrentJoiners int `json:"max_concurrent_joiners,omitempty" db:"max_concurrent_joiners"` TimeoutSec int `json:"timeout_seconds,omitempty" db:"timeout_seconds"` Name string `json:"name,omitempty" db:"name"` // max 120 characters LastModified int64 `json:"last_modified,omitempty" db:"last_modified"` Created int64 `json:"created,omitempty" db:"created"` GitURL string `json:"git_url,omitempty" db:"git_url"` GitUsername string `json:"git_username,omitempty" db:"git_username"` GitBranch string `json:"git_branch,omitempty" db:"git_branch"` GitAccessToken string `json:"-" db:"git_access_token"` GitPassword string `json:"-" db:"git_password"` Files ArrayString `json:"files,omitempty" db:"files"` Readme string `json:"readme,omitempty" db:"readme"` Keywords ArrayString `json:"keywords,omitempty" db:"keywords"` PictureExtension string `json:"-" db:"picture_ext"` PictureLink string `json:"picture_link" db:"-"` RunLink string `json:"run_link" db:"-"` }
type User ¶
type User struct { ID string `json:"id,omitempty" db:"id"` Cursor int `json:"-" db:"cursor"` Username string `json:"username,omitempty" db:"username"` Email string `json:"email,omitempty" db:"email"` Password string `json:"-" db:"password"` PictureExtension string `json:"-" db:"picture_ext"` PictureLink string `json:"picture_link" db:"-"` }
type UserStatistics ¶
type UserStatistics struct { UserID string `json:"user_id,omitempty" db:"user_id"` Monthyear string `json:"month_year,omitempty" db:"month_year"` DurationMS int `json:"duration_ms,omitempty" db:"duration_ms"` CPUS int `json:"cpu_seconds,omitempty" db:"cpus"` Executions int `json:"runs,omitempty" db:"executions"` RAMGBS float64 `json:"ram_gbs,omitempty" db:"ram_gbs"` NetIngress float64 `json:"net_ingress,omitempty" db:"net_ingress"` NetEgress float64 `json:"net_egress,omitempty" db:"net_egress"` }
Click to show internal directories.
Click to hide internal directories.