mirror of
https://github.com/kubeshark/kubeshark.git
synced 2025-06-23 23:08:35 +00:00
status to statusCode
This commit is contained in:
parent
d715473088
commit
b886af2242
@ -24,13 +24,13 @@ func GetEntries(c *fiber.Ctx) error {
|
|||||||
baseEntries := make([]models.BaseEntryDetails, 0)
|
baseEntries := make([]models.BaseEntryDetails, 0)
|
||||||
for _, entry := range entries {
|
for _, entry := range entries {
|
||||||
baseEntries = append(baseEntries, models.BaseEntryDetails{
|
baseEntries = append(baseEntries, models.BaseEntryDetails{
|
||||||
Id: entry.EntryId,
|
Id: entry.EntryId,
|
||||||
Url: entry.Url,
|
Url: entry.Url,
|
||||||
Service: entry.Service,
|
Service: entry.Service,
|
||||||
Path: entry.Path,
|
Path: entry.Path,
|
||||||
Status: entry.Status,
|
StatusCode: entry.Status,
|
||||||
Method: entry.Method,
|
Method: entry.Method,
|
||||||
Timestamp: entry.Timestamp,
|
Timestamp: entry.Timestamp,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -40,7 +40,6 @@ func GetEntries(c *fiber.Ctx) error {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
func GetEntry(c *fiber.Ctx) error {
|
func GetEntry(c *fiber.Ctx) error {
|
||||||
var entryData models.EntryData
|
var entryData models.EntryData
|
||||||
database.GetEntriesTable().
|
database.GetEntriesTable().
|
||||||
|
@ -18,13 +18,13 @@ type MizuEntry struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type BaseEntryDetails struct {
|
type BaseEntryDetails struct {
|
||||||
Id string `json:"id,omitempty"`
|
Id string `json:"id,omitempty"`
|
||||||
Url string `json:"url,omitempty"`
|
Url string `json:"url,omitempty"`
|
||||||
Service string `json:"service,omitempty"`
|
Service string `json:"service,omitempty"`
|
||||||
Path string `json:"path,omitempty"`
|
Path string `json:"path,omitempty"`
|
||||||
Status int `json:"status,omitempty"`
|
StatusCode int `json:"statusCode,omitempty"`
|
||||||
Method string `json:"method,omitempty"`
|
Method string `json:"method,omitempty"`
|
||||||
Timestamp int64 `json:"timestamp,omitempty"`
|
Timestamp int64 `json:"timestamp,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type EntryData struct {
|
type EntryData struct {
|
||||||
|
Loading…
Reference in New Issue
Block a user