Skip to main content

Overview

The Fastedge service provides a complete edge computing platform that allows you to deploy WebAssembly applications at the CDN edge. It manages edge applications, binaries, secrets, key-value stores, templates, and statistics.

Service Structure

The FastedgeService includes the following sub-services:
  • Apps - FastEdge applications that combine WebAssembly binaries with configuration, environment variables, and secrets
  • Binaries - Immutable WebAssembly modules that implement edge application logic
  • Secrets - Secure storage for sensitive values like API keys and tokens
  • KvStores - Key-value edge storage for applications
  • Templates - Application templates for quick deployment
  • Statistics - Usage statistics and metrics for edge applications

Get Account Overview

Retrieve the current status, limits, and consumption metrics for your Fastedge account.
package main

import (
    "context"
    "fmt"
    "github.com/G-Core/gcore-go"
    "github.com/G-Core/gcore-go/option"
)

func main() {
    client := gcore.NewClient(
        option.WithAPIKey("your-api-key"),
    )
    
    overview, err := client.Fastedge.GetAccountOverview(context.Background())
    if err != nil {
        panic(err)
    }
    
    fmt.Printf("App Count: %d\n", overview.AppCount)
    fmt.Printf("Status: %d\n", overview.Status)
    fmt.Printf("Plan: %s\n", overview.Plan)
    fmt.Printf("Daily Consumption: %d\n", overview.DailyConsumption)
    fmt.Printf("Hourly Consumption: %d\n", overview.HourlyConsumption)
    fmt.Printf("Monthly Consumption: %d\n", overview.MonthlyConsumption)
}

Response

app_count
int64
required
Actual allowed number of apps
status
int64
required
Status code:
  • 1 - enabled
  • 2 - disabled
  • 3 - hourly call limit exceeded
  • 4 - daily call limit exceeded
  • 5 - suspended
plan_id
int64
required
Plan ID
plan
string
Plan name
daily_consumption
int64
required
Actual number of calls for all apps during the current day (UTC)
hourly_consumption
int64
required
Actual number of calls for all apps during the current hour
monthly_consumption
int64
required
Actual number of calls for all apps during the current calendar month (UTC)
networks
array
required
List of enabled networks

Status Codes

The Fastedge service uses the following status codes for accounts and applications:
CodeDescription
0Draft (inactive) - for apps only
1Enabled
2Disabled
3Hourly call limit exceeded
4Daily call limit exceeded
5Suspended

Build docs developers (and LLMs) love