first commit

This commit is contained in:
2025-09-30 20:21:33 +02:00
commit 68902f86af
10 changed files with 418 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
package constants
const (
Version string = "0.0.1"
ApiVersion int = 1
)

30
pkg/remote/obj/obj.go Normal file
View File

@@ -0,0 +1,30 @@
package obj
import "time"
type (
HTTPCore struct {
Status int `json:"status"`
Timestamp time.Time `json:"timestamp"`
Path string `json:"path"`
}
HTTPError struct {
HTTPCore
Error string `json:"error"`
Message string `json:"message"`
}
HTTPObject struct {
HTTPCore
Data any `json:"data"`
}
SystemInformation struct {
Version string `json:"version"`
APIVersion int `json:"api_version"`
GoVersion string `json:"go_version"`
OSName string `json:"os_name"`
OSArchitecture string `json:"os_architecture"`
}
)