package
Version:
v0.0.0-...-d11079c
Opens a new window with list of versions in this module.
Published: Apr 24, 2022
License: MIT
Opens a new window with license information.
Imports: 19
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type ErrorResponse struct {
Message string `json:"error"`
}
ErrorResponse holds an error message
Handler represents the structure of our resource
func (*Handler) Root ¶
Root returns the welcome message
func (*Handler) Stats ¶
Stats returns runtime and vips stats
type Response struct {
Message string `json:"message"`
}
type Runtime struct {
Alloc uint64 `json:"alloc"`
HeapInuse uint64 `json:"heap_inuse"`
Sys uint64 `json:"sys"`
TotalAlloc uint64 `json:"total_alloc"`
}
type Stats struct {
Vips Vips `json:"vips"`
Runtime Runtime `json:"runtime"`
}
type VipsMem struct {
Mem int64 `json:"mem"`
MemHigh int64 `json:"mem_high"`
Files int64 `json:"files"`
Allocs int64 `json:"allocs"`
}
type VipsRuntime struct {
OperationCounts map[string]int64 `json:"operations_counts"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.