refactor - pasdns can now look sane
This commit is contained in:
parent
cc8322f221
commit
0be492aa87
7 changed files with 97 additions and 31 deletions
17
src/test/test.go
Normal file
17
src/test/test.go
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"log"
|
||||
|
||||
pas "exhq.dev/pas/src"
|
||||
"exhq.dev/pas/src/Constants"
|
||||
)
|
||||
|
||||
func main() {
|
||||
err := pas.StartServer(42069, func(request Constants.Request, respond func(Constants.Response)) {
|
||||
respond(Constants.Response{OperationSuccessClassification: Constants.OK, ResponseHeader: map[string]string{}, Body: "say gex"})
|
||||
}, nil)
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue