Documentation
¶
Index ¶
- func GetHole(w http.ResponseWriter, r *http.Request)
- func GetTest(w http.ResponseWriter, r *http.Request)
- func HoleTitle(str string) string
- func ListHoles(w http.ResponseWriter, r *http.Request)
- func ListTests(w http.ResponseWriter, r *http.Request)
- type Hole
- type Holes
- type ShortTest
- type ShortTests
- type Test
- type Tests
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetTest ¶
func GetTest(w http.ResponseWriter, r *http.Request)
GetTest gets a test using a hole and test id
Types ¶
type Hole ¶
type ShortTest ¶
type ShortTest struct { ID string `json:"ID"` Name string `json:"Name"` // Test name on the frontend Hidden bool `json:"Hidden"` // When hidden is false, output will be shown on frontend Input string `json:"Input,omitempty"` // Returns test input when test is NOT hidden Description string `json:"Description,omitempty"` // Optional description field Active bool `json:"Active"` }
ShortTest is the frontend object for a Test structure
type ShortTests ¶
type ShortTests []ShortTest
type Test ¶
type Test struct { ID string `json:"ID"` Name string `json:"Name"` // Test name on the frontend Hidden bool `json:"Hidden"` // When hidden is false, output will be shown on frontend Description string `json:"Description"` // Optional description field Active bool `json:"Active"` Input string `json:"Input"` OutputRegex string `json:"OutputRegex"` CreatedAt time.Time `json:"CreatedAt"` }
Test extends ShortTest and has hidden information solely for the database
Click to show internal directories.
Click to hide internal directories.