Add sponsorship links
This commit is contained in:
@@ -189,13 +189,13 @@ type RootResponse struct {
|
|||||||
GoVersion string `json:"go_version"`
|
GoVersion string `json:"go_version"`
|
||||||
Dav string `json:"dav"`
|
Dav string `json:"dav"`
|
||||||
Html string `json:"html"`
|
Html string `json:"html"`
|
||||||
UserInfo *realdebrid.User `json:"user_info"` // Replace UserInfoType with the actual type
|
UserInfo *realdebrid.User `json:"user_info"` // Replace UserInfoType with the actual type
|
||||||
MemAlloc uint64 `json:"mem_alloc"` // Memory allocation in MB
|
MemAlloc uint64 `json:"mem_alloc"` // Memory allocation in MB
|
||||||
TotalAlloc uint64 `json:"total_alloc"` // Total memory allocated in MB
|
TotalAlloc uint64 `json:"total_alloc"` // Total memory allocated in MB
|
||||||
Sys uint64 `json:"sys"` // System memory in MB
|
Sys uint64 `json:"sys"` // System memory in MB
|
||||||
NumGC uint32 `json:"num_gc"` // Number of completed GC cycles
|
NumGC uint32 `json:"num_gc"` // Number of completed GC cycles
|
||||||
PID int `json:"pid"` // Process ID
|
PID int `json:"pid"` // Process ID
|
||||||
Sponsor SponsorResponse `json:"sponsor_this_project"` // Process ID
|
Sponsor SponsorResponse `json:"sponsor_zurg"` // Sponsorship links
|
||||||
}
|
}
|
||||||
|
|
||||||
func (zr *ZurgRouter) rootHandler(resp http.ResponseWriter, req *http.Request, params httprouter.Params) {
|
func (zr *ZurgRouter) rootHandler(resp http.ResponseWriter, req *http.Request, params httprouter.Params) {
|
||||||
|
|||||||
Reference in New Issue
Block a user