Updating Makefile and fedictl sharing same header file

This commit is contained in:
farhan 2020-12-17 01:43:00 +00:00
parent 20bb0ef788
commit 8d56747f1c
2 changed files with 5 additions and 22 deletions

View File

@ -1,7 +1,9 @@
GOFILES = fedilogue.go ctl.go headers.go instance.go poll.go stream.go web.go db.go config.go oauth.go
FEDILOGUE_GOFILES = fedilogue.go ctl.go headers.go instance.go poll.go stream.go web.go db.go config.go oauth.go
FEDICTL_GOFILES = fedictl.go headers.go
build:
go build -o fedilogue $(GOFILES)
go build -o fedilogue $(FEDILOGUE_GOFILES)
go build -o fedictl $(FEDICTL_GOFILES)
run:
go run $(GOFILES)
acctkey:
@ -9,4 +11,4 @@ acctkey:
openssl genrsa -out keys/acctprivate.pem 1024
openssl rsa -in keys/acctprivate.pem -pubout -out keys/acctpublic.pem
clean:
rm -f fedilogue
rm -f fedilogue fedictl

View File

@ -10,25 +10,6 @@ import (
"io"
)
type CommandMap struct {
Type string `json:"Type"`
Endpoint string `json:"Endpoint"`
}
// Instance's new min_id value
type RunningInstance struct {
Software string `json:"software"`
Status int `json:"status"`
LastRun string `json:"lastrun"`
CaptureType string `json:"capturetype"`
}
type ResponseBack struct {
Type string `json:"Type"`
Message string `json:"Message"`
RunningInstances map[string]RunningInstance `json:"RunningInstances"`
}
func main() {
shutdownPtr := flag.Bool("shutdown", false, "Shutdown server")