Documentation ¶
Index ¶
- func CORS(w http.ResponseWriter, r *http.Request)
- func CorsMiddleware(next http.Handler) http.Handler
- func EnforceMockAccess(next http.HandlerFunc) http.HandlerFunc
- func GetAppHistory(w http.ResponseWriter, r *http.Request)
- func GetAppUpdates(w http.ResponseWriter, r *http.Request)
- func GetCurrentAppInfo(w http.ResponseWriter, r *http.Request)
- func GetIntegrationMockData(w http.ResponseWriter, r *http.Request)
- func GetIntegrationStatus(w http.ResponseWriter, r *http.Request)
- func GetLicenseField(w http.ResponseWriter, r *http.Request)
- func GetLicenseFields(w http.ResponseWriter, r *http.Request)
- func GetLicenseInfo(w http.ResponseWriter, r *http.Request)
- func Healthz(w http.ResponseWriter, r *http.Request)
- func JSON(w http.ResponseWriter, code int, payload interface{})
- func JSONCached(w http.ResponseWriter, code int, payload interface{})
- func PostIntegrationMockData(w http.ResponseWriter, r *http.Request)
- func RequireValidLicenseIDMiddleware(next http.Handler) http.Handler
- func SendCustomAppMetrics(w http.ResponseWriter, r *http.Request)
- type AppRelease
- type CustomAppMetricsData
- type GetAppHistoryResponse
- type GetCurrentAppInfoResponse
- type GetIntegrationStatusResponse
- type HealthzResponse
- type LicenseInfo
- type SendCustomAppMetricsRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnforceMockAccess ¶
func EnforceMockAccess(next http.HandlerFunc) http.HandlerFunc
func GetAppHistory ¶
func GetAppHistory(w http.ResponseWriter, r *http.Request)
func GetAppUpdates ¶
func GetAppUpdates(w http.ResponseWriter, r *http.Request)
func GetCurrentAppInfo ¶
func GetCurrentAppInfo(w http.ResponseWriter, r *http.Request)
func GetIntegrationMockData ¶
func GetIntegrationMockData(w http.ResponseWriter, r *http.Request)
func GetIntegrationStatus ¶
func GetIntegrationStatus(w http.ResponseWriter, r *http.Request)
func GetLicenseField ¶
func GetLicenseField(w http.ResponseWriter, r *http.Request)
func GetLicenseFields ¶
func GetLicenseFields(w http.ResponseWriter, r *http.Request)
func GetLicenseInfo ¶
func GetLicenseInfo(w http.ResponseWriter, r *http.Request)
func JSON ¶
func JSON(w http.ResponseWriter, code int, payload interface{})
func JSONCached ¶
func JSONCached(w http.ResponseWriter, code int, payload interface{})
func PostIntegrationMockData ¶
func PostIntegrationMockData(w http.ResponseWriter, r *http.Request)
func SendCustomAppMetrics ¶
func SendCustomAppMetrics(w http.ResponseWriter, r *http.Request)
Types ¶
type AppRelease ¶
type AppRelease struct { VersionLabel string `json:"versionLabel"` ReleaseNotes string `json:"releaseNotes"` CreatedAt string `json:"createdAt"` DeployedAt string `json:"deployedAt"` HelmReleaseName string `json:"helmReleaseName,omitempty"` HelmReleaseRevision int `json:"helmReleaseRevision,omitempty"` HelmReleaseNamespace string `json:"helmReleaseNamespace,omitempty"` }
type CustomAppMetricsData ¶
type CustomAppMetricsData map[string]interface{}
type GetAppHistoryResponse ¶
type GetAppHistoryResponse struct {
Releases []AppRelease `json:"releases"`
}
type GetCurrentAppInfoResponse ¶
type GetCurrentAppInfoResponse struct { AppSlug string `json:"appSlug"` AppName string `json:"appName"` AppStatus appstatetypes.State `json:"appStatus"` HelmChartURL string `json:"helmChartURL,omitempty"` CurrentRelease AppRelease `json:"currentRelease"` }
type GetIntegrationStatusResponse ¶
type GetIntegrationStatusResponse struct {
IsEnabled bool `json:"isEnabled"`
}
type HealthzResponse ¶
type HealthzResponse struct {
Version string `json:"version"`
}
type LicenseInfo ¶
type SendCustomAppMetricsRequest ¶
type SendCustomAppMetricsRequest struct {
Data CustomAppMetricsData `json:"data"`
}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.