models

package
v1.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 30, 2023 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeleteRowRequest added in v1.1.0

type DeleteRowRequest struct {
	Subdomain  string `json:"subdomain" binding:"required"`
	Autocommit *bool  `json:"autocommit,omitempty" default:"false"`
}

type ErrorResponse added in v0.8.2

type ErrorResponse struct {
	Error string `json:"error"`
}

type RecordType added in v1.0.0

type RecordType string
const (
	A     RecordType = "A"
	CNAME RecordType = "CNAME"
	MX    RecordType = "MX"
	TXT   RecordType = "TXT"
	NS    RecordType = "NS"
	SRV   RecordType = "SRV"
	AAAA  RecordType = "AAAA"
	CAA   RecordType = "CAA"
	NAPTR RecordType = "NAPTR"
	TLSA  RecordType = "TLSA"
	SSHFP RecordType = "SSHFP"
)

type SaveRowRequest

type SaveRowRequest struct {
	Subdomain  string      `json:"subdomain" binding:"required"`
	Data       string      `json:"data" binding:"required"`
	Type       *RecordType `json:"type,omitempty" default:"A"`
	TTL        *int        `json:"ttl,omitempty" default:"3600"`
	Autocommit *bool       `json:"autocommit,omitempty" default:"false"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL