Store and export the valid TTL values

This will be useful later on for validation purposes in the Terraform
provider plugin.
This commit is contained in:
Sighery 2020-05-09 00:36:36 +02:00
parent ad529187f5
commit 557201c48a

View file

@ -2,6 +2,9 @@ package gonjalla
import "encoding/json"
// ValidTTL is an array containing all the valid TTL values
var ValidTTL = []int{60, 300, 900, 3600, 10800, 21600, 86400}
// Record struct contains data returned by `list-records`
type Record struct {
ID int `json:"id"`