squarecloud

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 22, 2025 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIResponse

type APIResponse[T any] struct {
	Response T      `json:"response,omitempty"`
	Message  string `json:"message,omitempty"`
	Status   string `json:"status,omitempty"`
	Code     string `json:"code"`
}

type ApplicaitonNetworkData

type ApplicaitonNetworkData struct {
	Hostname  string `json:"hostname"`
	Countries []struct {
		Country   string `json:"country"`
		Megabytes string `json:"megabytes"`
		Visits    int    `json:"visits"`
		Bytes     int    `json:"bytes"`
	} `json:"countries"`
	Methods []struct {
		Method    string `json:"method"`
		Megabytes string `json:"megabytes"`
		Visits    int    `json:"visits"`
		Bytes     int    `json:"bytes"`
	} `json:"methods"`
	Referers []struct {
		Referer   string `json:"referer"`
		Megabytes string `json:"megabytes"`
		Visits    int    `json:"visits"`
		Bytes     int    `json:"bytes"`
	} `json:"referers"`
	Browsers []struct {
		Browser   string `json:"browser"`
		Megabytes string `json:"megabytes"`
		Visits    int    `json:"visits"`
		Bytes     int    `json:"bytes"`
	} `json:"browsers"`
	DeviceTypes []struct {
		Device    string `json:"device"`
		Megabytes string `json:"megabytes"`
		Visits    int    `json:"visits"`
		Bytes     int    `json:"bytes"`
	} `json:"deviceTypes"`
	OperatingSystems []struct {
		Os        string `json:"os"`
		Megabytes string `json:"megabytes"`
		Visits    int    `json:"visits"`
		Bytes     int    `json:"bytes"`
	} `json:"operatingSystems"`
	Agents []struct {
		Agent     string `json:"agent"`
		Megabytes string `json:"megabytes"`
		Visits    int    `json:"visits"`
		Bytes     int    `json:"bytes"`
	} `json:"agents"`
	Hosts []struct {
		Host      string `json:"host"`
		Megabytes string `json:"megabytes"`
		Visits    int    `json:"visits"`
		Bytes     int    `json:"bytes"`
	} `json:"hosts"`
	Paths []struct {
		Path      string `json:"path"`
		Megabytes string `json:"megabytes"`
		Visits    int    `json:"visits"`
		Bytes     int    `json:"bytes"`
	} `json:"paths"`
	Total struct {
		Megabytes string `json:"megabytes"`
		Visits    int    `json:"visits"`
		Bytes     int    `json:"bytes"`
	} `json:"total"`
}

type Application

type Application struct {
	ID       string `json:"id"`
	Name     string `json:"name"`
	Avatar   string `json:"avatar"`
	Owner    string `json:"owner"`
	Cluster  string `json:"cluster"`
	Language string `json:"language"`
	Domain   string `json:"domain"`
	Custom   string `json:"custom"`
	RAM      int    `json:"ram"`
}

type ApplicationBackup

type ApplicationBackup struct {
	Modified time.Time `json:"modified"`
	Name     string    `json:"name"`
	Key      string    `json:"key"`
	Size     int       `json:"size"`
}

type ApplicationBackupCreated

type ApplicationBackupCreated struct {
	URL string `json:"url"`
	Key string `json:"key"`
}

type ApplicationDeploys

type ApplicationDeploys [][]struct {
	Date  time.Time `json:"date"`
	ID    string    `json:"id"`
	State string    `json:"state"`
}

type ApplicationFileData

type ApplicationFileData struct {
	Type string `json:"type"`
	Data []int  `json:"data"`
}

type ApplicationFileInfo

type ApplicationFileInfo struct {
	Type         string `json:"type"`
	Name         string `json:"name"`
	Size         int    `json:"size"`
	LastModified int64  `json:"lastModified"`
}

type ApplicationGithubWebhook

type ApplicationGithubWebhook struct {
	Webhook string `json:"webhook"`
}

type ApplicationListStatus

type ApplicationListStatus []struct {
	ID      string `json:"id"`
	CPU     string `json:"cpu"`
	RAM     string `json:"ram"`
	Running bool   `json:"running"`
}

type ApplicationLogs

type ApplicationLogs struct {
	Logs string `json:"logs"`
}

type ApplicationSignal

type ApplicationSignal string
const (
	ApplicationSignalStart   ApplicationSignal = "START"
	ApplicationSignalStop    ApplicationSignal = "STOP"
	ApplicationSignalRestart ApplicationSignal = "RESTART"
)

type ApplicationStatus

type ApplicationStatus struct {
	Network struct {
		Total string `json:"total"`
		Now   string `json:"now"`
	} `json:"network"`
	CPU      string `json:"cpu"`
	RAM      string `json:"ram"`
	Status   string `json:"status"`
	Storage  string `json:"storage"`
	Requests int    `json:"requests"`
	Uptime   int64  `json:"uptime"`
	Running  bool   `json:"running"`
}

type ApplicationUploaded

type ApplicationUploaded struct {
	Language struct {
		Name    string `json:"name"`
		Version string `json:"version"`
	} `json:"language"`

	ID          string `json:"id"`
	Tag         string `json:"tag"`
	Description string `json:"description"`
	Subdomain   string `json:"subdomain"`
	Avatar      string `json:"avatar"`
	RAM         int    `json:"ram"`
	CPU         int    `json:"cpu"`
}

type User

type User struct {
	ID     string `json:"id"`
	Name   string `json:"name"`
	Locale string `json:"locale"`
	Email  string `json:"email"`
	Plan   struct {
		Name   string `json:"name"`
		Memory struct {
			Limit     int `json:"limit"`
			Available int `json:"available"`
			Used      int `json:"used"`
		} `json:"memory"`
		Duration int64 `json:"duration"`
	} `json:"plan"`
}

type UserApplication

type UserApplication struct {
	ID      string `json:"id"`
	Name    string `json:"name"`
	Lang    string `json:"lang"`
	Cluster string `json:"cluster"`
	Avatar  string `json:"avatar"`
	RAM     int    `json:"ram"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL