Discover Packages
github.com/ecumenos/orbis-socius
schemas
common
package
Version:
v0.0.1
Opens a new window with list of versions in this module.
Published: Dec 25, 2023
License: Apache-2.0
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type ErrorResp struct {
Status Status `json:"status"`
Message string `json:"message"`
Metadata *Metadata `json:"metadata"`
}
type FailureResp[T interface{}] struct {
Status Status `json:"status"`
Data T `json:"data"`
Message string `json:"message"`
Metadata *Metadata `json:"metadata"`
}
type Metadata struct {
RequestID string `json:"requestId"`
Duration int `json:"duration"`
Timestamp string `json:"timestamp"`
Version string `json:"version"`
}
const (
SuccessStatus Status = "success"
FailureStatus Status = "failure"
ErrorStatus Status = "error"
)
type SuccessResp[T interface{}] struct {
Status Status `json:"status"`
Data T `json:"data"`
Metadata *Metadata `json:"metadata"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.