diff options
Diffstat (limited to 'src/challenge.go')
-rw-r--r-- | src/challenge.go | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/challenge.go b/src/challenge.go new file mode 100644 index 0000000..a1f9893 --- /dev/null +++ b/src/challenge.go @@ -0,0 +1,23 @@ +package main + +type Challenge struct { + Name string + Description string + Flag string // this should never leave the server + Container string // this could, but is not required as well + Category string +} + +type StrippedChallenge struct { + Name string `json:"name"` + Description string `json:"description"` + Category string `json:"category"` +} + +func stripChallenge(c Challenge) (StrippedChallenge) { + return StrippedChallenge{ + Name: c.Name, + Description: c.Description, + Category: c.Category, + } +} |