Add JSON tags
This commit is contained in:
parent
169bc5c3e7
commit
fbbfa568a8
2
Makefile
2
Makefile
@ -9,7 +9,7 @@ PKGS := github.com/rtr7/router7/cmd/... \
|
||||
build:
|
||||
mkdir -p result
|
||||
GOOS=linux go build -o ./result github.com/rtr7/router7/cmd/...
|
||||
GOOS=linux go build -o ./result/rtr7-init -ldflags "-X main.buildTimestamp=$(shell date '+%Y-%m-%dT%H:%M:%S%z') -X github.com/gokrazy/gokrazy.httpPassword=temp" init/init.go
|
||||
GOOS=linux go build -o ./result/rtr7-init -ldflags "-X main.buildTimestamp=$(shell date '+%Y-%m-%dT%H:%M:%S%z') -X github.com/gokrazy/gokrazy.httpPassword=hello" init/init.go
|
||||
|
||||
clean:
|
||||
rm -rf result
|
||||
|
@ -44,9 +44,9 @@ var log = teelogger.NewConsole()
|
||||
type lcHostname string
|
||||
|
||||
type IP struct {
|
||||
IPv6 net.IP
|
||||
IPv4 net.IP
|
||||
Host lcHostname // lease that the IPs are updated from. If no lease exists for this host it is never updated.
|
||||
IPv6 net.IP `json:"ipv6"`
|
||||
IPv4 net.IP `json:"ipv4"`
|
||||
Host lcHostname `json:"host"` // lease that the IPs are updated from. If no lease exists for this host it is never updated.
|
||||
}
|
||||
|
||||
type Server struct {
|
||||
|
Loading…
x
Reference in New Issue
Block a user