Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type VersionModule ¶
type VersionModule struct{}
func (*VersionModule) Param ¶
func (*VersionModule) Param() string
func (*VersionModule) Pub ¶
func (*VersionModule) Pub() bool
func (*VersionModule) Route ¶
func (*VersionModule) Route() string
func (*VersionModule) Service ¶
func (*VersionModule) Service() types.Service[*Version, *Version, *VersionRsp]
type VersionRsp ¶
type VersionRsp struct {
Version string `json:"version"` // Backend version string (semantic version)
BuildTime int64 `json:"build_time"` // Build timestamp (Unix timestamp)
GitCommit string `json:"git_commit"` // Git commit hash (short hash)
GitBranch string `json:"git_branch"` // Git branch name
GoVersion string `json:"go_version"` // Go compiler version
Environment string `json:"environment"` // Environment (dev/staging/prod)
Uptime int64 `json:"uptime"` // Server uptime in seconds
Timestamp int64 `json:"timestamp"` // Current server timestamp
}
VersionRsp contains version information returned to frontend
type VersionService ¶
type VersionService struct {
service.Base[*Version, *Version, *VersionRsp]
}
func (*VersionService) List ¶
func (l *VersionService) List(ctx *types.ServiceContext, req *Version) (rsp *VersionRsp, err error)
List returns version information including build details and runtime info
Click to show internal directories.
Click to hide internal directories.