models

package
v0.0.0-...-d0df754 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2017 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIRecord

type APIRecord struct {

	// Add a PTR (reverse) record
	PTR bool `json:"PTR,omitempty"`

	// TTL time to live of the record
	TTL int32 `json:"TTL,omitempty"`

	// Record Name
	Domain string `json:"domain,omitempty"`

	// Expiration of the record, after which will be removed.
	// Default is 0 for not expiring
	Expires int32 `json:"expires,omitempty"`

	// id
	ID string `json:"id,omitempty"`

	// Record IP address
	IP string `json:"ip,omitempty"`

	// Record Type see https://github.com/miekg/dns/blob/master/types.go#L27
	Type string `json:"type,omitempty"`
}

APIRecord Message represents a simple message sent to the Echo service. swagger:model apiRecord

func (*APIRecord) MarshalBinary

func (m *APIRecord) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*APIRecord) UnmarshalBinary

func (m *APIRecord) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*APIRecord) Validate

func (m *APIRecord) Validate(formats strfmt.Registry) error

Validate validates this api record

Jump to

Keyboard shortcuts

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