Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Runtimes = map[string]bool{ "js": true, "go": true, }
Functions ¶
func ValidRuntime ¶
Types ¶
type App ¶
type App struct {
ID uuid.UUID `json:"id"`
Name string `json:"name"`
Endpoint string `json:"endpoint"`
ActiveDeploy uuid.UUID `json:"activeDeploy"`
Environment map[string]string `json:"-"`
Deploys []Deploy `json:"deploys"`
CreatedAT time.Time `json:"createdAt"`
}
func (App) HasActiveDeploy ¶
type Deploy ¶
type Endpoint ¶
type Endpoint struct {
ID uuid.UUID `json:"id"`
Name string `json:"name"`
URL string `json:"url"`
Runtime string `json:"runtime"`
ActiveDeployID uuid.UUID `json:"active_deploy_id"`
Environment map[string]string `json:"environment"`
DeployHistory []*Deploy `json:"deploy_history"`
CreatedAT time.Time `json:"created_at"`
}
func (Endpoint) HasActiveDeploy ¶
type RuntimeMetric ¶
type RuntimeMetric struct {
ID uuid.UUID `json:"id"`
EndpointID uuid.UUID `json:"endpoint_id"`
DeployID uuid.UUID `json:"deploy_id"`
RequestURL string `json:"request_url"`
Duration time.Duration `json:"duration"`
StartTime time.Time `json:"start_time"`
}
RuntimeMetric holds information about a single runtime execution.
Click to show internal directories.
Click to hide internal directories.