From 85b9a036c289fe840e69e1852866f429b87cf63e Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Wed, 20 Dec 2023 05:58:33 -0600 Subject: code moved to the cloudflare package use the cloudflare package add a protobuf attempt better change detection, but formatting is broken don't redraw widgets if they are not visible create new dns entry worked attempting a DNS RR create attempt a create API call use cloudflare recommended ENV vars turn off debugging Signed-off-by: Jeff Carr --- examples/cloudflare/structs.go | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) (limited to 'examples/cloudflare/structs.go') diff --git a/examples/cloudflare/structs.go b/examples/cloudflare/structs.go index af4d7f3..50647d7 100644 --- a/examples/cloudflare/structs.go +++ b/examples/cloudflare/structs.go @@ -34,20 +34,23 @@ var zonedrop *gui.Node // Resource Record (used in a DNS zonefile) type RRT struct { - typeNode *gui.Node - nameNode *gui.Node - proxyNode *gui.Node - ttlNode *gui.Node - valueNode *gui.Node - saveNode *gui.Node + typeNode *gui.Node // CNAME, A, AAAA, ... + nameNode *gui.Node // www, mail, ... + proxyNode *gui.Node // If cloudflare is a port 80 & 443 proxy + ttlNode *gui.Node // just set to 1 which means automatic to cloudflare + valueNode *gui.Node // 4.2.2.2, "dkim stuff", etc + curlNode *gui.Node // shows you what you could run via curl + resultNode *gui.Node // what the cloudflare API returned + saveNode *gui.Node // button to send it to cloudflare ID string Type string Name string Content string + ProxyS string Proxied bool Proxiable bool - TTL int + Ttl string } /* -- cgit v1.2.3