Skip to content

Commit

Permalink
(#310) Add json object
Browse files Browse the repository at this point in the history
  • Loading branch information
hahwul committed Nov 16, 2021
1 parent 6517025 commit addc0ce
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions pkg/model/result.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@ import (

// PoC is PoC struct for Result
type PoC struct {
Type string
Method string
Data string
Type string `json:"type"`
Method string `json:"method"`
Data string `json:"data"`
}

// Result is struct for library and cli application
type Result struct {
Logs []string
PoCs []PoC
Duration time.Duration
StartTime time.Time
EndTime time.Time
Logs []string `json:"logs"`
PoCs []PoC `json:"pocs"`
Duration time.Duration `json:"duration"`
StartTime time.Time `json:"start_time"`
EndTime time.Time `json:"end_time"`
}

0 comments on commit addc0ce

Please sign in to comment.