Add JSON tags
This commit is contained in:
parent
b6dfdcd5ef
commit
f147fb47bb
2
Makefile
2
Makefile
@ -9,7 +9,7 @@ PKGS := github.com/rtr7/router7/cmd/... \
|
|||||||
build:
|
build:
|
||||||
mkdir -p result
|
mkdir -p result
|
||||||
GOOS=linux go build -o ./result github.com/rtr7/router7/cmd/...
|
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:
|
clean:
|
||||||
rm -rf result
|
rm -rf result
|
||||||
|
@ -44,9 +44,9 @@ var log = teelogger.NewConsole()
|
|||||||
type lcHostname string
|
type lcHostname string
|
||||||
|
|
||||||
type IP struct {
|
type IP struct {
|
||||||
IPv6 net.IP
|
IPv6 net.IP `json:"ipv6"`
|
||||||
IPv4 net.IP
|
IPv4 net.IP `json:"ipv4"`
|
||||||
Host lcHostname // lease that the IPs are updated from. If no lease exists for this host it is never updated.
|
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 {
|
type Server struct {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user