mirror of
https://github.com/hanzoai/tasks.git
synced 2026-10-04 02:04:03 +00:00
## What changed? Moved the code from github.com/temporalio/version-info-model into this repository and removed insecure HTTPS setting. ## Why? No reason to maintain a whole separate repo with the server being the only dependent.
21 lines
629 B
Go
21 lines
629 B
Go
package versioninfo
|
|
|
|
// SDKINfo is a tuple of (SDK name, SDK version)
|
|
type SDKInfo struct {
|
|
Name string `json:"sdkName"`
|
|
Version string `json:"sdkVersion"`
|
|
}
|
|
|
|
// VersionCheckRequest provides basic info about the client and is used to produce VersionCheckResponse.
|
|
type VersionCheckRequest struct {
|
|
Product string `json:"product"`
|
|
Version string `json:"version"`
|
|
Arch string `json:"arch"`
|
|
OS string `json:"os"`
|
|
DB string `json:"db"`
|
|
ClusterID string `json:"cluster"`
|
|
// Encode as string for JS compatibility
|
|
Timestamp int64 `json:"timestamp,string"`
|
|
SDKInfo []SDKInfo `json:"sdkInfo"`
|
|
}
|